org.sonatype.aether.deployment.DeploymentException

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.

  • Building a Maven project on a slave with _Use private Maven repository_ breaks the "Redeploy artifacts" functionality. *Work-around:* After the build, change setting to [ ] _Use private maven repository_ and _Redeploy_. The correct artifacts from the private repository are deployed. *Stack trace:* Project http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/1/redeploy/ gives: {code} [INFO] Deployment in file:///tmp/test1337 (id=test1337,uniqueVersion=true) Deploying the main artifact helloworld-0.0.1-SNAPSHOT.jar org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to update metadata com.example:helloworld:0.0.1-SNAPSHOT/maven-metadata.xml: Could not write metadata /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml (No such file or directory) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:141) at hudson.maven.reporters.MavenArtifactRecord.deploy(MavenArtifactRecord.java:189) at hudson.maven.reporters.MavenAggregatedArtifactRecord.deploy(MavenAggregatedArtifactRecord.java:95) at hudson.maven.reporters.MavenAbstractArtifactRecord$1.perform(MavenAbstractArtifactRecord.java:233) at hudson.model.TaskThread.run(TaskThread.java:126) Caused by: org.sonatype.aether.deployment.DeploymentException: Failed to update metadata com.example:helloworld:0.0.1-SNAPSHOT/maven-metadata.xml: Could not write metadata /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml (No such file or directory) at org.sonatype.aether.impl.internal.DefaultDeployer.upload(DefaultDeployer.java:418) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:260) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:215) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:480) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:137) ... 4 more Caused by: org.sonatype.aether.RepositoryException: Could not write metadata /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml (No such file or directory) at org.apache.maven.repository.internal.MavenMetadata.write(MavenMetadata.java:125) at org.apache.maven.repository.internal.MavenMetadata.merge(MavenMetadata.java:73) at org.sonatype.aether.impl.internal.DefaultDeployer.upload(DefaultDeployer.java:414) ... 8 more Caused by: java.io.FileNotFoundException: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at org.codehaus.plexus.util.xml.XmlStreamWriter.<init>(XmlStreamWriter.java:59) at org.codehaus.plexus.util.WriterFactory.newXmlWriter(WriterFactory.java:117) at org.apache.maven.repository.internal.MavenMetadata.write(MavenMetadata.java:120) ... 10 more {code} Note: {{/home/jenkins/jenkins/}} is the path of the *slave*. Master is in {{/local/hudson}}. *To reproduce:* * Set up a slave, disable builds on master (alternatively - tie build to slave) * Create a new Jenkins project for Maven 2/3. ** Source code: GIT - {{git://github.com/stain/helloworld.git}} (Problem also exists with Subversion) ** Build - Goals and options: {{clean install}} *** Advanced: [x] Use private Maven repository * *Save*, then *Build Now*. * Go to _Last Successful Build_. * Click *Redeploy Artifacts*. * Advanced: ** Repository URL: {{file:///tmp/example}} ** Repository ID: {{example}} ** [x] Assign unique versions to snapshots (fails with both settings) ** *OK* *Analysis* This seems related to JENKINS-8711. Note - changing the configuration to do a Post-build deploy works: * Post-build actions ** (Same settings as above) ** *Save*, *Build* See http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/2/console for successful deployment. {code} [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5 seconds [INFO] Finished at: Fri Jul 22 10:39:58 BST 2011 [INFO] Final Memory: 14M/34M [INFO] ------------------------------------------------------------------------ channel stopped Maven RedeployPublished use remote jenkins-vm.taverna.org.uk maven settings from : /home/jenkins/.m2/settings.xml [INFO] Deployment in file:///tmp/example (id=example,uniqueVersion=true) Deploying the main artifact helloworld-0.0.1-SNAPSHOT.jar [INFO] Deployment done in 0.28 sec Finished: SUCCESS {code} The files got correctly deployed on {{/tmp}} of the _master_ (and not on the slave): {code} root@rosalind-) ls /tmp/example/com/example/helloworld/ 0.0.1-SNAPSHOT maven-metadata.xml.md5 maven-metadata.xml maven-metadata.xml.sha1 {code} However, redeploy from this build does not work. Later changing the configuration to *NOT _Use private Maven repository_* and rebuilding works: http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/4/redeploy/ {code} [INFO] Deployment in file:///tmp/example3 (id=example3,uniqueVersion=true) Deploying the main artifact helloworld-0.0.1-SNAPSHOT.jar Completed {code} In fact - this allows redeploying on the initial build 1 as well! http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/1/redeploy/2/ {code} [INFO] Deployment in file:///tmp/test5 (id=test5,uniqueVersion=true) Deploying the main artifact helloworld-0.0.1-SNAPSHOT.jar Completed {code} When checking the md5-sums on the deployed folder on the master: {code} root@rosalind-) md5sum /tmp/test5/com/example/helloworld/0.0.1-SNAPSHOT/helloworld-0.0.1-20110722.094641-1.jar 980f75ad9126031ff46f2ee03dcc64e9 /tmp/test5/com/example/helloworld/0.0.1-SNAPSHOT/helloworld-0.0.1-20110722.094641-1.jar {code} These matches the original build http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/1/com.example$helloworld/artifact/com.example/helloworld/0.0.1-SNAPSHOT/helloworld-0.0.1-SNAPSHOT.jar/*fingerprint*/ and not the latest non-private build http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/4/com.example$helloworld/artifact/com.example/helloworld/0.0.1-SNAPSHOT/helloworld-0.0.1-SNAPSHOT.jar/*fingerprint*/ .. so Jenkins did deploy the right version from the private repository. As a counter-example, change the setting back to use the private repository and try to redeploy build 4 (build without private): http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/4/redeploy/ fails with similar stack trace: {code} [INFO] Deployment in file:///tmp/example13 (id=example13,uniqueVersion=true) Deploying the main artifact helloworld-0.0.1-SNAPSHOT.jar org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to update metadata com.example:helloworld:0.0.1-SNAPSHOT/maven-metadata.xml: Could not write metadata /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml (No such file or directory) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:141) at hudson.maven.reporters.MavenArtifactRecord.deploy(MavenArtifactRecord.java:189) at hudson.maven.reporters.MavenAggregatedArtifactRecord.deploy(MavenAggregatedArtifactRecord.java:95) at hudson.maven.reporters.MavenAbstractArtifactRecord$1.perform(MavenAbstractArtifactRecord.java:233) at hudson.model.TaskThread.run(TaskThread.java:126) Caused by: org.sonatype.aether.deployment.DeploymentException: Failed to update metadata com.example:helloworld:0.0.1-SNAPSHOT/maven-metadata.xml: Could not write metadata /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml (No such file or directory) at org.sonatype.aether.impl.internal.DefaultDeployer.upload(DefaultDeployer.java:418) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:260) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:215) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:480) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:137) ... 4 more Caused by: org.sonatype.aether.RepositoryException: Could not write metadata /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml (No such file or directory) at org.apache.maven.repository.internal.MavenMetadata.write(MavenMetadata.java:125) at org.apache.maven.repository.internal.MavenMetadata.merge(MavenMetadata.java:73) at org.sonatype.aether.impl.internal.DefaultDeployer.upload(DefaultDeployer.java:414) ... 8 more Caused by: java.io.FileNotFoundException: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at org.codehaus.plexus.util.xml.XmlStreamWriter.<init>(XmlStreamWriter.java:59) at org.codehaus.plexus.util.WriterFactory.newXmlWriter(WriterFactory.java:117) at org.apache.maven.repository.internal.MavenMetadata.write(MavenMetadata.java:120) ... 10 more {code}
    via by Stian Soiland-Reyes,
  • Building a Maven project on a slave with _Use private Maven repository_ breaks the "Redeploy artifacts" functionality. Work-around: After the build, change setting to [ ] _Use private maven repository_ and _Redeploy_. The correct artifacts from the private repository are deployed. Project http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/1/redeploy/ gives: {code} [INFO] Deployment in file:///tmp/test1337 (id=test1337,uniqueVersion=true) Deploying the main artifact helloworld-0.0.1-SNAPSHOT.jar org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to update metadata com.example:helloworld:0.0.1-SNAPSHOT/maven-metadata.xml: Could not write metadata /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml (No such file or directory) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:141) at hudson.maven.reporters.MavenArtifactRecord.deploy(MavenArtifactRecord.java:189) at hudson.maven.reporters.MavenAggregatedArtifactRecord.deploy(MavenAggregatedArtifactRecord.java:95) at hudson.maven.reporters.MavenAbstractArtifactRecord$1.perform(MavenAbstractArtifactRecord.java:233) at hudson.model.TaskThread.run(TaskThread.java:126) Caused by: org.sonatype.aether.deployment.DeploymentException: Failed to update metadata com.example:helloworld:0.0.1-SNAPSHOT/maven-metadata.xml: Could not write metadata /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml (No such file or directory) at org.sonatype.aether.impl.internal.DefaultDeployer.upload(DefaultDeployer.java:418) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:260) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:215) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:480) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:137) ... 4 more Caused by: org.sonatype.aether.RepositoryException: Could not write metadata /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml (No such file or directory) at org.apache.maven.repository.internal.MavenMetadata.write(MavenMetadata.java:125) at org.apache.maven.repository.internal.MavenMetadata.merge(MavenMetadata.java:73) at org.sonatype.aether.impl.internal.DefaultDeployer.upload(DefaultDeployer.java:414) ... 8 more Caused by: java.io.FileNotFoundException: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at org.codehaus.plexus.util.xml.XmlStreamWriter.<init>(XmlStreamWriter.java:59) at org.codehaus.plexus.util.WriterFactory.newXmlWriter(WriterFactory.java:117) at org.apache.maven.repository.internal.MavenMetadata.write(MavenMetadata.java:120) ... 10 more {code} Note: {{/home/jenkins/jenkins/}} is the path of the *slave*. Master is in {{/local/hudson}}. To reproduce: * Set up a slave, disable builds on master (alternatively - tie build to slave) * Create a new Jenkins project for Maven 2/3. ** Source code: GIT - {{git://github.com/stain/helloworld.git}} (Problem also exists with Subversion) ** Build - Goals and options: {{clean install}} *** Advanced: [x] Use private Maven repository * *Save*, then *Build Now*. * Go to _Last Successful Build_. * Click *Redeploy Artifacts*. * Advanced: ** Repository URL: {{file:///tmp/example}} ** Repository ID: {{example}} ** [x] Assign unique versions to snapshots (fails with both settings) ** *OK* This seems related to JENKINS-8711. Note - changing the configuration to do a Post-build deploy works: * Post-build actions ** (Same settings as above) ** *Save*, *Build* See http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/2/console for successful deployment. {code} [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5 seconds [INFO] Finished at: Fri Jul 22 10:39:58 BST 2011 [INFO] Final Memory: 14M/34M [INFO] ------------------------------------------------------------------------ channel stopped Maven RedeployPublished use remote jenkins-vm.taverna.org.uk maven settings from : /home/jenkins/.m2/settings.xml [INFO] Deployment in file:///tmp/example (id=example,uniqueVersion=true) Deploying the main artifact helloworld-0.0.1-SNAPSHOT.jar [INFO] Deployment done in 0.28 sec Finished: SUCCESS {code} The files got correctly deployed on {{/tmp}} of the _master_ (and not on the slave): {code} root@rosalind-) ls /tmp/example/com/example/helloworld/ 0.0.1-SNAPSHOT maven-metadata.xml.md5 maven-metadata.xml maven-metadata.xml.sha1 {code} However, redeploy from this build does not work. Later changing the configuration to *NOT _Use private Maven repository_* and rebuilding works: http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/4/redeploy/ {code} [INFO] Deployment in file:///tmp/example3 (id=example3,uniqueVersion=true) Deploying the main artifact helloworld-0.0.1-SNAPSHOT.jar Completed {code} In fact - this allows redeploying on the initial build 1 as well! http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/1/redeploy/2/ {code} [INFO] Deployment in file:///tmp/test5 (id=test5,uniqueVersion=true) Deploying the main artifact helloworld-0.0.1-SNAPSHOT.jar Completed {code} When checking the md5-sums on the deployed folder on the master: {code} root@rosalind-) md5sum /tmp/test5/com/example/helloworld/0.0.1-SNAPSHOT/helloworld-0.0.1-20110722.094641-1.jar 980f75ad9126031ff46f2ee03dcc64e9 /tmp/test5/com/example/helloworld/0.0.1-SNAPSHOT/helloworld-0.0.1-20110722.094641-1.jar {code} These matches the original build http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/1/com.example$helloworld/artifact/com.example/helloworld/0.0.1-SNAPSHOT/helloworld-0.0.1-SNAPSHOT.jar/*fingerprint*/ and not the latest non-private build http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/4/com.example$helloworld/artifact/com.example/helloworld/0.0.1-SNAPSHOT/helloworld-0.0.1-SNAPSHOT.jar/*fingerprint*/ .. so Jenkins did deploy the right version from the private repository. As a counter-example, change the setting back to use the private repository and try to redeploy build 4 (build without private): http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/4/redeploy/ fails with similar stack trace: {code} [INFO] Deployment in file:///tmp/example13 (id=example13,uniqueVersion=true) Deploying the main artifact helloworld-0.0.1-SNAPSHOT.jar org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to update metadata com.example:helloworld:0.0.1-SNAPSHOT/maven-metadata.xml: Could not write metadata /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml (No such file or directory) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:141) at hudson.maven.reporters.MavenArtifactRecord.deploy(MavenArtifactRecord.java:189) at hudson.maven.reporters.MavenAggregatedArtifactRecord.deploy(MavenAggregatedArtifactRecord.java:95) at hudson.maven.reporters.MavenAbstractArtifactRecord$1.perform(MavenAbstractArtifactRecord.java:233) at hudson.model.TaskThread.run(TaskThread.java:126) Caused by: org.sonatype.aether.deployment.DeploymentException: Failed to update metadata com.example:helloworld:0.0.1-SNAPSHOT/maven-metadata.xml: Could not write metadata /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml (No such file or directory) at org.sonatype.aether.impl.internal.DefaultDeployer.upload(DefaultDeployer.java:418) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:260) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:215) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:480) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:137) ... 4 more Caused by: org.sonatype.aether.RepositoryException: Could not write metadata /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml (No such file or directory) at org.apache.maven.repository.internal.MavenMetadata.write(MavenMetadata.java:125) at org.apache.maven.repository.internal.MavenMetadata.merge(MavenMetadata.java:73) at org.sonatype.aether.impl.internal.DefaultDeployer.upload(DefaultDeployer.java:414) ... 8 more Caused by: java.io.FileNotFoundException: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at org.codehaus.plexus.util.xml.XmlStreamWriter.<init>(XmlStreamWriter.java:59) at org.codehaus.plexus.util.WriterFactory.newXmlWriter(WriterFactory.java:117) at org.apache.maven.repository.internal.MavenMetadata.write(MavenMetadata.java:120) ... 10 more {code}
    via by Stian Soiland-Reyes,
  • Building a Maven project on a slave with _Use private Maven repository_ breaks the "Redeploy artifacts" functionality. Work-around: After the build, change setting to [ ] _Use private maven repository_ and _Redeploy_. The correct artifacts from the private repository are deployed. Project http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/1/redeploy/ gives: {code} [INFO] Deployment in file:///tmp/test1337 (id=test1337,uniqueVersion=true) Deploying the main artifact helloworld-0.0.1-SNAPSHOT.jar org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to update metadata com.example:helloworld:0.0.1-SNAPSHOT/maven-metadata.xml: Could not write metadata /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml (No such file or directory) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:141) at hudson.maven.reporters.MavenArtifactRecord.deploy(MavenArtifactRecord.java:189) at hudson.maven.reporters.MavenAggregatedArtifactRecord.deploy(MavenAggregatedArtifactRecord.java:95) at hudson.maven.reporters.MavenAbstractArtifactRecord$1.perform(MavenAbstractArtifactRecord.java:233) at hudson.model.TaskThread.run(TaskThread.java:126) Caused by: org.sonatype.aether.deployment.DeploymentException: Failed to update metadata com.example:helloworld:0.0.1-SNAPSHOT/maven-metadata.xml: Could not write metadata /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml (No such file or directory) at org.sonatype.aether.impl.internal.DefaultDeployer.upload(DefaultDeployer.java:418) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:260) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:215) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:480) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:137) ... 4 more Caused by: org.sonatype.aether.RepositoryException: Could not write metadata /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml (No such file or directory) at org.apache.maven.repository.internal.MavenMetadata.write(MavenMetadata.java:125) at org.apache.maven.repository.internal.MavenMetadata.merge(MavenMetadata.java:73) at org.sonatype.aether.impl.internal.DefaultDeployer.upload(DefaultDeployer.java:414) ... 8 more Caused by: java.io.FileNotFoundException: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at org.codehaus.plexus.util.xml.XmlStreamWriter.<init>(XmlStreamWriter.java:59) at org.codehaus.plexus.util.WriterFactory.newXmlWriter(WriterFactory.java:117) at org.apache.maven.repository.internal.MavenMetadata.write(MavenMetadata.java:120) ... 10 more {code} Note: {{/home/jenkins/jenkins/}} is the path of the *slave*. Master is in {{/local/hudson}}. To reproduce: * Set up a slave, disable builds on master (alternatively - tie build to slave) * Create a new Jenkins project for Maven 2/3. ** Source code: GIT - {{git://github.com/stain/helloworld.git}} (Problem also exists with Subversion) ** Build - Goals and options: {{clean install}} *** Advanced: [x] Use private Maven repository * *Save*, then *Build Now*. * Go to _Last Successful Build_. * Click *Redeploy Artifacts*. * Advanced: ** Repository URL: {{file:///tmp/example}} ** Repository ID: {{example}} ** [x] Assign unique versions to snapshots (fails with both settings) ** *OK* This seems related to JENKINS-8711. Note - changing the configuration to do a Post-build deploy works: * Post-build actions ** (Same settings as above) ** *Save*, *Build* See http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/2/console for successful deployment. {code} [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5 seconds [INFO] Finished at: Fri Jul 22 10:39:58 BST 2011 [INFO] Final Memory: 14M/34M [INFO] ------------------------------------------------------------------------ channel stopped Maven RedeployPublished use remote jenkins-vm.taverna.org.uk maven settings from : /home/jenkins/.m2/settings.xml [INFO] Deployment in file:///tmp/example (id=example,uniqueVersion=true) Deploying the main artifact helloworld-0.0.1-SNAPSHOT.jar [INFO] Deployment done in 0.28 sec Finished: SUCCESS {code} The files got correctly deployed on {{/tmp}} of the _master_ (and not on the slave): {code} root@rosalind-) ls /tmp/example/com/example/helloworld/ 0.0.1-SNAPSHOT maven-metadata.xml.md5 maven-metadata.xml maven-metadata.xml.sha1 {code} However, redeploy from this build does not work. Later changing the configuration to *NOT _Use private Maven repository_* and rebuilding works: http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/4/redeploy/ {code} [INFO] Deployment in file:///tmp/example3 (id=example3,uniqueVersion=true) Deploying the main artifact helloworld-0.0.1-SNAPSHOT.jar Completed {code} In fact - this allows redeploying on the initial build 1 as well! http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/1/redeploy/2/ {code} [INFO] Deployment in file:///tmp/test5 (id=test5,uniqueVersion=true) Deploying the main artifact helloworld-0.0.1-SNAPSHOT.jar Completed {code} When checking the md5-sums on the deployed folder on the master: {code} root@rosalind-) md5sum /tmp/test5/com/example/helloworld/0.0.1-SNAPSHOT/helloworld-0.0.1-20110722.094641-1.jar 980f75ad9126031ff46f2ee03dcc64e9 /tmp/test5/com/example/helloworld/0.0.1-SNAPSHOT/helloworld-0.0.1-20110722.094641-1.jar {code} These matches the original build http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/1/com.example$helloworld/artifact/com.example/helloworld/0.0.1-SNAPSHOT/helloworld-0.0.1-SNAPSHOT.jar/*fingerprint*/ and not the latest non-private build http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/4/com.example$helloworld/artifact/com.example/helloworld/0.0.1-SNAPSHOT/helloworld-0.0.1-SNAPSHOT.jar/*fingerprint*/ .. so Jenkins did deploy the right version from the private repository. As a counter-example, change the setting back to use the private repository and try to redeploy build 4 (build without private): http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/4/redeploy/ fails with similar stack trace: {code} [INFO] Deployment in file:///tmp/example13 (id=example13,uniqueVersion=true) Deploying the main artifact helloworld-0.0.1-SNAPSHOT.jar org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to update metadata com.example:helloworld:0.0.1-SNAPSHOT/maven-metadata.xml: Could not write metadata /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml (No such file or directory) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:141) at hudson.maven.reporters.MavenArtifactRecord.deploy(MavenArtifactRecord.java:189) at hudson.maven.reporters.MavenAggregatedArtifactRecord.deploy(MavenAggregatedArtifactRecord.java:95) at hudson.maven.reporters.MavenAbstractArtifactRecord$1.perform(MavenAbstractArtifactRecord.java:233) at hudson.model.TaskThread.run(TaskThread.java:126) Caused by: org.sonatype.aether.deployment.DeploymentException: Failed to update metadata com.example:helloworld:0.0.1-SNAPSHOT/maven-metadata.xml: Could not write metadata /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml (No such file or directory) at org.sonatype.aether.impl.internal.DefaultDeployer.upload(DefaultDeployer.java:418) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:260) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:215) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:480) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:137) ... 4 more Caused by: org.sonatype.aether.RepositoryException: Could not write metadata /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml (No such file or directory) at org.apache.maven.repository.internal.MavenMetadata.write(MavenMetadata.java:125) at org.apache.maven.repository.internal.MavenMetadata.merge(MavenMetadata.java:73) at org.sonatype.aether.impl.internal.DefaultDeployer.upload(DefaultDeployer.java:414) ... 8 more Caused by: java.io.FileNotFoundException: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at org.codehaus.plexus.util.xml.XmlStreamWriter.<init>(XmlStreamWriter.java:59) at org.codehaus.plexus.util.WriterFactory.newXmlWriter(WriterFactory.java:117) at org.apache.maven.repository.internal.MavenMetadata.write(MavenMetadata.java:120) ... 10 more {code}
    via by Stian Soiland-Reyes,
  • Building a Maven project on a slave with _Use private Maven repository_ breaks the "Redeploy artifacts" functionality. *Work-around:* After the build, change setting to [ ] _Use private maven repository_ and _Redeploy_. The correct artifacts from the private repository are deployed. *Stack trace:* Project http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/1/redeploy/ gives: {code} [INFO] Deployment in file:///tmp/test1337 (id=test1337,uniqueVersion=true) Deploying the main artifact helloworld-0.0.1-SNAPSHOT.jar org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to update metadata com.example:helloworld:0.0.1-SNAPSHOT/maven-metadata.xml: Could not write metadata /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml (No such file or directory) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:141) at hudson.maven.reporters.MavenArtifactRecord.deploy(MavenArtifactRecord.java:189) at hudson.maven.reporters.MavenAggregatedArtifactRecord.deploy(MavenAggregatedArtifactRecord.java:95) at hudson.maven.reporters.MavenAbstractArtifactRecord$1.perform(MavenAbstractArtifactRecord.java:233) at hudson.model.TaskThread.run(TaskThread.java:126) Caused by: org.sonatype.aether.deployment.DeploymentException: Failed to update metadata com.example:helloworld:0.0.1-SNAPSHOT/maven-metadata.xml: Could not write metadata /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml (No such file or directory) at org.sonatype.aether.impl.internal.DefaultDeployer.upload(DefaultDeployer.java:418) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:260) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:215) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:480) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:137) ... 4 more Caused by: org.sonatype.aether.RepositoryException: Could not write metadata /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml (No such file or directory) at org.apache.maven.repository.internal.MavenMetadata.write(MavenMetadata.java:125) at org.apache.maven.repository.internal.MavenMetadata.merge(MavenMetadata.java:73) at org.sonatype.aether.impl.internal.DefaultDeployer.upload(DefaultDeployer.java:414) ... 8 more Caused by: java.io.FileNotFoundException: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at org.codehaus.plexus.util.xml.XmlStreamWriter.<init>(XmlStreamWriter.java:59) at org.codehaus.plexus.util.WriterFactory.newXmlWriter(WriterFactory.java:117) at org.apache.maven.repository.internal.MavenMetadata.write(MavenMetadata.java:120) ... 10 more {code} Note: {{/home/jenkins/jenkins/}} is the path of the *slave*. Master is in {{/local/hudson}}. *To reproduce:* * Set up a slave, disable builds on master (alternatively - tie build to slave) * Create a new Jenkins project for Maven 2/3. ** Source code: GIT - {{git://github.com/stain/helloworld.git}} (Problem also exists with Subversion) ** Build - Goals and options: {{clean install}} *** Advanced: [x] Use private Maven repository * *Save*, then *Build Now*. * Go to _Last Successful Build_. * Click *Redeploy Artifacts*. * Advanced: ** Repository URL: {{file:///tmp/example}} ** Repository ID: {{example}} ** [x] Assign unique versions to snapshots (fails with both settings) ** *OK* *Analysis* This seems related to JENKINS-8711. Note - changing the configuration to do a Post-build deploy works: * Post-build actions ** (Same settings as above) ** *Save*, *Build* See http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/2/console for successful deployment. {code} [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5 seconds [INFO] Finished at: Fri Jul 22 10:39:58 BST 2011 [INFO] Final Memory: 14M/34M [INFO] ------------------------------------------------------------------------ channel stopped Maven RedeployPublished use remote jenkins-vm.taverna.org.uk maven settings from : /home/jenkins/.m2/settings.xml [INFO] Deployment in file:///tmp/example (id=example,uniqueVersion=true) Deploying the main artifact helloworld-0.0.1-SNAPSHOT.jar [INFO] Deployment done in 0.28 sec Finished: SUCCESS {code} The files got correctly deployed on {{/tmp}} of the _master_ (and not on the slave): {code} root@rosalind-) ls /tmp/example/com/example/helloworld/ 0.0.1-SNAPSHOT maven-metadata.xml.md5 maven-metadata.xml maven-metadata.xml.sha1 {code} However, redeploy from this build does not work. Later changing the configuration to *NOT _Use private Maven repository_* and rebuilding works: http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/4/redeploy/ {code} [INFO] Deployment in file:///tmp/example3 (id=example3,uniqueVersion=true) Deploying the main artifact helloworld-0.0.1-SNAPSHOT.jar Completed {code} In fact - this allows redeploying on the initial build 1 as well! http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/1/redeploy/2/ {code} [INFO] Deployment in file:///tmp/test5 (id=test5,uniqueVersion=true) Deploying the main artifact helloworld-0.0.1-SNAPSHOT.jar Completed {code} When checking the md5-sums on the deployed folder on the master: {code} root@rosalind-) md5sum /tmp/test5/com/example/helloworld/0.0.1-SNAPSHOT/helloworld-0.0.1-20110722.094641-1.jar 980f75ad9126031ff46f2ee03dcc64e9 /tmp/test5/com/example/helloworld/0.0.1-SNAPSHOT/helloworld-0.0.1-20110722.094641-1.jar {code} These matches the original build http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/1/com.example$helloworld/artifact/com.example/helloworld/0.0.1-SNAPSHOT/helloworld-0.0.1-SNAPSHOT.jar/*fingerprint*/ and not the latest non-private build http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/4/com.example$helloworld/artifact/com.example/helloworld/0.0.1-SNAPSHOT/helloworld-0.0.1-SNAPSHOT.jar/*fingerprint*/ .. so Jenkins did deploy the right version from the private repository. As a counter-example, change the setting back to use the private repository and try to redeploy build 4 (build without private): http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/4/redeploy/ fails with similar stack trace: {code} [INFO] Deployment in file:///tmp/example13 (id=example13,uniqueVersion=true) Deploying the main artifact helloworld-0.0.1-SNAPSHOT.jar org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to update metadata com.example:helloworld:0.0.1-SNAPSHOT/maven-metadata.xml: Could not write metadata /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml (No such file or directory) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:141) at hudson.maven.reporters.MavenArtifactRecord.deploy(MavenArtifactRecord.java:189) at hudson.maven.reporters.MavenAggregatedArtifactRecord.deploy(MavenAggregatedArtifactRecord.java:95) at hudson.maven.reporters.MavenAbstractArtifactRecord$1.perform(MavenAbstractArtifactRecord.java:233) at hudson.model.TaskThread.run(TaskThread.java:126) Caused by: org.sonatype.aether.deployment.DeploymentException: Failed to update metadata com.example:helloworld:0.0.1-SNAPSHOT/maven-metadata.xml: Could not write metadata /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml (No such file or directory) at org.sonatype.aether.impl.internal.DefaultDeployer.upload(DefaultDeployer.java:418) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:260) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:215) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:480) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:137) ... 4 more Caused by: org.sonatype.aether.RepositoryException: Could not write metadata /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml (No such file or directory) at org.apache.maven.repository.internal.MavenMetadata.write(MavenMetadata.java:125) at org.apache.maven.repository.internal.MavenMetadata.merge(MavenMetadata.java:73) at org.sonatype.aether.impl.internal.DefaultDeployer.upload(DefaultDeployer.java:414) ... 8 more Caused by: java.io.FileNotFoundException: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at org.codehaus.plexus.util.xml.XmlStreamWriter.<init>(XmlStreamWriter.java:59) at org.codehaus.plexus.util.WriterFactory.newXmlWriter(WriterFactory.java:117) at org.apache.maven.repository.internal.MavenMetadata.write(MavenMetadata.java:120) ... 10 more {code}
    via by Stian Soiland-Reyes,
  • Building a Maven project on a slave with _Use private Maven repository_ breaks the "Redeploy artifacts" functionality. Work-around: After the build, change setting to [ ] _Use private maven repository_ and _Redeploy_. The correct artifacts from the private repository are deployed. Project http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/1/redeploy/ gives: {code} [INFO] Deployment in file:///tmp/test1337 (id=test1337,uniqueVersion=true) Deploying the main artifact helloworld-0.0.1-SNAPSHOT.jar org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to update metadata com.example:helloworld:0.0.1-SNAPSHOT/maven-metadata.xml: Could not write metadata /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml (No such file or directory) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:141) at hudson.maven.reporters.MavenArtifactRecord.deploy(MavenArtifactRecord.java:189) at hudson.maven.reporters.MavenAggregatedArtifactRecord.deploy(MavenAggregatedArtifactRecord.java:95) at hudson.maven.reporters.MavenAbstractArtifactRecord$1.perform(MavenAbstractArtifactRecord.java:233) at hudson.model.TaskThread.run(TaskThread.java:126) Caused by: org.sonatype.aether.deployment.DeploymentException: Failed to update metadata com.example:helloworld:0.0.1-SNAPSHOT/maven-metadata.xml: Could not write metadata /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml (No such file or directory) at org.sonatype.aether.impl.internal.DefaultDeployer.upload(DefaultDeployer.java:418) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:260) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:215) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:480) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:137) ... 4 more Caused by: org.sonatype.aether.RepositoryException: Could not write metadata /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml (No such file or directory) at org.apache.maven.repository.internal.MavenMetadata.write(MavenMetadata.java:125) at org.apache.maven.repository.internal.MavenMetadata.merge(MavenMetadata.java:73) at org.sonatype.aether.impl.internal.DefaultDeployer.upload(DefaultDeployer.java:414) ... 8 more Caused by: java.io.FileNotFoundException: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at org.codehaus.plexus.util.xml.XmlStreamWriter.<init>(XmlStreamWriter.java:59) at org.codehaus.plexus.util.WriterFactory.newXmlWriter(WriterFactory.java:117) at org.apache.maven.repository.internal.MavenMetadata.write(MavenMetadata.java:120) ... 10 more {code} Note: {{/home/jenkins/jenkins/}} is the path of the *slave*. Master is in {{/local/hudson}}. To reproduce: * Set up a slave, disable builds on master (alternatively - tie build to slave) * Create a new Jenkins project for Maven 2/3. ** Source code: GIT - {{git://github.com/stain/helloworld.git}} (Problem also exists with Subversion) ** Build - Goals and options: {{clean install}} *** Advanced: [x] Use private Maven repository * *Save*, then *Build Now*. * Go to _Last Successful Build_. * Click *Redeploy Artifacts*. * Advanced: ** Repository URL: {{file:///tmp/example}} ** Repository ID: {{example}} ** [x] Assign unique versions to snapshots (fails with both settings) ** *OK* This seems related to JENKINS-8711. Note - changing the configuration to do a Post-build deploy works: * Post-build actions ** (Same settings as above) ** *Save*, *Build* See http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/2/console for successful deployment. {code} [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5 seconds [INFO] Finished at: Fri Jul 22 10:39:58 BST 2011 [INFO] Final Memory: 14M/34M [INFO] ------------------------------------------------------------------------ channel stopped Maven RedeployPublished use remote jenkins-vm.taverna.org.uk maven settings from : /home/jenkins/.m2/settings.xml [INFO] Deployment in file:///tmp/example (id=example,uniqueVersion=true) Deploying the main artifact helloworld-0.0.1-SNAPSHOT.jar [INFO] Deployment done in 0.28 sec Finished: SUCCESS {code} The files got correctly deployed on {{/tmp}} of the _master_ (and not on the slave): {code} root@rosalind-) ls /tmp/example/com/example/helloworld/ 0.0.1-SNAPSHOT maven-metadata.xml.md5 maven-metadata.xml maven-metadata.xml.sha1 {code} However, redeploy from this build does not work. Later changing the configuration to *NOT _Use private Maven repository_* and rebuilding works: http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/4/redeploy/ {code} [INFO] Deployment in file:///tmp/example3 (id=example3,uniqueVersion=true) Deploying the main artifact helloworld-0.0.1-SNAPSHOT.jar Completed {code} In fact - this allows redeploying on the initial build 1 as well! http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/1/redeploy/2/ {code} [INFO] Deployment in file:///tmp/test5 (id=test5,uniqueVersion=true) Deploying the main artifact helloworld-0.0.1-SNAPSHOT.jar Completed {code} When checking the md5-sums on the deployed folder on the master: {code} root@rosalind-) md5sum /tmp/test5/com/example/helloworld/0.0.1-SNAPSHOT/helloworld-0.0.1-20110722.094641-1.jar 980f75ad9126031ff46f2ee03dcc64e9 /tmp/test5/com/example/helloworld/0.0.1-SNAPSHOT/helloworld-0.0.1-20110722.094641-1.jar {code} These matches the original build http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/1/com.example$helloworld/artifact/com.example/helloworld/0.0.1-SNAPSHOT/helloworld-0.0.1-SNAPSHOT.jar/*fingerprint*/ and not the latest non-private build http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/4/com.example$helloworld/artifact/com.example/helloworld/0.0.1-SNAPSHOT/helloworld-0.0.1-SNAPSHOT.jar/*fingerprint*/ .. so Jenkins did deploy the right version from the private repository. As a counter-example, change the setting back to use the private repository and try to redeploy build 4 (build without private): http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/4/redeploy/ fails with similar stack trace: {code} [INFO] Deployment in file:///tmp/example13 (id=example13,uniqueVersion=true) Deploying the main artifact helloworld-0.0.1-SNAPSHOT.jar org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to update metadata com.example:helloworld:0.0.1-SNAPSHOT/maven-metadata.xml: Could not write metadata /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml (No such file or directory) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:141) at hudson.maven.reporters.MavenArtifactRecord.deploy(MavenArtifactRecord.java:189) at hudson.maven.reporters.MavenAggregatedArtifactRecord.deploy(MavenAggregatedArtifactRecord.java:95) at hudson.maven.reporters.MavenAbstractArtifactRecord$1.perform(MavenAbstractArtifactRecord.java:233) at hudson.model.TaskThread.run(TaskThread.java:126) Caused by: org.sonatype.aether.deployment.DeploymentException: Failed to update metadata com.example:helloworld:0.0.1-SNAPSHOT/maven-metadata.xml: Could not write metadata /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml (No such file or directory) at org.sonatype.aether.impl.internal.DefaultDeployer.upload(DefaultDeployer.java:418) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:260) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:215) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:480) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:137) ... 4 more Caused by: org.sonatype.aether.RepositoryException: Could not write metadata /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml (No such file or directory) at org.apache.maven.repository.internal.MavenMetadata.write(MavenMetadata.java:125) at org.apache.maven.repository.internal.MavenMetadata.merge(MavenMetadata.java:73) at org.sonatype.aether.impl.internal.DefaultDeployer.upload(DefaultDeployer.java:414) ... 8 more Caused by: java.io.FileNotFoundException: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at org.codehaus.plexus.util.xml.XmlStreamWriter.<init>(XmlStreamWriter.java:59) at org.codehaus.plexus.util.WriterFactory.newXmlWriter(WriterFactory.java:117) at org.apache.maven.repository.internal.MavenMetadata.write(MavenMetadata.java:120) ... 10 more {code}
    via by Stian Soiland-Reyes,
  • Building a Maven project on a slave with _Use private Maven repository_ breaks the "Redeploy artifacts" functionality. Work-around: After the build, change setting to [ ] _Use private maven repository_ and _Redeploy_. The correct artifacts from the private repository are deployed. Project http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/1/redeploy/ gives: {code} [INFO] Deployment in file:///tmp/test1337 (id=test1337,uniqueVersion=true) Deploying the main artifact helloworld-0.0.1-SNAPSHOT.jar org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to update metadata com.example:helloworld:0.0.1-SNAPSHOT/maven-metadata.xml: Could not write metadata /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml (No such file or directory) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:141) at hudson.maven.reporters.MavenArtifactRecord.deploy(MavenArtifactRecord.java:189) at hudson.maven.reporters.MavenAggregatedArtifactRecord.deploy(MavenAggregatedArtifactRecord.java:95) at hudson.maven.reporters.MavenAbstractArtifactRecord$1.perform(MavenAbstractArtifactRecord.java:233) at hudson.model.TaskThread.run(TaskThread.java:126) Caused by: org.sonatype.aether.deployment.DeploymentException: Failed to update metadata com.example:helloworld:0.0.1-SNAPSHOT/maven-metadata.xml: Could not write metadata /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml (No such file or directory) at org.sonatype.aether.impl.internal.DefaultDeployer.upload(DefaultDeployer.java:418) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:260) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:215) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:480) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:137) ... 4 more Caused by: org.sonatype.aether.RepositoryException: Could not write metadata /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml (No such file or directory) at org.apache.maven.repository.internal.MavenMetadata.write(MavenMetadata.java:125) at org.apache.maven.repository.internal.MavenMetadata.merge(MavenMetadata.java:73) at org.sonatype.aether.impl.internal.DefaultDeployer.upload(DefaultDeployer.java:414) ... 8 more Caused by: java.io.FileNotFoundException: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-test1337.xml (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at org.codehaus.plexus.util.xml.XmlStreamWriter.<init>(XmlStreamWriter.java:59) at org.codehaus.plexus.util.WriterFactory.newXmlWriter(WriterFactory.java:117) at org.apache.maven.repository.internal.MavenMetadata.write(MavenMetadata.java:120) ... 10 more {code} Note: {{/home/jenkins/jenkins/}} is the path of the *slave*. Master is in {{/local/hudson}}. To reproduce: * Set up a slave, disable builds on master (alternatively - tie build to slave) * Create a new Jenkins project for Maven 2/3. ** Source code: GIT - {{git://github.com/stain/helloworld.git}} (Problem also exists with Subversion) ** Build - Goals and options: {{clean install}} *** Advanced: [x] Use private Maven repository * *Save*, then *Build Now*. * Go to _Last Successful Build_. * Click *Redeploy Artifacts*. * Advanced: ** Repository URL: {{file:///tmp/example}} ** Repository ID: {{example}} ** [x] Assign unique versions to snapshots (fails with both settings) ** *OK* This seems related to JENKINS-8711. Note - changing the configuration to do a Post-build deploy works: * Post-build actions ** (Same settings as above) ** *Save*, *Build* See http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/2/console for successful deployment. {code} [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5 seconds [INFO] Finished at: Fri Jul 22 10:39:58 BST 2011 [INFO] Final Memory: 14M/34M [INFO] ------------------------------------------------------------------------ channel stopped Maven RedeployPublished use remote jenkins-vm.taverna.org.uk maven settings from : /home/jenkins/.m2/settings.xml [INFO] Deployment in file:///tmp/example (id=example,uniqueVersion=true) Deploying the main artifact helloworld-0.0.1-SNAPSHOT.jar [INFO] Deployment done in 0.28 sec Finished: SUCCESS {code} The files got correctly deployed on {{/tmp}} of the _master_ (and not on the slave): {code} root@rosalind-) ls /tmp/example/com/example/helloworld/ 0.0.1-SNAPSHOT maven-metadata.xml.md5 maven-metadata.xml maven-metadata.xml.sha1 {code} However, redeploy from this build does not work. Later changing the configuration to *NOT _Use private Maven repository_* and rebuilding works: http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/4/redeploy/ {code} [INFO] Deployment in file:///tmp/example3 (id=example3,uniqueVersion=true) Deploying the main artifact helloworld-0.0.1-SNAPSHOT.jar Completed {code} In fact - this allows redeploying on the initial build 1 as well! http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/1/redeploy/2/ {code} [INFO] Deployment in file:///tmp/test5 (id=test5,uniqueVersion=true) Deploying the main artifact helloworld-0.0.1-SNAPSHOT.jar Completed {code} When checking the md5-sums on the deployed folder on the master: {code} root@rosalind-) md5sum /tmp/test5/com/example/helloworld/0.0.1-SNAPSHOT/helloworld-0.0.1-20110722.094641-1.jar 980f75ad9126031ff46f2ee03dcc64e9 /tmp/test5/com/example/helloworld/0.0.1-SNAPSHOT/helloworld-0.0.1-20110722.094641-1.jar {code} These matches the original build http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/1/com.example$helloworld/artifact/com.example/helloworld/0.0.1-SNAPSHOT/helloworld-0.0.1-SNAPSHOT.jar/*fingerprint*/ and not the latest non-private build http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/4/com.example$helloworld/artifact/com.example/helloworld/0.0.1-SNAPSHOT/helloworld-0.0.1-SNAPSHOT.jar/*fingerprint*/ .. so Jenkins did deploy the right version from the private repository. As a counter-example, change the setting back to use the private repository and try to redeploy build 4 (build without private): http://www.mygrid.org.uk/jenkins/job/com.example.helloworld/4/redeploy/ fails with similar stack trace: {code} [INFO] Deployment in file:///tmp/example13 (id=example13,uniqueVersion=true) Deploying the main artifact helloworld-0.0.1-SNAPSHOT.jar org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to update metadata com.example:helloworld:0.0.1-SNAPSHOT/maven-metadata.xml: Could not write metadata /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml (No such file or directory) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:141) at hudson.maven.reporters.MavenArtifactRecord.deploy(MavenArtifactRecord.java:189) at hudson.maven.reporters.MavenAggregatedArtifactRecord.deploy(MavenAggregatedArtifactRecord.java:95) at hudson.maven.reporters.MavenAbstractArtifactRecord$1.perform(MavenAbstractArtifactRecord.java:233) at hudson.model.TaskThread.run(TaskThread.java:126) Caused by: org.sonatype.aether.deployment.DeploymentException: Failed to update metadata com.example:helloworld:0.0.1-SNAPSHOT/maven-metadata.xml: Could not write metadata /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml (No such file or directory) at org.sonatype.aether.impl.internal.DefaultDeployer.upload(DefaultDeployer.java:418) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:260) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:215) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:480) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:137) ... 4 more Caused by: org.sonatype.aether.RepositoryException: Could not write metadata /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml (No such file or directory) at org.apache.maven.repository.internal.MavenMetadata.write(MavenMetadata.java:125) at org.apache.maven.repository.internal.MavenMetadata.merge(MavenMetadata.java:73) at org.sonatype.aether.impl.internal.DefaultDeployer.upload(DefaultDeployer.java:414) ... 8 more Caused by: java.io.FileNotFoundException: /home/jenkins/jenkins/workspace/com.example.helloworld/.repository/com/example/helloworld/0.0.1-SNAPSHOT/maven-metadata-example13.xml (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at org.codehaus.plexus.util.xml.XmlStreamWriter.<init>(XmlStreamWriter.java:59) at org.codehaus.plexus.util.WriterFactory.newXmlWriter(WriterFactory.java:117) at org.apache.maven.repository.internal.MavenMetadata.write(MavenMetadata.java:120) ... 10 more {code}
    via by Stian Soiland-Reyes,
  • Error writing cert files
    via GitHub by myleshorton
    ,
    • org.sonatype.aether.deployment.DeploymentException: Failed to update metadata nomnomnom:nomnomnom:0. 5.0-SNAPSHOT/maven-metadata.xml: Could not write metadata C:\Users\user\.m2\repository\nomnomnom\nom nomnom\0.5.0-SNAPSHOT\maven-metadata-file:\C:\Users\user\AppData\Local\Temp\lein-custom-repo.xml: C: \Users\user\.m2\repository\nomnomnom\nomnomnom\0.5.0-SNAPSHOT\maven-metadata-file:\C:\Users\user\App Data\Local\Temp\lein-custom-repo.xml (The filename, directory name, or volume label syntax is incorr ect) at org.sonatype.aether.impl.internal.DefaultDeployer.upload(DefaultDeployer.java:414) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:256) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:211) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:443) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:93) at clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:28) at cemerick.pomegranate.aether$deploy_artifacts.doInvoke(aether.clj:328) at clojure.lang.RestFn.applyTo(RestFn.java:137) at clojure.core$apply.invoke(core.clj:617) at cemerick.pomegranate.aether$deploy.doInvoke(aether.clj:401) at clojure.lang.RestFn.invoke(RestFn.java:619) at leiningen.deploy$deploy.invoke(deploy.clj:161) at leiningen.test.deploy$deploy_snapshots.doInvoke(deploy.clj:25) at clojure.lang.RestFn.invoke(RestFn.java:442) at leiningen.test.deploy$fn__3526.invoke(deploy.clj:43) at clojure.test$test_var$fn__7145.invoke(test.clj:701) at clojure.test$test_var.invoke(test.clj:701) at user$eval2606$test_var_with_selector__2615.invoke(NO_SOURCE_FILE:0) at clojure.lang.AFn.applyToHelper(AFn.java:163) at clojure.lang.AFn.applyTo(AFn.java:151) at clojure.core$apply.invoke(core.clj:619) at leiningen.core.injected$compose_hooks$fn__2540.doInvoke(NO_SOURCE_FILE) at clojure.lang.RestFn.applyTo(RestFn.java:137) at clojure.core$apply.invoke(core.clj:617) at leiningen.core.injected$run_hooks.invoke(NO_SOURCE_FILE:0) at leiningen.core.injected$prepare_for_hooks$fn__2545$fn__2546.doInvoke(NO_SOURCE_FILE:0) at clojure.lang.RestFn.applyTo(RestFn.java:137) at clojure.lang.AFunction$1.doInvoke(AFunction.java:29) at clojure.lang.RestFn.invoke(RestFn.java:408) at clojure.test$test_all_vars$fn__7149$fn__7156.invoke(test.clj:717) at clojure.test$default_fixture.invoke(test.clj:671) at clojure.test$test_all_vars$fn__7149.invoke(test.clj:717) at clojure.test$default_fixture.invoke(test.clj:671) at clojure.test$test_all_vars.invoke(test.clj:713) at clojure.test$test_ns.invoke(test.clj:736) at clojure.core$map$fn__4207.invoke(core.clj:2487) at clojure.lang.LazySeq.sval(LazySeq.java:42) at clojure.lang.LazySeq.seq(LazySeq.java:60) at clojure.lang.Cons.next(Cons.java:39) at clojure.lang.RT.boundedLength(RT.java:1654) at clojure.lang.RestFn.applyTo(RestFn.java:130) at clojure.core$apply.invoke(core.clj:619) at clojure.test$run_tests.doInvoke(test.clj:751) at clojure.lang.RestFn.applyTo(RestFn.java:137) at clojure.core$apply.invoke(core.clj:617) at user$eval2606$fn__2672.invoke(NO_SOURCE_FILE) at user$eval2606.invoke(NO_SOURCE_FILE:0) at clojure.lang.Compiler.eval(Compiler.java:6619) at clojure.lang.Compiler.eval(Compiler.java:6609) at clojure.lang.Compiler.eval(Compiler.java:6582) at clojure.core$eval.invoke(core.clj:2852) at leiningen.core.eval$eval2244$fn__2245.invoke(eval.clj:273) at clojure.lang.MultiFn.invoke(MultiFn.java:231) at leiningen.core.eval$eval_in_project.invoke(eval.clj:282) at leiningen.test$test.doInvoke(test.clj:177) at clojure.lang.RestFn.invoke(RestFn.java:423) at clojure.lang.Var.invoke(Var.java:419) at clojure.lang.AFn.applyToHelper(AFn.java:163) at clojure.lang.Var.applyTo(Var.java:532) at clojure.core$apply.invoke(core.clj:619) at leiningen.core.main$resolve_task$fn__1944.doInvoke(main.clj:149) at clojure.lang.RestFn.applyTo(RestFn.java:139) at clojure.lang.AFunction$1.doInvoke(AFunction.java:29) at clojure.lang.RestFn.applyTo(RestFn.java:137) at clojure.core$apply.invoke(core.clj:619) at leiningen.core.main$apply_task.invoke(main.clj:189) at leiningen.core.main$resolve_and_apply.invoke(main.clj:193) at leiningen.core.main$_main$fn__2007.invoke(main.clj:257) at leiningen.core.main$_main.doInvoke(main.clj:247) at clojure.lang.RestFn.invoke(RestFn.java:421) at clojure.lang.Var.invoke(Var.java:419) at clojure.lang.AFn.applyToHelper(AFn.java:163) at clojure.lang.Var.applyTo(Var.java:532) at clojure.core$apply.invoke(core.clj:617) at clojure.main$main_opt.invoke(main.clj:335) at clojure.main$main.doInvoke(main.clj:440) at clojure.lang.RestFn.invoke(RestFn.java:457) at clojure.lang.Var.invoke(Var.java:427) at clojure.lang.AFn.applyToHelper(AFn.java:172) at clojure.lang.Var.applyTo(Var.java:532) at clojure.main.main(main.java:37) Caused by: org.sonatype.aether.RepositoryException: Could not write metadata C:\Users\user\.m2\repos itory\nomnomnom\nomnomnom\0.5.0-SNAPSHOT\maven-metadata-file:\C:\Users\user\AppData\Local\Temp\lein- custom-repo.xml: C:\Users\user\.m2\repository\nomnomnom\nomnomnom\0.5.0-SNAPSHOT\maven-metadata-file :\C:\Users\user\AppData\Local\Temp\lein-custom-repo.xml (The filename, directory name, or volume lab el syntax is incorrect) at org.apache.maven.repository.internal.MavenMetadata.write(MavenMetadata.java:125) at org.apache.maven.repository.internal.MavenMetadata.merge(MavenMetadata.java:73) at org.sonatype.aether.impl.internal.DefaultDeployer.upload(DefaultDeployer.java:410) ... 84 more Caused by: java.io.FileNotFoundException: C:\Users\user\.m2\repository\nomnomnom\nomnomnom\0.5.0-SNA PSHOT\maven-metadata-file:\C:\Users\user\AppData\Local\Temp\lein-custom-repo.xml (The filename, dire ctory name, or volume label syntax is incorrect) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:212) at java.io.FileOutputStream.<init>(FileOutputStream.java:165) at org.codehaus.plexus.util.xml.XmlStreamWriter.<init>(XmlStreamWriter.java:59) at org.codehaus.plexus.util.WriterFactory.newXmlWriter(WriterFactory.java:117) at org.apache.maven.repository.internal.MavenMetadata.write(MavenMetadata.java:120) ... 86 more

    Users with the same issue

    chenjunjunchenjunjun
    1 times, last one,
    filipebatistafilipebatista
    5 times, last one,
    MattyMatty
    1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    AxeloAxelo
    2 times, last one,
    150 more bugmates