org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Error occurred while publishing artifact to Artifactory: C:\Documents and Settings\n98743\.jenkins\workspace\jenkins release test\pom.xml. Skipping deployment of remaining artifacts (if any) and build info.

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • release:perform is successful. But after that maven kicks clean up process and tries to commit the new snapshot in released version's snapshot repo in artifactory and fails with 409 error code. This release build released version 1.1.16. Then pom is incremented to 1.1.17-SNAPSHOT and during cleanup process, it tried to deploy 1.1.17-SNAPSHOT in 1.1.16-SNAPSHOT of lib-snapshot-local and failed with 409 error code. This test project has a parent which has ear and war modules within it. Parent pom fails to deploy. Here is the stack trace: [INFO] [INFO] Building jar: C:\Documents and Settings\n98743\.jenkins\workspace\jenkins release test\target\checkout\ear\target\release-test-through-jenkins-ear-1.1.16.ear [INFO] [INFO] [INFO] [INFO] --- maven-javadoc-plugin:2.9:jar (attach-javadocs) @ release-test-through-jenkins-ear --- [INFO] [INFO] [INFO] [INFO] --- maven-source-plugin:2.1.2:jar-no-fork (attach-sources) @ release-test-through-jenkins-ear --- [INFO] [INFO] No sources in project. Archive not created. [INFO] [INFO] [INFO] [INFO] >>> maven-source-plugin:2.1.2:jar (attach-sources) @ release-test-through-jenkins-ear >>> [INFO] [INFO] [INFO] [INFO] <<< maven-source-plugin:2.1.2:jar (attach-sources) @ release-test-through-jenkins-ear <<< [INFO] [INFO] [INFO] [INFO] --- maven-source-plugin:2.1.2:jar (attach-sources) @ release-test-through-jenkins-ear --- [INFO] [INFO] No sources in project. Archive not created. [INFO] [INFO] [INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ release-test-through-jenkins-ear --- [INFO] [INFO] Installing C:\Documents and Settings\n98743\.jenkins\workspace\jenkins release test\target\checkout\ear\target\release-test-through-jenkins-ear-1.1.16.ear to C:\Documents and Settings\n98743\.m2\repository\com\es\release-test-through-jenkins-ear\1.1.16\release-test-through-jenkins-ear-1.1.16.ear [INFO] [INFO] Installing C:\Documents and Settings\n98743\.jenkins\workspace\jenkins release test\target\checkout\ear\pom.xml to C:\Documents and Settings\n98743\.m2\repository\com\es\release-test-through-jenkins-ear\1.1.16\release-test-through-jenkins-ear-1.1.16.pom [INFO] [INFO] [INFO] [INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ release-test-through-jenkins-ear --- [INFO] Uploading: http://servername:8080/artifactory/libs-release-local/com/es/release-test-through-jenkins-ear/1.1.16/release-test-through-jenkins-ear-1.1.16.ear [INFO] Uploaded: http://servername:8080/artifactory/libs-release-local/com/es/release-test-through-jenkins-ear/1.1.16/release-test-through-jenkins-ear-1.1.16.ear (3507 KB at 18652.8 KB/sec) [INFO] Uploading: http://servername:8080/artifactory/libs-release-local/com/es/release-test-through-jenkins-ear/1.1.16/release-test-through-jenkins-ear-1.1.16.pom [INFO] Uploaded: http://servername:8080/artifactory/libs-release-local/com/es/release-test-through-jenkins-ear/1.1.16/release-test-through-jenkins-ear-1.1.16.pom (2 KB at 25.7 KB/sec) [INFO] Downloading: http://servername:8080/artifactory/libs-release-local/com/es/release-test-through-jenkins-ear/maven-metadata.xml [INFO] Downloaded: http://servername:8080/artifactory/libs-release-local/com/es/release-test-through-jenkins-ear/maven-metadata.xml (637 B at 19.4 KB/sec) [INFO] Uploading: http://servername:8080/artifactory/libs-release-local/com/es/release-test-through-jenkins-ear/maven-metadata.xml [INFO] Uploaded: http://servername:8080/artifactory/libs-release-local/com/es/release-test-through-jenkins-ear/maven-metadata.xml (609 B at 19.2 KB/sec) [INFO] [INFO] ------------------------------------------------------------------------ [INFO] [INFO] Reactor Summary: [INFO] [INFO] [INFO] [INFO] release-test-through-jenkins ...................... SUCCESS [6.781s] [INFO] [INFO] release-test-through-jenkins-webapp ............... SUCCESS [5.187s] [INFO] [INFO] release-test-through-jenkins-ear .................. SUCCESS [1.453s] [INFO] [INFO] ------------------------------------------------------------------------ [INFO] [INFO] BUILD SUCCESS [INFO] [INFO] ------------------------------------------------------------------------ [INFO] [INFO] Total time: 13.578s [INFO] [INFO] Finished at: Tue Feb 12 11:09:34 EST 2013 [INFO] [INFO] Final Memory: 15M/38M [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Cleaning up after release... [INFO] Artifactory Build Info Recorder: Deploying artifacts to http://servername:8080/artifactory/libs-release-local [INFO] Deploying artifact: http://servername:8080/artifactory/libs-snapshot-local/com/es/release-test-through-jenkins-parent/1.1.16-SNAPSHOT/release-test-through-jenkins-parent-1.1.16-SNAPSHOT.pom mavenExecutionResult exceptions not empty message : Internal error: java.lang.RuntimeException: Error occurred while publishing artifact to Artifactory: C:\Documents and Settings\n98743\.jenkins\workspace\jenkins release test\pom.xml. Skipping deployment of remaining artifacts (if any) and build info. cause : Error occurred while publishing artifact to Artifactory: C:\Documents and Settings\n98743\.jenkins\workspace\jenkins release test\pom.xml. Skipping deployment of remaining artifacts (if any) and build info. Stack trace : org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Error occurred while publishing artifact to Artifactory: C:\Documents and Settings\n98743\.jenkins\workspace\jenkins release test\pom.xml. Skipping deployment of remaining artifacts (if any) and build info. at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168) at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239) at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158) at hudson.maven.Maven3Builder.call(Maven3Builder.java:100) at hudson.maven.Maven3Builder.call(Maven3Builder.java:66) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.RuntimeException: Error occurred while publishing artifact to Artifactory: C:\Documents and Settings\n98743\.jenkins\workspace\jenkins release test\pom.xml. Skipping deployment of remaining artifacts (if any) and build info. at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deployArtifacts(BuildDeploymentHelper.java:135) at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deploy(BuildDeploymentHelper.java:78) at org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded(BuildInfoRecorder.java:132) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:64) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:170) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) ... 19 more Caused by: java.io.IOException: Failed to deploy file: HTTP response code: 409. HTTP response message: Conflict at org.jfrog.build.client.ArtifactoryBuildInfoClient.throwHttpIOException(ArtifactoryBuildInfoClient.java:642) at org.jfrog.build.client.ArtifactoryBuildInfoClient.uploadFile(ArtifactoryBuildInfoClient.java:517) at org.jfrog.build.client.ArtifactoryBuildInfoClient.deployArtifact(ArtifactoryBuildInfoClient.java:292) at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deployArtifacts(BuildDeploymentHelper.java:133) ... 26 more channel stopped Finished: FAILURE
    via by Kc Singh,
  • release:perform is successful. But after that maven kicks clean up process and tries to commit the new snapshot in released version's snapshot repo in artifactory and fails with 409 error code. This release build released version 1.1.16. Then pom is incremented to 1.1.17-SNAPSHOT and during cleanup process, it tried to deploy 1.1.17-SNAPSHOT in 1.1.16-SNAPSHOT of lib-snapshot-local and failed with 409 error code. This test project has a parent which has ear and war modules within it. Parent pom fails to deploy. Here is the stack trace: [INFO] [INFO] Building jar: C:\Documents and Settings\n98743\.jenkins\workspace\jenkins release test\target\checkout\ear\target\release-test-through-jenkins-ear-1.1.16.ear [INFO] [INFO] [INFO] [INFO] --- maven-javadoc-plugin:2.9:jar (attach-javadocs) @ release-test-through-jenkins-ear --- [INFO] [INFO] [INFO] [INFO] --- maven-source-plugin:2.1.2:jar-no-fork (attach-sources) @ release-test-through-jenkins-ear --- [INFO] [INFO] No sources in project. Archive not created. [INFO] [INFO] [INFO] [INFO] >>> maven-source-plugin:2.1.2:jar (attach-sources) @ release-test-through-jenkins-ear >>> [INFO] [INFO] [INFO] [INFO] <<< maven-source-plugin:2.1.2:jar (attach-sources) @ release-test-through-jenkins-ear <<< [INFO] [INFO] [INFO] [INFO] --- maven-source-plugin:2.1.2:jar (attach-sources) @ release-test-through-jenkins-ear --- [INFO] [INFO] No sources in project. Archive not created. [INFO] [INFO] [INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ release-test-through-jenkins-ear --- [INFO] [INFO] Installing C:\Documents and Settings\n98743\.jenkins\workspace\jenkins release test\target\checkout\ear\target\release-test-through-jenkins-ear-1.1.16.ear to C:\Documents and Settings\n98743\.m2\repository\com\es\release-test-through-jenkins-ear\1.1.16\release-test-through-jenkins-ear-1.1.16.ear [INFO] [INFO] Installing C:\Documents and Settings\n98743\.jenkins\workspace\jenkins release test\target\checkout\ear\pom.xml to C:\Documents and Settings\n98743\.m2\repository\com\es\release-test-through-jenkins-ear\1.1.16\release-test-through-jenkins-ear-1.1.16.pom [INFO] [INFO] [INFO] [INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ release-test-through-jenkins-ear --- [INFO] Uploading: http://servername:8080/artifactory/libs-release-local/com/es/release-test-through-jenkins-ear/1.1.16/release-test-through-jenkins-ear-1.1.16.ear [INFO] Uploaded: http://servername:8080/artifactory/libs-release-local/com/es/release-test-through-jenkins-ear/1.1.16/release-test-through-jenkins-ear-1.1.16.ear (3507 KB at 18652.8 KB/sec) [INFO] Uploading: http://servername:8080/artifactory/libs-release-local/com/es/release-test-through-jenkins-ear/1.1.16/release-test-through-jenkins-ear-1.1.16.pom [INFO] Uploaded: http://servername:8080/artifactory/libs-release-local/com/es/release-test-through-jenkins-ear/1.1.16/release-test-through-jenkins-ear-1.1.16.pom (2 KB at 25.7 KB/sec) [INFO] Downloading: http://servername:8080/artifactory/libs-release-local/com/es/release-test-through-jenkins-ear/maven-metadata.xml [INFO] Downloaded: http://servername:8080/artifactory/libs-release-local/com/es/release-test-through-jenkins-ear/maven-metadata.xml (637 B at 19.4 KB/sec) [INFO] Uploading: http://servername:8080/artifactory/libs-release-local/com/es/release-test-through-jenkins-ear/maven-metadata.xml [INFO] Uploaded: http://servername:8080/artifactory/libs-release-local/com/es/release-test-through-jenkins-ear/maven-metadata.xml (609 B at 19.2 KB/sec) [INFO] [INFO] ------------------------------------------------------------------------ [INFO] [INFO] Reactor Summary: [INFO] [INFO] [INFO] [INFO] release-test-through-jenkins ...................... SUCCESS [6.781s] [INFO] [INFO] release-test-through-jenkins-webapp ............... SUCCESS [5.187s] [INFO] [INFO] release-test-through-jenkins-ear .................. SUCCESS [1.453s] [INFO] [INFO] ------------------------------------------------------------------------ [INFO] [INFO] BUILD SUCCESS [INFO] [INFO] ------------------------------------------------------------------------ [INFO] [INFO] Total time: 13.578s [INFO] [INFO] Finished at: Tue Feb 12 11:09:34 EST 2013 [INFO] [INFO] Final Memory: 15M/38M [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Cleaning up after release... [INFO] Artifactory Build Info Recorder: Deploying artifacts to http://servername:8080/artifactory/libs-release-local [INFO] Deploying artifact: http://servername:8080/artifactory/libs-snapshot-local/com/es/release-test-through-jenkins-parent/1.1.16-SNAPSHOT/release-test-through-jenkins-parent-1.1.16-SNAPSHOT.pom mavenExecutionResult exceptions not empty message : Internal error: java.lang.RuntimeException: Error occurred while publishing artifact to Artifactory: C:\Documents and Settings\n98743\.jenkins\workspace\jenkins release test\pom.xml. Skipping deployment of remaining artifacts (if any) and build info. cause : Error occurred while publishing artifact to Artifactory: C:\Documents and Settings\n98743\.jenkins\workspace\jenkins release test\pom.xml. Skipping deployment of remaining artifacts (if any) and build info. Stack trace : org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Error occurred while publishing artifact to Artifactory: C:\Documents and Settings\n98743\.jenkins\workspace\jenkins release test\pom.xml. Skipping deployment of remaining artifacts (if any) and build info. at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168) at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239) at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158) at hudson.maven.Maven3Builder.call(Maven3Builder.java:100) at hudson.maven.Maven3Builder.call(Maven3Builder.java:66) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.RuntimeException: Error occurred while publishing artifact to Artifactory: C:\Documents and Settings\n98743\.jenkins\workspace\jenkins release test\pom.xml. Skipping deployment of remaining artifacts (if any) and build info. at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deployArtifacts(BuildDeploymentHelper.java:135) at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deploy(BuildDeploymentHelper.java:78) at org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded(BuildInfoRecorder.java:132) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:64) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:170) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) ... 19 more Caused by: java.io.IOException: Failed to deploy file: HTTP response code: 409. HTTP response message: Conflict at org.jfrog.build.client.ArtifactoryBuildInfoClient.throwHttpIOException(ArtifactoryBuildInfoClient.java:642) at org.jfrog.build.client.ArtifactoryBuildInfoClient.uploadFile(ArtifactoryBuildInfoClient.java:517) at org.jfrog.build.client.ArtifactoryBuildInfoClient.deployArtifact(ArtifactoryBuildInfoClient.java:292) at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deployArtifacts(BuildDeploymentHelper.java:133) ... 26 more channel stopped Finished: FAILURE
    via by Kc Singh,
  • We are getting this error message for a job attempting to deploy to artifactory mavenExecutionResult exceptions not empty message : Internal error: java.lang.RuntimeException: Error occurred while publishing Build Info to Artifactory. cause : Error occurred while publishing Build Info to Artifactory. Stack trace : org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Error occurred while publishing Build Info to Artifactory. at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168) at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239) at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158) at hudson.maven.Maven3Builder.call(Maven3Builder.java:98) at hudson.maven.Maven3Builder.call(Maven3Builder.java:64) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:287) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.RuntimeException: Error occurred while publishing Build Info to Artifactory. at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deploy(BuildDeploymentHelper.java:87) at org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded(BuildInfoRecorder.java:128) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:64) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:170) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) ... 19 more Caused by: java.io.IOException: Failed to send build info: HTTP response code: 500. HTTP response message: Internal Server Error at org.jfrog.build.client.ArtifactoryBuildInfoClient.throwHttpIOException(ArtifactoryBuildInfoClient.java:641) at org.jfrog.build.client.ArtifactoryBuildInfoClient.sendBuildInfo(ArtifactoryBuildInfoClient.java:240) at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deploy(BuildDeploymentHelper.java:85) ... 25 more channel stopped
    via by John Lysaght,
  • Hi, The artifactory plugin causes a build failure while performing a release with the Maven Release plugin. At the end of the build Artifactory tries to upload the old snapshot instead of deploying the new one. The issue has already been reported here [#HAP-93] and fixed for version 1.3.5, it seems to be a regression. Artifactory used to detect the release build and skip the uploading phase. However, the release versions are correctly uploaded to Artifactory during the maven-deploy phase. Here is the stack trace : {noformat} mojoSucceeded org.apache.maven.plugins:maven-release-plugin:2.3.2(default-cli) projectSucceeded ****:0.1.3-SNAPSHOT [INFO] Artifactory Build Info Recorder: Deploying artifacts to http://****/libs-release-local [INFO] Deploying artifact: http://****/libs-snapshot-local/****/****-0.1.3-SNAPSHOT.pom mavenExecutionResult exceptions not empty message : Internal error: java.lang.RuntimeException: Error occurred while publishing artifact to Artifactory: ****\pom.xml. Skipping deployment of remaining artifacts (if any) and build info. cause : Error occurred while publishing artifact to Artifactory: ****\pom.xml. Skipping deployment of remaining artifacts (if any) and build info. Stack trace : org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Error occurred while publishing artifact to Artifactory: ****\pom.xml. Skipping deployment of remaining artifacts (if any) and build info. at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168) at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239) at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158) at hudson.maven.Maven3Builder.call(Maven3Builder.java:98) at hudson.maven.Maven3Builder.call(Maven3Builder.java:64) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.RuntimeException: Error occurred while publishing artifact to Artifactory: ****\pom.xml. Skipping deployment of remaining artifacts (if any) and build info. at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deployArtifacts(BuildDeploymentHelper.java:135) at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deploy(BuildDeploymentHelper.java:78) at org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded(BuildInfoRecorder.java:130) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:64) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:170) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) ... 19 more Caused by: java.io.IOException: Failed to deploy file: HTTP response code: 409. HTTP response message: The target deployment path '****-0.1.3-20130123.161654-2.pom' does not match the POM's expected path prefix '****/0.1.4-SNAPSHOT'. Please verify your POM content for correctness and make sure the source path is a valid Maven repository root path. at org.jfrog.build.client.ArtifactoryBuildInfoClient.throwHttpIOException(ArtifactoryBuildInfoClient.java:642) at org.jfrog.build.client.ArtifactoryBuildInfoClient.uploadFile(ArtifactoryBuildInfoClient.java:517) at org.jfrog.build.client.ArtifactoryBuildInfoClient.deployArtifact(ArtifactoryBuildInfoClient.java:292) at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deployArtifacts(BuildDeploymentHelper.java:133) ... 26 more channel stopped Finished: FAILURE {noformat}
    via by Oph??lie Salm,
  • While making a build with maven and uploading artifacts to Artifactory, I receive the following exception: <===[JENKINS REMOTING CAPACITY]===>channel started Executing Maven: -B -f C:\hudson_home\jobs\AuditingWebService-Build-release-2.2.1\workspace\AuditingWebService\pom.xml clean install -Prelease [INFO] Scanning for projects... [INFO] Initializing Artifactory Build-Info Recording [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] AuditingWebService [INFO] AuditingWebService-webapp [INFO] AuditingWebService-ws-client [INFO] AuditingWebService-installer Projects to build: [MavenProject: it.ids:AuditingWebService:2.2.1 @ C:\hudson_home\jobs\AuditingWebService-Build-release-2.2.1\workspace\AuditingWebService\pom.xml, MavenProject: it.ids:AuditingWebService-webapp:2.2.1 @ C:\hudson_home\jobs\AuditingWebService-Build-release-2.2.1\workspace\AuditingWebService\AuditingWebService-webapp\pom.xml, MavenProject: it.ids:AuditingWebService-ws-client:2.2.1 @ C:\hudson_home\jobs\AuditingWebService-Build-release-2.2.1\workspace\AuditingWebService\AuditingWebService-ws-client\pom.xml, MavenProject: it.ids:AuditingWebService-installer:2.2.1 @ C:\hudson_home\jobs\AuditingWebService-Build-release-2.2.1\workspace\AuditingWebService\AuditingWebService-installer\pom.xml] [HUDSON] Collecting dependencies info [HUDSON] Collecting dependencies info [HUDSON] Collecting dependencies info [HUDSON] Collecting dependencies info projectStarted it.ids:AuditingWebService:2.2.1 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building AuditingWebService 2.2.1 [INFO] ------------------------------------------------------------------------ mojoStarted org.apache.maven.plugins:maven-clean-plugin:2.4.1(default-clean) [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ AuditingWebService --- [INFO] Deleting C:\hudson_home\jobs\AuditingWebService-Build-release-2.2.1\workspace\AuditingWebService\target mojoSucceeded org.apache.maven.plugins:maven-clean-plugin:2.4.1(default-clean) mojoStarted org.apache.maven.plugins:maven-install-plugin:2.3.1(default-install) [INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ AuditingWebService --- [INFO] Installing C:\hudson_home\jobs\AuditingWebService-Build-release-2.2.1\workspace\AuditingWebService\pom.xml to C:\Users\a.dionisi\.m2\repository\it\ids\AuditingWebService\2.2.1\AuditingWebService-2.2.1.pom mojoSucceeded org.apache.maven.plugins:maven-install-plugin:2.3.1(default-install) projectSucceeded it.ids:AuditingWebService:2.2.1 [INFO] Artifactory Build Info Recorder: Deploying artifacts to http://pch322x64:8081/artifactory/libs-releases-local [INFO] Deploying artifact: http://pch322x64:8081/artifactory/libs-releases-local/it/ids/AuditingWebService/2.2.1/AuditingWebService-2.2.1.pom [INFO] Deploying artifact: http://pch322x64:8081/artifactory/libs-releases-local/it/ids/AuditingWebService-webapp/2.2.1/AuditingWebService-webapp-2.2.1.war [INFO] Deploying artifact: http://pch322x64:8081/artifactory/libs-releases-local/it/ids/AuditingWebService-webapp/2.2.1/AuditingWebService-webapp-2.2.1.pom [INFO] Deploying artifact: http://pch322x64:8081/artifactory/libs-releases-local/it/ids/AuditingWebService-webapp/2.2.1/AuditingWebService-webapp-2.2.1-release-configuration.zip [INFO] Deploying artifact: http://pch322x64:8081/artifactory/libs-releases-local/it/ids/AuditingWebService-ws-client/2.2.1/AuditingWebService-ws-client-2.2.1.jar [INFO] Deploying artifact: http://pch322x64:8081/artifactory/libs-releases-local/it/ids/AuditingWebService-ws-client/2.2.1/AuditingWebService-ws-client-2.2.1.pom [INFO] Deploying artifact: http://pch322x64:8081/artifactory/libs-releases-local/it/ids/AuditingWebService-installer/2.2.1/AuditingWebService-installer-2.2.1-standard.jar [INFO] Deploying artifact: http://pch322x64:8081/artifactory/libs-releases-local/it/ids/AuditingWebService-installer/2.2.1/AuditingWebService-installer-2.2.1.pom mavenExecutionResult exceptions not empty message : Internal error: java.lang.RuntimeException: Error occurred while publishing artifact to Artifactory: C:\hudson_home\jobs\AuditingWebService-Build-release-2.2.1\workspace\AuditingWebService\AuditingWebService-installer\target\izpack\CustomComponents.jar. Skipping deployment of remaining artifacts (if any) and build info. cause : Error occurred while publishing artifact to Artifactory: C:\hudson_home\jobs\AuditingWebService-Build-release-2.2.1\workspace\AuditingWebService\AuditingWebService-installer\target\izpack\CustomComponents.jar. Skipping deployment of remaining artifacts (if any) and build info. Stack trace : org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Error occurred while publishing artifact to Artifactory: C:\hudson_home\jobs\AuditingWebService-Build-release-2.2.1\workspace\AuditingWebService\AuditingWebService-installer\target\izpack\CustomComponents.jar. Skipping deployment of remaining artifacts (if any) and build info. at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168) at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239) at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158) at hudson.maven.Maven3Builder.call(Maven3Builder.java:98) at hudson.maven.Maven3Builder.call(Maven3Builder.java:64) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.RuntimeException: Error occurred while publishing artifact to Artifactory: C:\hudson_home\jobs\AuditingWebService-Build-release-2.2.1\workspace\AuditingWebService\AuditingWebService-installer\target\izpack\CustomComponents.jar. Skipping deployment of remaining artifacts (if any) and build info. at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deployArtifacts(BuildDeploymentHelper.java:134) at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deploy(BuildDeploymentHelper.java:78) at org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded(BuildInfoRecorder.java:128) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:64) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:170) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) ... 19 more Caused by: java.io.IOException: Failed to deploy file: HTTP response code: 409. HTTP response message: Failed to read POM for 'it/ids/AuditingWebService-installer/2.2.1/AuditingWebService-installer-2.2.1.pom': only whitespace content allowed before start tag and not P (position: START_DOCUMENT seen P... @1:1) . at org.jfrog.build.client.ArtifactoryBuildInfoClient.throwHttpIOException(ArtifactoryBuildInfoClient.java:641) at org.jfrog.build.client.ArtifactoryBuildInfoClient.uploadFile(ArtifactoryBuildInfoClient.java:516) at org.jfrog.build.client.ArtifactoryBuildInfoClient.deployArtifact(ArtifactoryBuildInfoClient.java:291) at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deployArtifacts(BuildDeploymentHelper.java:132) ... 26 more This is the artifactory.log fragment: 2012-07-05 15:19:57,830 [pool-1-thread-11] [INFO ] (o.a.e.UploadServiceImpl:201) - Deploy to 'libs-releases-local:it/ids/AuditingWebService/2.2.1/AuditingWebService-2.2.1.pom' Content-Length: 9477 2012-07-05 15:19:58,249 [pool-1-thread-18] [INFO ] (o.a.e.UploadServiceImpl:201) - Deploy to 'libs-releases-local:it/ids/AuditingWebService-webapp/2.2.1/AuditingWebService-webapp-2.2.1.war' Content-Length: 0 2012-07-05 15:19:58,257 [pool-1-thread-15] [INFO ] (o.a.e.UploadServiceImpl:201) - Deploy to 'libs-releases-local:it/ids/AuditingWebService-webapp/2.2.1/AuditingWebService-webapp-2.2.1.war' Content-Length: 26321548 2012-07-05 15:19:59,356 [pool-1-thread-14] [INFO ] (o.a.e.UploadServiceImpl:201) - Deploy to 'libs-releases-local:it/ids/AuditingWebService-webapp/2.2.1/AuditingWebService-webapp-2.2.1.pom' Content-Length: 0 2012-07-05 15:19:59,448 [pool-1-thread-22] [INFO ] (o.a.e.UploadServiceImpl:201) - Deploy to 'libs-releases-local:it/ids/AuditingWebService-webapp/2.2.1/AuditingWebService-webapp-2.2.1-release-configuration.zip' Content-Length: 1130 2012-07-05 15:19:59,522 [art-exec-26] [INFO ] (o.a.s.a.ArchiveIndexer:102) - The content of the archive: 'AuditingWebService-webapp-2.2.1-release-configuration.zip' was indexed successfully. 2012-07-05 15:19:59,568 [pool-1-thread-28] [INFO ] (o.a.e.UploadServiceImpl:201) - Deploy to 'libs-releases-local:it/ids/AuditingWebService-ws-client/2.2.1/AuditingWebService-ws-client-2.2.1.jar' Content-Length: 0 2012-07-05 15:19:59,573 [pool-1-thread-17] [INFO ] (o.a.e.UploadServiceImpl:201) - Deploy to 'libs-releases-local:it/ids/AuditingWebService-ws-client/2.2.1/AuditingWebService-ws-client-2.2.1.jar' Content-Length: 54519 2012-07-05 15:19:59,777 [art-exec-26] [INFO ] (o.a.s.a.ArchiveIndexer:102) - The content of the archive: 'AuditingWebService-ws-client-2.2.1.jar' was indexed successfully. 2012-07-05 15:19:59,777 [pool-1-thread-20] [INFO ] (o.a.e.UploadServiceImpl:201) - Deploy to 'libs-releases-local:it/ids/AuditingWebService-ws-client/2.2.1/AuditingWebService-ws-client-2.2.1.pom' Content-Length: 5736 2012-07-05 15:19:59,870 [art-exec-24] [INFO ] (o.a.s.a.ArchiveIndexer:102) - The content of the archive: 'AuditingWebService-webapp-2.2.1.war' was indexed successfully. 2012-07-05 15:20:00,059 [pool-1-thread-16] [INFO ] (o.a.e.UploadServiceImpl:201) - Deploy to 'libs-releases-local:it/ids/AuditingWebService-installer/2.2.1/AuditingWebService-installer-2.2.1-standard.jar' Content-Length: 0 2012-07-05 15:20:00,065 [pool-1-thread-19] [INFO ] (o.a.e.UploadServiceImpl:201) - Deploy to 'libs-releases-local:it/ids/AuditingWebService-installer/2.2.1/AuditingWebService-installer-2.2.1-standard.jar' Content-Length: 36070751 2012-07-05 15:20:01,547 [pool-1-thread-21] [INFO ] (o.a.e.UploadServiceImpl:201) - Deploy to 'libs-releases-local:it/ids/AuditingWebService-installer/2.2.1/AuditingWebService-installer-2.2.1.pom' Content-Length: 9499 2012-07-05 15:20:01,550 [pool-1-thread-21] [WARN ] (o.a.r.j.StoringRepoMixin:669) - IO error while trying to save resource libs-releases-local:it/ids/AuditingWebService-installer/2.2.1/AuditingWebService-installer-2.2.1.pom'': Failed to read POM for 'it/ids/AuditingWebService-installer/2.2.1/AuditingWebService-installer-2.2.1.pom': only whitespace content allowed before start tag and not P (position: START_DOCUMENT seen P... @1:1) . 2012-07-05 15:20:01,550 [pool-1-thread-21] [WARN ] (o.a.e.UploadServiceImpl:311) - Sending HTTP error code 409: Failed to read POM for 'it/ids/AuditingWebService-installer/2.2.1/AuditingWebService-installer-2.2.1.pom': only whitespace content allowed before start tag and not P (position: START_DOCUMENT seen P... @1:1) ..
    via by Alessandro Dionisi,
  • We are getting this error message for a job attempting to deploy to artifactory mavenExecutionResult exceptions not empty message : Internal error: java.lang.RuntimeException: Error occurred while publishing Build Info to Artifactory. cause : Error occurred while publishing Build Info to Artifactory. Stack trace : org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Error occurred while publishing Build Info to Artifactory. at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168) at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239) at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158) at hudson.maven.Maven3Builder.call(Maven3Builder.java:98) at hudson.maven.Maven3Builder.call(Maven3Builder.java:64) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:287) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.RuntimeException: Error occurred while publishing Build Info to Artifactory. at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deploy(BuildDeploymentHelper.java:87) at org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded(BuildInfoRecorder.java:128) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:64) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:170) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) ... 19 more Caused by: java.io.IOException: Failed to send build info: HTTP response code: 500. HTTP response message: Internal Server Error at org.jfrog.build.client.ArtifactoryBuildInfoClient.throwHttpIOException(ArtifactoryBuildInfoClient.java:641) at org.jfrog.build.client.ArtifactoryBuildInfoClient.sendBuildInfo(ArtifactoryBuildInfoClient.java:240) at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deploy(BuildDeploymentHelper.java:85) ... 25 more channel stopped
    via by John Lysaght,
  • Hi, The artifactory plugin causes a build failure while performing a release with the Maven Release plugin. At the end of the build Artifactory tries to upload the old snapshot instead of deploying the new one. The issue has already been reported here [#HAP-93] and fixed for version 1.3.5, it seems to be a regression. Artifactory used to detect the release build and skip the uploading phase. However, the release versions are correctly uploaded to Artifactory during the maven-deploy phase. Here is the stack trace : {noformat} mojoSucceeded org.apache.maven.plugins:maven-release-plugin:2.3.2(default-cli) projectSucceeded ****:0.1.3-SNAPSHOT [INFO] Artifactory Build Info Recorder: Deploying artifacts to http://****/libs-release-local [INFO] Deploying artifact: http://****/libs-snapshot-local/****/****-0.1.3-SNAPSHOT.pom mavenExecutionResult exceptions not empty message : Internal error: java.lang.RuntimeException: Error occurred while publishing artifact to Artifactory: ****\pom.xml. Skipping deployment of remaining artifacts (if any) and build info. cause : Error occurred while publishing artifact to Artifactory: ****\pom.xml. Skipping deployment of remaining artifacts (if any) and build info. Stack trace : org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Error occurred while publishing artifact to Artifactory: ****\pom.xml. Skipping deployment of remaining artifacts (if any) and build info. at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168) at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239) at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158) at hudson.maven.Maven3Builder.call(Maven3Builder.java:98) at hudson.maven.Maven3Builder.call(Maven3Builder.java:64) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.RuntimeException: Error occurred while publishing artifact to Artifactory: ****\pom.xml. Skipping deployment of remaining artifacts (if any) and build info. at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deployArtifacts(BuildDeploymentHelper.java:135) at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deploy(BuildDeploymentHelper.java:78) at org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded(BuildInfoRecorder.java:130) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:64) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:170) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) ... 19 more Caused by: java.io.IOException: Failed to deploy file: HTTP response code: 409. HTTP response message: The target deployment path '****-0.1.3-20130123.161654-2.pom' does not match the POM's expected path prefix '****/0.1.4-SNAPSHOT'. Please verify your POM content for correctness and make sure the source path is a valid Maven repository root path. at org.jfrog.build.client.ArtifactoryBuildInfoClient.throwHttpIOException(ArtifactoryBuildInfoClient.java:642) at org.jfrog.build.client.ArtifactoryBuildInfoClient.uploadFile(ArtifactoryBuildInfoClient.java:517) at org.jfrog.build.client.ArtifactoryBuildInfoClient.deployArtifact(ArtifactoryBuildInfoClient.java:292) at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deployArtifacts(BuildDeploymentHelper.java:133) ... 26 more channel stopped Finished: FAILURE {noformat}
    via by Ophélie Salm,
  • While making a build with maven and uploading artifacts to Artifactory, I receive the following exception: <===[JENKINS REMOTING CAPACITY]===>channel started Executing Maven: -B -f C:\hudson_home\jobs\AuditingWebService-Build-release-2.2.1\workspace\AuditingWebService\pom.xml clean install -Prelease [INFO] Scanning for projects... [INFO] Initializing Artifactory Build-Info Recording [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] AuditingWebService [INFO] AuditingWebService-webapp [INFO] AuditingWebService-ws-client [INFO] AuditingWebService-installer Projects to build: [MavenProject: it.ids:AuditingWebService:2.2.1 @ C:\hudson_home\jobs\AuditingWebService-Build-release-2.2.1\workspace\AuditingWebService\pom.xml, MavenProject: it.ids:AuditingWebService-webapp:2.2.1 @ C:\hudson_home\jobs\AuditingWebService-Build-release-2.2.1\workspace\AuditingWebService\AuditingWebService-webapp\pom.xml, MavenProject: it.ids:AuditingWebService-ws-client:2.2.1 @ C:\hudson_home\jobs\AuditingWebService-Build-release-2.2.1\workspace\AuditingWebService\AuditingWebService-ws-client\pom.xml, MavenProject: it.ids:AuditingWebService-installer:2.2.1 @ C:\hudson_home\jobs\AuditingWebService-Build-release-2.2.1\workspace\AuditingWebService\AuditingWebService-installer\pom.xml] [HUDSON] Collecting dependencies info [HUDSON] Collecting dependencies info [HUDSON] Collecting dependencies info [HUDSON] Collecting dependencies info projectStarted it.ids:AuditingWebService:2.2.1 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building AuditingWebService 2.2.1 [INFO] ------------------------------------------------------------------------ mojoStarted org.apache.maven.plugins:maven-clean-plugin:2.4.1(default-clean) [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ AuditingWebService --- [INFO] Deleting C:\hudson_home\jobs\AuditingWebService-Build-release-2.2.1\workspace\AuditingWebService\target mojoSucceeded org.apache.maven.plugins:maven-clean-plugin:2.4.1(default-clean) mojoStarted org.apache.maven.plugins:maven-install-plugin:2.3.1(default-install) [INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ AuditingWebService --- [INFO] Installing C:\hudson_home\jobs\AuditingWebService-Build-release-2.2.1\workspace\AuditingWebService\pom.xml to C:\Users\a.dionisi\.m2\repository\it\ids\AuditingWebService\2.2.1\AuditingWebService-2.2.1.pom mojoSucceeded org.apache.maven.plugins:maven-install-plugin:2.3.1(default-install) projectSucceeded it.ids:AuditingWebService:2.2.1 [INFO] Artifactory Build Info Recorder: Deploying artifacts to http://pch322x64:8081/artifactory/libs-releases-local [INFO] Deploying artifact: http://pch322x64:8081/artifactory/libs-releases-local/it/ids/AuditingWebService/2.2.1/AuditingWebService-2.2.1.pom [INFO] Deploying artifact: http://pch322x64:8081/artifactory/libs-releases-local/it/ids/AuditingWebService-webapp/2.2.1/AuditingWebService-webapp-2.2.1.war [INFO] Deploying artifact: http://pch322x64:8081/artifactory/libs-releases-local/it/ids/AuditingWebService-webapp/2.2.1/AuditingWebService-webapp-2.2.1.pom [INFO] Deploying artifact: http://pch322x64:8081/artifactory/libs-releases-local/it/ids/AuditingWebService-webapp/2.2.1/AuditingWebService-webapp-2.2.1-release-configuration.zip [INFO] Deploying artifact: http://pch322x64:8081/artifactory/libs-releases-local/it/ids/AuditingWebService-ws-client/2.2.1/AuditingWebService-ws-client-2.2.1.jar [INFO] Deploying artifact: http://pch322x64:8081/artifactory/libs-releases-local/it/ids/AuditingWebService-ws-client/2.2.1/AuditingWebService-ws-client-2.2.1.pom [INFO] Deploying artifact: http://pch322x64:8081/artifactory/libs-releases-local/it/ids/AuditingWebService-installer/2.2.1/AuditingWebService-installer-2.2.1-standard.jar [INFO] Deploying artifact: http://pch322x64:8081/artifactory/libs-releases-local/it/ids/AuditingWebService-installer/2.2.1/AuditingWebService-installer-2.2.1.pom mavenExecutionResult exceptions not empty message : Internal error: java.lang.RuntimeException: Error occurred while publishing artifact to Artifactory: C:\hudson_home\jobs\AuditingWebService-Build-release-2.2.1\workspace\AuditingWebService\AuditingWebService-installer\target\izpack\CustomComponents.jar. Skipping deployment of remaining artifacts (if any) and build info. cause : Error occurred while publishing artifact to Artifactory: C:\hudson_home\jobs\AuditingWebService-Build-release-2.2.1\workspace\AuditingWebService\AuditingWebService-installer\target\izpack\CustomComponents.jar. Skipping deployment of remaining artifacts (if any) and build info. Stack trace : org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Error occurred while publishing artifact to Artifactory: C:\hudson_home\jobs\AuditingWebService-Build-release-2.2.1\workspace\AuditingWebService\AuditingWebService-installer\target\izpack\CustomComponents.jar. Skipping deployment of remaining artifacts (if any) and build info. at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168) at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239) at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158) at hudson.maven.Maven3Builder.call(Maven3Builder.java:98) at hudson.maven.Maven3Builder.call(Maven3Builder.java:64) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.RuntimeException: Error occurred while publishing artifact to Artifactory: C:\hudson_home\jobs\AuditingWebService-Build-release-2.2.1\workspace\AuditingWebService\AuditingWebService-installer\target\izpack\CustomComponents.jar. Skipping deployment of remaining artifacts (if any) and build info. at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deployArtifacts(BuildDeploymentHelper.java:134) at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deploy(BuildDeploymentHelper.java:78) at org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded(BuildInfoRecorder.java:128) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:64) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:170) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) ... 19 more Caused by: java.io.IOException: Failed to deploy file: HTTP response code: 409. HTTP response message: Failed to read POM for 'it/ids/AuditingWebService-installer/2.2.1/AuditingWebService-installer-2.2.1.pom': only whitespace content allowed before start tag and not P (position: START_DOCUMENT seen P... @1:1) . at org.jfrog.build.client.ArtifactoryBuildInfoClient.throwHttpIOException(ArtifactoryBuildInfoClient.java:641) at org.jfrog.build.client.ArtifactoryBuildInfoClient.uploadFile(ArtifactoryBuildInfoClient.java:516) at org.jfrog.build.client.ArtifactoryBuildInfoClient.deployArtifact(ArtifactoryBuildInfoClient.java:291) at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deployArtifacts(BuildDeploymentHelper.java:132) ... 26 more This is the artifactory.log fragment: 2012-07-05 15:19:57,830 [pool-1-thread-11] [INFO ] (o.a.e.UploadServiceImpl:201) - Deploy to 'libs-releases-local:it/ids/AuditingWebService/2.2.1/AuditingWebService-2.2.1.pom' Content-Length: 9477 2012-07-05 15:19:58,249 [pool-1-thread-18] [INFO ] (o.a.e.UploadServiceImpl:201) - Deploy to 'libs-releases-local:it/ids/AuditingWebService-webapp/2.2.1/AuditingWebService-webapp-2.2.1.war' Content-Length: 0 2012-07-05 15:19:58,257 [pool-1-thread-15] [INFO ] (o.a.e.UploadServiceImpl:201) - Deploy to 'libs-releases-local:it/ids/AuditingWebService-webapp/2.2.1/AuditingWebService-webapp-2.2.1.war' Content-Length: 26321548 2012-07-05 15:19:59,356 [pool-1-thread-14] [INFO ] (o.a.e.UploadServiceImpl:201) - Deploy to 'libs-releases-local:it/ids/AuditingWebService-webapp/2.2.1/AuditingWebService-webapp-2.2.1.pom' Content-Length: 0 2012-07-05 15:19:59,448 [pool-1-thread-22] [INFO ] (o.a.e.UploadServiceImpl:201) - Deploy to 'libs-releases-local:it/ids/AuditingWebService-webapp/2.2.1/AuditingWebService-webapp-2.2.1-release-configuration.zip' Content-Length: 1130 2012-07-05 15:19:59,522 [art-exec-26] [INFO ] (o.a.s.a.ArchiveIndexer:102) - The content of the archive: 'AuditingWebService-webapp-2.2.1-release-configuration.zip' was indexed successfully. 2012-07-05 15:19:59,568 [pool-1-thread-28] [INFO ] (o.a.e.UploadServiceImpl:201) - Deploy to 'libs-releases-local:it/ids/AuditingWebService-ws-client/2.2.1/AuditingWebService-ws-client-2.2.1.jar' Content-Length: 0 2012-07-05 15:19:59,573 [pool-1-thread-17] [INFO ] (o.a.e.UploadServiceImpl:201) - Deploy to 'libs-releases-local:it/ids/AuditingWebService-ws-client/2.2.1/AuditingWebService-ws-client-2.2.1.jar' Content-Length: 54519 2012-07-05 15:19:59,777 [art-exec-26] [INFO ] (o.a.s.a.ArchiveIndexer:102) - The content of the archive: 'AuditingWebService-ws-client-2.2.1.jar' was indexed successfully. 2012-07-05 15:19:59,777 [pool-1-thread-20] [INFO ] (o.a.e.UploadServiceImpl:201) - Deploy to 'libs-releases-local:it/ids/AuditingWebService-ws-client/2.2.1/AuditingWebService-ws-client-2.2.1.pom' Content-Length: 5736 2012-07-05 15:19:59,870 [art-exec-24] [INFO ] (o.a.s.a.ArchiveIndexer:102) - The content of the archive: 'AuditingWebService-webapp-2.2.1.war' was indexed successfully. 2012-07-05 15:20:00,059 [pool-1-thread-16] [INFO ] (o.a.e.UploadServiceImpl:201) - Deploy to 'libs-releases-local:it/ids/AuditingWebService-installer/2.2.1/AuditingWebService-installer-2.2.1-standard.jar' Content-Length: 0 2012-07-05 15:20:00,065 [pool-1-thread-19] [INFO ] (o.a.e.UploadServiceImpl:201) - Deploy to 'libs-releases-local:it/ids/AuditingWebService-installer/2.2.1/AuditingWebService-installer-2.2.1-standard.jar' Content-Length: 36070751 2012-07-05 15:20:01,547 [pool-1-thread-21] [INFO ] (o.a.e.UploadServiceImpl:201) - Deploy to 'libs-releases-local:it/ids/AuditingWebService-installer/2.2.1/AuditingWebService-installer-2.2.1.pom' Content-Length: 9499 2012-07-05 15:20:01,550 [pool-1-thread-21] [WARN ] (o.a.r.j.StoringRepoMixin:669) - IO error while trying to save resource libs-releases-local:it/ids/AuditingWebService-installer/2.2.1/AuditingWebService-installer-2.2.1.pom'': Failed to read POM for 'it/ids/AuditingWebService-installer/2.2.1/AuditingWebService-installer-2.2.1.pom': only whitespace content allowed before start tag and not P (position: START_DOCUMENT seen P... @1:1) . 2012-07-05 15:20:01,550 [pool-1-thread-21] [WARN ] (o.a.e.UploadServiceImpl:311) - Sending HTTP error code 409: Failed to read POM for 'it/ids/AuditingWebService-installer/2.2.1/AuditingWebService-installer-2.2.1.pom': only whitespace content allowed before start tag and not P (position: START_DOCUMENT seen P... @1:1) ..
    via by Alessandro Dionisi,
    • org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Error occurred while publishing artifact to Artifactory: C:\Documents and Settings\n98743\.jenkins\workspace\jenkins release test\pom.xml. Skipping deployment of remaining artifacts (if any) and build info. at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168) at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239) at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158) at hudson.maven.Maven3Builder.call(Maven3Builder.java:100) at hudson.maven.Maven3Builder.call(Maven3Builder.java:66) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.RuntimeException: Error occurred while publishing artifact to Artifactory: C:\Documents and Settings\n98743\.jenkins\workspace\jenkins release test\pom.xml. Skipping deployment of remaining artifacts (if any) and build info. at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deployArtifacts(BuildDeploymentHelper.java:135) at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deploy(BuildDeploymentHelper.java:78) at org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded(BuildInfoRecorder.java:132) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:64) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:170) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) ... 19 more Caused by: java.io.IOException: Failed to deploy file: HTTP response code: 409. HTTP response message: Conflict at org.jfrog.build.client.ArtifactoryBuildInfoClient.throwHttpIOException(ArtifactoryBuildInfoClient.java:642) at org.jfrog.build.client.ArtifactoryBuildInfoClient.uploadFile(ArtifactoryBuildInfoClient.java:517) at org.jfrog.build.client.ArtifactoryBuildInfoClient.deployArtifact(ArtifactoryBuildInfoClient.java:292) at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deployArtifacts(BuildDeploymentHelper.java:133) ... 26 more

    Users with the same issue

    Unknown visitor1 times, last one,