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)

  1. 0

    unnamed windows path issue on deploy

    GitHub | 4 years ago | faqindeletethisalready
    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)
  2. 0

    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}

    Jenkins JIRA | 5 years ago | Stian Soiland-Reyes
    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)
  3. 0

    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}

    Jenkins JIRA | 5 years ago | Stian Soiland-Reyes
    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)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    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}

    Jenkins JIRA | 5 years ago | Stian Soiland-Reyes
    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)
  6. 0

    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}

    Jenkins JIRA | 5 years ago | Stian Soiland-Reyes
    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)
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. 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()
  2. Java RT
    FileOutputStream.<init>
    1. java.io.FileOutputStream.open(Native Method)
    2. java.io.FileOutputStream.<init>(FileOutputStream.java:212)
    3. java.io.FileOutputStream.<init>(FileOutputStream.java:165)
    3 frames
  3. Plexus Common Utilities
    WriterFactory.newXmlWriter
    1. org.codehaus.plexus.util.xml.XmlStreamWriter.<init>(XmlStreamWriter.java:59)
    2. org.codehaus.plexus.util.WriterFactory.newXmlWriter(WriterFactory.java:117)
    2 frames
  4. Maven Aether Provider
    MavenMetadata.merge
    1. org.apache.maven.repository.internal.MavenMetadata.write(MavenMetadata.java:120)
    2. org.apache.maven.repository.internal.MavenMetadata.merge(MavenMetadata.java:73)
    2 frames
  5. Aether :: Implementation
    DefaultRepositorySystem.deploy
    1. org.sonatype.aether.impl.internal.DefaultDeployer.upload(DefaultDeployer.java:410)
    2. org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:256)
    3. org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:211)
    4. org.sonatype.aether.impl.internal.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:443)
    4 frames
  6. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:601)
    4 frames
  7. Clojure
    Reflector.invokeInstanceMethod
    1. clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:93)
    2. clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:28)
    2 frames
  8. cemerick.pomegranate
    aether$deploy_artifacts.doInvoke
    1. cemerick.pomegranate.aether$deploy_artifacts.doInvoke(aether.clj:328)
    1 frame
  9. Clojure
    core$apply.invoke
    1. clojure.lang.RestFn.applyTo(RestFn.java:137)
    2. clojure.core$apply.invoke(core.clj:617)
    2 frames
  10. cemerick.pomegranate
    aether$deploy.doInvoke
    1. cemerick.pomegranate.aether$deploy.doInvoke(aether.clj:401)
    1 frame
  11. Clojure
    RestFn.invoke
    1. clojure.lang.RestFn.invoke(RestFn.java:619)
    1 frame
  12. leiningen
    deploy$deploy.invoke
    1. leiningen.deploy$deploy.invoke(deploy.clj:161)
    1 frame
  13. leiningen.test
    deploy$deploy_snapshots.doInvoke
    1. leiningen.test.deploy$deploy_snapshots.doInvoke(deploy.clj:25)
    1 frame
  14. Clojure
    RestFn.invoke
    1. clojure.lang.RestFn.invoke(RestFn.java:442)
    1 frame
  15. leiningen.test
    deploy$fn__3526.invoke
    1. leiningen.test.deploy$fn__3526.invoke(deploy.clj:43)
    1 frame
  16. Clojure
    test$test_var.invoke
    1. clojure.test$test_var$fn__7145.invoke(test.clj:701)
    2. clojure.test$test_var.invoke(test.clj:701)
    2 frames
  17. Unknown
    user$eval2606$test_var_with_selector__2615.invoke
    1. user$eval2606$test_var_with_selector__2615.invoke(NO_SOURCE_FILE:0)
    1 frame
  18. Clojure
    core$apply.invoke
    1. clojure.lang.AFn.applyToHelper(AFn.java:163)
    2. clojure.lang.AFn.applyTo(AFn.java:151)
    3. clojure.core$apply.invoke(core.clj:619)
    3 frames
  19. leiningen.core
    injected$compose_hooks$fn__2540.doInvoke
    1. leiningen.core.injected$compose_hooks$fn__2540.doInvoke(NO_SOURCE_FILE)
    1 frame
  20. Clojure
    core$apply.invoke
    1. clojure.lang.RestFn.applyTo(RestFn.java:137)
    2. clojure.core$apply.invoke(core.clj:617)
    2 frames
  21. leiningen.core
    injected$prepare_for_hooks$fn__2545$fn__2546.doInvoke
    1. leiningen.core.injected$run_hooks.invoke(NO_SOURCE_FILE:0)
    2. leiningen.core.injected$prepare_for_hooks$fn__2545$fn__2546.doInvoke(NO_SOURCE_FILE:0)
    2 frames
  22. Clojure
    core$apply.invoke
    1. clojure.lang.RestFn.applyTo(RestFn.java:137)
    2. clojure.lang.AFunction$1.doInvoke(AFunction.java:29)
    3. clojure.lang.RestFn.invoke(RestFn.java:408)
    4. clojure.test$test_all_vars$fn__7149$fn__7156.invoke(test.clj:717)
    5. clojure.test$default_fixture.invoke(test.clj:671)
    6. clojure.test$test_all_vars$fn__7149.invoke(test.clj:717)
    7. clojure.test$default_fixture.invoke(test.clj:671)
    8. clojure.test$test_all_vars.invoke(test.clj:713)
    9. clojure.test$test_ns.invoke(test.clj:736)
    10. clojure.core$map$fn__4207.invoke(core.clj:2487)
    11. clojure.lang.LazySeq.sval(LazySeq.java:42)
    12. clojure.lang.LazySeq.seq(LazySeq.java:60)
    13. clojure.lang.Cons.next(Cons.java:39)
    14. clojure.lang.RT.boundedLength(RT.java:1654)
    15. clojure.lang.RestFn.applyTo(RestFn.java:130)
    16. clojure.core$apply.invoke(core.clj:619)
    17. clojure.test$run_tests.doInvoke(test.clj:751)
    18. clojure.lang.RestFn.applyTo(RestFn.java:137)
    19. clojure.core$apply.invoke(core.clj:617)
    19 frames
  23. Unknown
    user$eval2606.invoke
    1. user$eval2606$fn__2672.invoke(NO_SOURCE_FILE)
    2. user$eval2606.invoke(NO_SOURCE_FILE:0)
    2 frames
  24. Clojure
    core$eval.invoke
    1. clojure.lang.Compiler.eval(Compiler.java:6619)
    2. clojure.lang.Compiler.eval(Compiler.java:6609)
    3. clojure.lang.Compiler.eval(Compiler.java:6582)
    4. clojure.core$eval.invoke(core.clj:2852)
    4 frames
  25. leiningen.core
    eval$eval2244$fn__2245.invoke
    1. leiningen.core.eval$eval2244$fn__2245.invoke(eval.clj:273)
    1 frame
  26. Clojure
    MultiFn.invoke
    1. clojure.lang.MultiFn.invoke(MultiFn.java:231)
    1 frame
  27. leiningen.core
    eval$eval_in_project.invoke
    1. leiningen.core.eval$eval_in_project.invoke(eval.clj:282)
    1 frame
  28. leiningen
    test$test.doInvoke
    1. leiningen.test$test.doInvoke(test.clj:177)
    1 frame
  29. Clojure
    core$apply.invoke
    1. clojure.lang.RestFn.invoke(RestFn.java:423)
    2. clojure.lang.Var.invoke(Var.java:419)
    3. clojure.lang.AFn.applyToHelper(AFn.java:163)
    4. clojure.lang.Var.applyTo(Var.java:532)
    5. clojure.core$apply.invoke(core.clj:619)
    5 frames
  30. leiningen.core
    main$resolve_task$fn__1944.doInvoke
    1. leiningen.core.main$resolve_task$fn__1944.doInvoke(main.clj:149)
    1 frame
  31. Clojure
    core$apply.invoke
    1. clojure.lang.RestFn.applyTo(RestFn.java:139)
    2. clojure.lang.AFunction$1.doInvoke(AFunction.java:29)
    3. clojure.lang.RestFn.applyTo(RestFn.java:137)
    4. clojure.core$apply.invoke(core.clj:619)
    4 frames
  32. leiningen.core
    main$_main.doInvoke
    1. leiningen.core.main$apply_task.invoke(main.clj:189)
    2. leiningen.core.main$resolve_and_apply.invoke(main.clj:193)
    3. leiningen.core.main$_main$fn__2007.invoke(main.clj:257)
    4. leiningen.core.main$_main.doInvoke(main.clj:247)
    4 frames
  33. Clojure
    main.main
    1. clojure.lang.RestFn.invoke(RestFn.java:421)
    2. clojure.lang.Var.invoke(Var.java:419)
    3. clojure.lang.AFn.applyToHelper(AFn.java:163)
    4. clojure.lang.Var.applyTo(Var.java:532)
    5. clojure.core$apply.invoke(core.clj:617)
    6. clojure.main$main_opt.invoke(main.clj:335)
    7. clojure.main$main.doInvoke(main.clj:440)
    8. clojure.lang.RestFn.invoke(RestFn.java:457)
    9. clojure.lang.Var.invoke(Var.java:427)
    10. clojure.lang.AFn.applyToHelper(AFn.java:172)
    11. clojure.lang.Var.applyTo(Var.java:532)
    12. clojure.main.main(main.java:37)
    12 frames