org.apache.maven.lifecycle.LifecycleExecutionException

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.

  • My Parent Pom.xml looking something like this <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.sample.eie</groupId> <artifactId>EIE_JAXB_JARS</artifactId> <version>1.4.1-SNAPSHOT</version> <packaging>pom</packaging> <properties> <enrollgroupandmem.version>1.0.8</enrollgroupandmem.version> <grpandmemrisk.version>1.0.4</grpandmemrisk.version> <junit.version>3.8.1</junit.version> <jaxb-api.version>2.1</jaxb-api.version> <jaxb-impl.version>2.1.3</jaxb-impl.version> <maven-compiler-plugin.source.version>1.6</maven-compiler-plugin.source.version> <maven-compiler-plugin.target.version>1.6</maven-compiler-plugin.target.version> <jaxb2-maven-plugin.version>1.3</jaxb2-maven-plugin.version> <repository.id>admin</repository.id> <repository.name>Administrator</repository.name> <repository.url>http://192.168.1.212:8080/nexus-webapp-1.9.2/content/repositories/sample</repository.url> </properties> <distributionManagement> <repository> <id>admin</id> <name>admin</name> <url>http://192.168.1.212:8080/nexus-webapp-1.9.2/content/repositories/sample</url> </repository> </distributionManagement> <modules> <module>EnrollGroupAndMem</module> <module>GrpAndMemRisk</module> </modules> </project> My Child Pom is Looking like this <?xml version="1.0"?> <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <modelVersion>4.0.0</modelVersion> <parent> <artifactId>EIE_JAXB_JARS</artifactId> <groupId>com.sample.eie</groupId> <version>1.4.1-SNAPSHOT</version> <relativePath>../EIE_JAXB_JARS/pom.xml</relativePath> </parent> <distributionManagement> <repository> <id>${repository.id}</id> <name>admin</name> <url>http://192.168.1.212:8080/nexus-webapp-1.9.2/content/repositories/sample</url> </repository> </distributionManagement> <groupId>com.sample.eie</groupId> <artifactId>EnrollGroupAndMem</artifactId> <version>${enrollgroupandmem.version}</version> <packaging>jar</packaging> <name>EnrollGroupAndMem</name> <url>http://maven.apache.org</url> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <repositories> <repository> <id>${repository.id}</id> <name>${repository.name}</name> <url>${repository.url}</url> </repository> </repositories> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>${junit.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>javax.xml.bind</groupId> <artifactId>jaxb-api</artifactId> <version>${jaxb-api.version}</version> </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-impl</artifactId> <version>${jaxb-impl.version}</version> </dependency> </dependencies> <build> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>${maven-compiler-plugin.source.version}</source> <target>${maven-compiler-plugin.target.version}</target> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>jaxb2-maven-plugin</artifactId> <version>${jaxb2-maven-plugin.version}</version> <executions> <execution> <goals> <goal>xjc</goal> </goals> </execution> </executions> <configuration> <packageName>com.sample.eie.enrollgrpandmem</packageName> <outputDirectory>${basedir}/src/main/java</outputDirectory> <schemaDirectory>${basedir}/src/main/resources/xsd</schemaDirectory> <extension>true</extension> <verbose>false</verbose> </configuration> </plugin> </plugins> </build> </project> When i Deploy using "mvn clean deploy" command i'm getting exception like this [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy (default-deploy) on project EIE_JAXB_JARS: Failed to deploy artifacts: Could not tr ansfer artifact com.bcbsmt.eie:EIE_JAXB_JARS:pom:1.4.1-20110824.133549-5 from admin (http://192.168.1.212:8080/nexus-webapp-1.9.2/content/repositories/bcbsmt): Failed to transfer file: http://192.168.1.212:8080/nexus-webapp-1.9.2/content/repositories/bcbsmt/com/bcbsmt/eie/EIE_JAXB_JARS/1.4.1-SNAPSHOT/EIE_JAXB_JARS-1.4.1-20110824.133549-5. pom. Return code is: 400 -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy (default-deploy) on project EIE_JAX B_JARS: Failed to deploy artifacts: Could not transfer artifact com.bcbsmt.eie:EIE_JAXB_JARS:pom:1.4.1-20110824.133549-5 from admin (http://192.168.1.212:8080/nexus-webap p-1.9.2/content/repositories/bcbsmt): Failed to transfer file: http://192.168.1.212:8080/nexus-webapp-1.9.2/content/repositories/bcbsmt/com/bcbsmt/eie/EIE_JAXB_JARS/1.4.1 -SNAPSHOT/EIE_JAXB_JARS-1.4.1-20110824.133549-5.pom. Return code is: 400 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:203) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:140) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:314) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:151) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:445) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:168) at org.apache.maven.cli.MavenCli.main(MavenCli.java:132) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to deploy artifacts: Could not transfer artifact com.bcbsmt.eie:EIE_JAXB_JARS:pom:1.4.1-20110824.133549- 5 from admin (http://192.168.1.212:8080/nexus-webapp-1.9.2/content/repositories/bcbsmt): Failed to transfer file: http://192.168.1.212:8080/nexus-webapp-1.9.2/content/rep ositories/bcbsmt/com/bcbsmt/eie/EIE_JAXB_JARS/1.4.1-SNAPSHOT/EIE_JAXB_JARS-1.4.1-20110824.133549-5.pom. Return code is: 400 at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:189) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:195) ... 19 more Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to deploy artifacts: Could not transfer artifact com.bcbsmt.eie:EIE_JAXB_JARS:pom:1.4.1- 20110824.133549-5 from admin (http://192.168.1.212:8080/nexus-webapp-1.9.2/content/repositories/bcbsmt): Failed to transfer file: http://192.168.1.212:8080/nexus-webapp-1 .9.2/content/repositories/bcbsmt/com/bcbsmt/eie/EIE_JAXB_JARS/1.4.1-SNAPSHOT/EIE_JAXB_JARS-1.4.1-20110824.133549-5.pom. Return code is: 400 at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:140) at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:148) ... 21 more Caused by: org.sonatype.aether.deployment.DeploymentException: Failed to deploy artifacts: Could not transfer artifact com.bcbsmt.eie:EIE_JAXB_JARS:pom:1.4.1-20110824.133 549-5 from admin (http://192.168.1.212:8080/nexus-webapp-1.9.2/content/repositories/bcbsmt): Failed to transfer file: http://192.168.1.212:8080/nexus-webapp-1.9.2/content /repositories/bcbsmt/com/bcbsmt/eie/EIE_JAXB_JARS/1.4.1-SNAPSHOT/EIE_JAXB_JARS-1.4.1-20110824.133549-5.pom. Return code is: 400 at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:267) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:334) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:136) ... 22 more Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Could not transfer artifact com.bcbsmt.eie:EIE_JAXB_JARS:pom:1.4.1-20110824.133549-5 from admin (http:/ /192.168.1.212:8080/nexus-webapp-1.9.2/content/repositories/bcbsmt): Failed to transfer file: http://192.168.1.212:8080/nexus-webapp-1.9.2/content/repositories/bcbsmt/com /bcbsmt/eie/EIE_JAXB_JARS/1.4.1-SNAPSHOT/EIE_JAXB_JARS-1.4.1-20110824.133549-5.pom. Return code is: 400 at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:858) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:849) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.flush(WagonRepositoryConnector.java:773) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.put(WagonRepositoryConnector.java:385) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:241) ... 24 more Caused by: org.apache.maven.wagon.TransferFailedException: Failed to transfer file: http://192.168.1.212:8080/nexus-webapp-1.9.2/content/repositories/bcbsmt/com/bcbsmt/ei e/EIE_JAXB_JARS/1.4.1-SNAPSHOT/EIE_JAXB_JARS-1.4.1-20110824.133549-5.pom. Return code is: 400 at org.apache.maven.wagon.providers.http.LightweightHttpWagon.finishPutTransfer(LightweightHttpWagon.java:205) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:413) at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:392) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:365) at org.apache.maven.wagon.StreamWagon.put(StreamWagon.java:163) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.run(WagonRepositoryConnector.java:734) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.put(WagonRepositoryConnector.java:384) My ultimate goal is to upload my child jar to nexus repository while deploying parent project.. suggest me some good solution.
    via by Dinesh PS,
  • My Parent Pom.xml looking something like this <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.sample.eie</groupId> <artifactId>EIE_JAXB_JARS</artifactId> <version>1.4.1-SNAPSHOT</version> <packaging>pom</packaging> <properties> <enrollgroupandmem.version>1.0.8</enrollgroupandmem.version> <grpandmemrisk.version>1.0.4</grpandmemrisk.version> <junit.version>3.8.1</junit.version> <jaxb-api.version>2.1</jaxb-api.version> <jaxb-impl.version>2.1.3</jaxb-impl.version> <maven-compiler-plugin.source.version>1.6</maven-compiler-plugin.source.version> <maven-compiler-plugin.target.version>1.6</maven-compiler-plugin.target.version> <jaxb2-maven-plugin.version>1.3</jaxb2-maven-plugin.version> <repository.id>admin</repository.id> <repository.name>Administrator</repository.name> <repository.url>http://192.168.1.212:8080/nexus-webapp-1.9.2/content/repositories/sample</repository.url> </properties> <distributionManagement> <repository> <id>admin</id> <name>admin</name> <url>http://192.168.1.212:8080/nexus-webapp-1.9.2/content/repositories/sample</url> </repository> </distributionManagement> <modules> <module>EnrollGroupAndMem</module> <module>GrpAndMemRisk</module> </modules> </project> My Child Pom is Looking like this <?xml version="1.0"?> <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <modelVersion>4.0.0</modelVersion> <parent> <artifactId>EIE_JAXB_JARS</artifactId> <groupId>com.sample.eie</groupId> <version>1.4.1-SNAPSHOT</version> <relativePath>../EIE_JAXB_JARS/pom.xml</relativePath> </parent> <distributionManagement> <repository> <id>${repository.id}</id> <name>admin</name> <url>http://192.168.1.212:8080/nexus-webapp-1.9.2/content/repositories/sample</url> </repository> </distributionManagement> <groupId>com.sample.eie</groupId> <artifactId>EnrollGroupAndMem</artifactId> <version>${enrollgroupandmem.version}</version> <packaging>jar</packaging> <name>EnrollGroupAndMem</name> <url>http://maven.apache.org</url> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <repositories> <repository> <id>${repository.id}</id> <name>${repository.name}</name> <url>${repository.url}</url> </repository> </repositories> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>${junit.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>javax.xml.bind</groupId> <artifactId>jaxb-api</artifactId> <version>${jaxb-api.version}</version> </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-impl</artifactId> <version>${jaxb-impl.version}</version> </dependency> </dependencies> <build> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>${maven-compiler-plugin.source.version}</source> <target>${maven-compiler-plugin.target.version}</target> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>jaxb2-maven-plugin</artifactId> <version>${jaxb2-maven-plugin.version}</version> <executions> <execution> <goals> <goal>xjc</goal> </goals> </execution> </executions> <configuration> <packageName>com.sample.eie.enrollgrpandmem</packageName> <outputDirectory>${basedir}/src/main/java</outputDirectory> <schemaDirectory>${basedir}/src/main/resources/xsd</schemaDirectory> <extension>true</extension> <verbose>false</verbose> </configuration> </plugin> </plugins> </build> </project> When i Deploy using "mvn clean deploy" command i'm getting exception like this [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy (default-deploy) on project EIE_JAXB_JARS: Failed to deploy artifacts: Could not tr ansfer artifact com.bcbsmt.eie:EIE_JAXB_JARS:pom:1.4.1-20110824.133549-5 from admin (http://192.168.1.212:8080/nexus-webapp-1.9.2/content/repositories/bcbsmt): Failed to transfer file: http://192.168.1.212:8080/nexus-webapp-1.9.2/content/repositories/bcbsmt/com/bcbsmt/eie/EIE_JAXB_JARS/1.4.1-SNAPSHOT/EIE_JAXB_JARS-1.4.1-20110824.133549-5. pom. Return code is: 400 -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy (default-deploy) on project EIE_JAX B_JARS: Failed to deploy artifacts: Could not transfer artifact com.bcbsmt.eie:EIE_JAXB_JARS:pom:1.4.1-20110824.133549-5 from admin (http://192.168.1.212:8080/nexus-webap p-1.9.2/content/repositories/bcbsmt): Failed to transfer file: http://192.168.1.212:8080/nexus-webapp-1.9.2/content/repositories/bcbsmt/com/bcbsmt/eie/EIE_JAXB_JARS/1.4.1 -SNAPSHOT/EIE_JAXB_JARS-1.4.1-20110824.133549-5.pom. Return code is: 400 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:203) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:140) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:314) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:151) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:445) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:168) at org.apache.maven.cli.MavenCli.main(MavenCli.java:132) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to deploy artifacts: Could not transfer artifact com.bcbsmt.eie:EIE_JAXB_JARS:pom:1.4.1-20110824.133549- 5 from admin (http://192.168.1.212:8080/nexus-webapp-1.9.2/content/repositories/bcbsmt): Failed to transfer file: http://192.168.1.212:8080/nexus-webapp-1.9.2/content/rep ositories/bcbsmt/com/bcbsmt/eie/EIE_JAXB_JARS/1.4.1-SNAPSHOT/EIE_JAXB_JARS-1.4.1-20110824.133549-5.pom. Return code is: 400 at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:189) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:195) ... 19 more Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to deploy artifacts: Could not transfer artifact com.bcbsmt.eie:EIE_JAXB_JARS:pom:1.4.1- 20110824.133549-5 from admin (http://192.168.1.212:8080/nexus-webapp-1.9.2/content/repositories/bcbsmt): Failed to transfer file: http://192.168.1.212:8080/nexus-webapp-1 .9.2/content/repositories/bcbsmt/com/bcbsmt/eie/EIE_JAXB_JARS/1.4.1-SNAPSHOT/EIE_JAXB_JARS-1.4.1-20110824.133549-5.pom. Return code is: 400 at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:140) at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:148) ... 21 more Caused by: org.sonatype.aether.deployment.DeploymentException: Failed to deploy artifacts: Could not transfer artifact com.bcbsmt.eie:EIE_JAXB_JARS:pom:1.4.1-20110824.133 549-5 from admin (http://192.168.1.212:8080/nexus-webapp-1.9.2/content/repositories/bcbsmt): Failed to transfer file: http://192.168.1.212:8080/nexus-webapp-1.9.2/content /repositories/bcbsmt/com/bcbsmt/eie/EIE_JAXB_JARS/1.4.1-SNAPSHOT/EIE_JAXB_JARS-1.4.1-20110824.133549-5.pom. Return code is: 400 at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:267) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:334) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:136) ... 22 more Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Could not transfer artifact com.bcbsmt.eie:EIE_JAXB_JARS:pom:1.4.1-20110824.133549-5 from admin (http:/ /192.168.1.212:8080/nexus-webapp-1.9.2/content/repositories/bcbsmt): Failed to transfer file: http://192.168.1.212:8080/nexus-webapp-1.9.2/content/repositories/bcbsmt/com /bcbsmt/eie/EIE_JAXB_JARS/1.4.1-SNAPSHOT/EIE_JAXB_JARS-1.4.1-20110824.133549-5.pom. Return code is: 400 at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:858) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:849) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.flush(WagonRepositoryConnector.java:773) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.put(WagonRepositoryConnector.java:385) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:241) ... 24 more Caused by: org.apache.maven.wagon.TransferFailedException: Failed to transfer file: http://192.168.1.212:8080/nexus-webapp-1.9.2/content/repositories/bcbsmt/com/bcbsmt/ei e/EIE_JAXB_JARS/1.4.1-SNAPSHOT/EIE_JAXB_JARS-1.4.1-20110824.133549-5.pom. Return code is: 400 at org.apache.maven.wagon.providers.http.LightweightHttpWagon.finishPutTransfer(LightweightHttpWagon.java:205) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:413) at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:392) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:365) at org.apache.maven.wagon.StreamWagon.put(StreamWagon.java:163) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.run(WagonRepositoryConnector.java:734) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.put(WagonRepositoryConnector.java:384) My ultimate goal is to upload my child jar to nexus repository while deploying parent project.. suggest me some good solution.
    via by Dinesh PS,
  • I Have Mentioned Like this in POM.XML <distributionManagement> <repository> <id>deployment</id> <name>deployment</name> <url>http://localhost:8080/nexus-webapp-1.9.2/content/repositories/releases</url> </repository> <snapshotRepository> <id>snapshots</id> <name>Internal Snapshots</name> <url>http://localhost:8080/nexus-webapp-1.9.2/content/repositories/snapshots</url> </snapshotRepository> </distributionManagement> And also Modified settings.xml for Authentication like this <server> <id>deployment</id> <username>deployment</username> <password>deployment123</password> </server> <server> <id>snapshots</id> <username>deployment</username> <password>deployment123</password> </server> While Deploying Using MVN DEPLOY command i'm getting exception like this [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy (default-deploy) on project Test: Failed to deploy artifacts: Could not transfer ar tifact Test:Test:jar:0.0.1 from deployment (http://localhost:8080/nexus-webapp-1.9.2/content/repositories/releases): Failed to transfer file: http://localhost:8080/nexus- webapp-1.9.2/content/repositories/releases/Test/Test/0.0.1/Test-0.0.1.jar. Return code is: 401 -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy (default-deploy) on project Test: F ailed to deploy artifacts: Could not transfer artifact Test:Test:jar:0.0.1 from deployment (http://localhost:8080/nexus-webapp-1.9.2/content/repositories/releases): Faile d to transfer file: http://localhost:8080/nexus-webapp-1.9.2/content/repositories/releases/Test/Test/0.0.1/Test-0.0.1.jar. Return code is: 401 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:203) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:140) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:314) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:151) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:445) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:168) at org.apache.maven.cli.MavenCli.main(MavenCli.java:132) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to deploy artifacts: Could not transfer artifact Test:Test:jar:0.0.1 from deployment (http://localhost:8 080/nexus-webapp-1.9.2/content/repositories/releases): Failed to transfer file: http://localhost:8080/nexus-webapp-1.9.2/content/repositories/releases/Test/Test/0.0.1/Tes t-0.0.1.jar. Return code is: 401 at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:189) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:195) ... 19 more Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to deploy artifacts: Could not transfer artifact Test:Test:jar:0.0.1 from deployment (ht tp://localhost:8080/nexus-webapp-1.9.2/content/repositories/releases): Failed to transfer file: http://localhost:8080/nexus-webapp-1.9.2/content/repositories/releases/Tes t/Test/0.0.1/Test-0.0.1.jar. Return code is: 401 at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:140) at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:156) ... 21 more Caused by: org.sonatype.aether.deployment.DeploymentException: Failed to deploy artifacts: Could not transfer artifact Test:Test:jar:0.0.1 from deployment (http://localho st:8080/nexus-webapp-1.9.2/content/repositories/releases): Failed to transfer file: http://localhost:8080/nexus-webapp-1.9.2/content/repositories/releases/Test/Test/0.0.1 /Test-0.0.1.jar. **Return code is: 401** at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:267) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:334) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:136) ... 22 more Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Could not transfer artifact Test:Test:jar:0.0.1 from deployment (http://localhost:8080/nexus-webapp-1.9 .2/content/repositories/releases): Failed to transfer file: http://localhost:8080/nexus-webapp-1.9.2/content/repositories/releases/Test/Test/0.0.1/Test-0.0.1.jar. Return code is: 401 at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:858) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:849) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.flush(WagonRepositoryConnector.java:773) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.put(WagonRepositoryConnector.java:385) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:241) ... 24 more **Caused by: org.apache.maven.wagon.TransferFailedException: Failed to transfer file: http://localhost:8080/nexus-webapp-1.9.2/content/repositories/releases/Test/Test/0.0.1 Is the Deployment UserID and Password doesnt have privileage to upload artifcat in nexus using maven deploy? i'm using Nexus 1.9.2 Does Nexus Proffesional only have privileage to upload?. Please Guide me /Test-0.0.1.jar. Return code is: 401** at org.apache.maven.wagon.providers.http.LightweightHttpWagon.finishPutTransfer(LightweightHttpWagon.java:205) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:413) at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:392) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:365) at org.apache.maven.wagon.StreamWagon.put(StreamWagon.java:163) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.run(WagonRepositoryConnector.java:734) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.put(WagonRepositoryConnector.java:384) ... 25 more [ERROR] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    via by Dinesh PS,
  • Unable to deploy to staging, return code 504 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy (default-deploy) on project markdownpapers-parent: Failed to deploy artifacts: Could not transfer artifact org.tautua.markdownpapers:markdownpapers-parent:pom:1.1.0 from/to Sonatype.staging (https://oss.sonatype.org/service/local/staging/deploy/maven2): Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/tautua/markdownpapers/markdownpapers-parent/1.1.0/markdownpapers-parent-1.1.0.pom. Return code is: 504 -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy (default-deploy) on project markdownpapers-parent: Failed to deploy artifacts: Could not transfer artifact org.tautua.markdownpapers:markdownpapers-parent:pom:1.1.0 from/to Sonatype.staging (https://oss.sonatype.org/service/local/staging/deploy/maven2): Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/tautua/markdownpapers/markdownpapers-parent/1.1.0/markdownpapers-parent-1.1.0.pom. Return code is: 504 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to deploy artifacts: Could not transfer artifact org.tautua.markdownpapers:markdownpapers-parent:pom:1.1.0 from/to Sonatype.staging (https://oss.sonatype.org/service/local/staging/deploy/maven2): Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/tautua/markdownpapers/markdownpapers-parent/1.1.0/markdownpapers-parent-1.1.0.pom. Return code is: 504 at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:189) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 19 more Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to deploy artifacts: Could not transfer artifact org.tautua.markdownpapers:markdownpapers-parent:pom:1.1.0 from/to Sonatype.staging (https://oss.sonatype.org/service/local/staging/deploy/maven2): Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/tautua/markdownpapers/markdownpapers-parent/1.1.0/markdownpapers-parent-1.1.0.pom. Return code is: 504 at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:141) at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:148) ... 21 more Caused by: org.sonatype.aether.deployment.DeploymentException: Failed to deploy artifacts: Could not transfer artifact org.tautua.markdownpapers:markdownpapers-parent:pom:1.1.0 from/to Sonatype.staging (https://oss.sonatype.org/service/local/staging/deploy/maven2): Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/tautua/markdownpapers/markdownpapers-parent/1.1.0/markdownpapers-parent-1.1.0.pom. Return code is: 504 at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:284) 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) ... 22 more Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Could not transfer artifact org.tautua.markdownpapers:markdownpapers-parent:pom:1.1.0 from/to Sonatype.staging (https://oss.sonatype.org/service/local/staging/deploy/maven2): Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/tautua/markdownpapers/markdownpapers-parent/1.1.0/markdownpapers-parent-1.1.0.pom. Return code is: 504 at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:949) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:940) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.flush(WagonRepositoryConnector.java:864) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.put(WagonRepositoryConnector.java:466) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:278) ... 25 more Caused by: org.apache.maven.wagon.TransferFailedException: Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/tautua/markdownpapers/markdownpapers-parent/1.1.0/markdownpapers-parent-1.1.0.pom. Return code is: 504 at org.apache.maven.wagon.providers.http.LightweightHttpWagon.finishPutTransfer(LightweightHttpWagon.java:205) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:413) at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:392) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:365) at org.apache.maven.wagon.StreamWagon.put(StreamWagon.java:163) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.run(WagonRepositoryConnector.java:825) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.put(WagonRepositoryConnector.java:465) ... 26 more
    via by Larry Ruiz,
  • I am unable to deploy a snapshot artifact to Nexus Repository. I keep getting return code 400... Uploading: http://172.16.65.128:8081/nexus/content/repositories/snapshots/com/tendrilinc/mockoce/MockOCE/1.0.4/MockOCE-1.0.4.pom 4 KB ERROR: Failed to deploy artifacts: Could not transfer artifact com.tendrilinc.mockoce:MockOCE:jar:1.0.4 from/to snapshots (http://172.16.65.128:8081/nexus/content/repositories/snapshots/): Failed to transfer file: http://172.16.65.128:8081/nexus/content/repositories/snapshots/com/tendrilinc/mockoce/MockOCE/1.0.4/MockOCE-1.0.4.jar. Return code is: 400 org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to deploy artifacts: Could not transfer artifact com.tendrilinc.mockoce:MockOCE:jar:1.0.4 from/to snapshots (http://172.16.65.128:8081/nexus/content/repositories/snapshots/): Failed to transfer file: http://172.16.65.128:8081/nexus/content/repositories/snapshots/com/tendrilinc/mockoce/MockOCE/1.0.4/MockOCE-1.0.4.jar. Return code is: 400 at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:141) at hudson.maven.reporters.MavenArtifactRecord.deploy(MavenArtifactRecord.java:189) at hudson.maven.RedeployPublisher.perform(RedeployPublisher.java:152) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:682) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:657) at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:958) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:604) at hudson.model.Run.run(Run.java:1401) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:479) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230) Caused by: org.sonatype.aether.deployment.DeploymentException: Failed to deploy artifacts: Could not transfer artifact com.tendrilinc.mockoce:MockOCE:jar:1.0.4 from/to snapshots (http://172.16.65.128:8081/nexus/content/repositories/snapshots/): Failed to transfer file: http://172.16.65.128:8081/nexus/content/repositories/snapshots/com/tendrilinc/mockoce/MockOCE/1.0.4/MockOCE-1.0.4.jar. Return code is: 400 at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:284) 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) ... 11 more Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Could not transfer artifact com.tendrilinc.mockoce:MockOCE:jar:1.0.4 from/to snapshots (http://172.16.65.128:8081/nexus/content/repositories/snapshots/): Failed to transfer file: http://172.16.65.128:8081/nexus/content/repositories/snapshots/com/tendrilinc/mockoce/MockOCE/1.0.4/MockOCE-1.0.4.jar. Return code is: 400 at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:949) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:940) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.flush(WagonRepositoryConnector.java:864) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.put(WagonRepositoryConnector.java:466) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:278) ... 14 more Caused by: org.apache.maven.wagon.TransferFailedException: Failed to transfer file: http://172.16.65.128:8081/nexus/content/repositories/snapshots/com/tendrilinc/mockoce/MockOCE/1.0.4/MockOCE-1.0.4.jar. Return code is: 400 at org.apache.maven.wagon.providers.http.LightweightHttpWagon.finishPutTransfer(LightweightHttpWagon.java:205) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:413) at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:392) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:365) at org.apache.maven.wagon.StreamWagon.put(StreamWagon.java:163) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.run(WagonRepositoryConnector.java:825) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.put(WagonRepositoryConnector.java:465) ... 15 more [INFO] Deployment failed after 1 sec Build step 'Deploy artifacts to Maven repository' changed build result to FAILURE Finished: FAILURE
    via by Rene Molina,
  • Unable to deploy to staging, return code 504 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy (default-deploy) on project markdownpapers-parent: Failed to deploy artifacts: Could not transfer artifact org.tautua.markdownpapers:markdownpapers-parent:pom:1.1.0 from/to Sonatype.staging (https://oss.sonatype.org/service/local/staging/deploy/maven2): Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/tautua/markdownpapers/markdownpapers-parent/1.1.0/markdownpapers-parent-1.1.0.pom. Return code is: 504 -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy (default-deploy) on project markdownpapers-parent: Failed to deploy artifacts: Could not transfer artifact org.tautua.markdownpapers:markdownpapers-parent:pom:1.1.0 from/to Sonatype.staging (https://oss.sonatype.org/service/local/staging/deploy/maven2): Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/tautua/markdownpapers/markdownpapers-parent/1.1.0/markdownpapers-parent-1.1.0.pom. Return code is: 504 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to deploy artifacts: Could not transfer artifact org.tautua.markdownpapers:markdownpapers-parent:pom:1.1.0 from/to Sonatype.staging (https://oss.sonatype.org/service/local/staging/deploy/maven2): Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/tautua/markdownpapers/markdownpapers-parent/1.1.0/markdownpapers-parent-1.1.0.pom. Return code is: 504 at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:189) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 19 more Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to deploy artifacts: Could not transfer artifact org.tautua.markdownpapers:markdownpapers-parent:pom:1.1.0 from/to Sonatype.staging (https://oss.sonatype.org/service/local/staging/deploy/maven2): Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/tautua/markdownpapers/markdownpapers-parent/1.1.0/markdownpapers-parent-1.1.0.pom. Return code is: 504 at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:141) at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:148) ... 21 more Caused by: org.sonatype.aether.deployment.DeploymentException: Failed to deploy artifacts: Could not transfer artifact org.tautua.markdownpapers:markdownpapers-parent:pom:1.1.0 from/to Sonatype.staging (https://oss.sonatype.org/service/local/staging/deploy/maven2): Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/tautua/markdownpapers/markdownpapers-parent/1.1.0/markdownpapers-parent-1.1.0.pom. Return code is: 504 at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:284) 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) ... 22 more Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Could not transfer artifact org.tautua.markdownpapers:markdownpapers-parent:pom:1.1.0 from/to Sonatype.staging (https://oss.sonatype.org/service/local/staging/deploy/maven2): Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/tautua/markdownpapers/markdownpapers-parent/1.1.0/markdownpapers-parent-1.1.0.pom. Return code is: 504 at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:949) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:940) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.flush(WagonRepositoryConnector.java:864) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.put(WagonRepositoryConnector.java:466) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:278) ... 25 more Caused by: org.apache.maven.wagon.TransferFailedException: Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/tautua/markdownpapers/markdownpapers-parent/1.1.0/markdownpapers-parent-1.1.0.pom. Return code is: 504 at org.apache.maven.wagon.providers.http.LightweightHttpWagon.finishPutTransfer(LightweightHttpWagon.java:205) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:413) at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:392) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:365) at org.apache.maven.wagon.StreamWagon.put(StreamWagon.java:163) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.run(WagonRepositoryConnector.java:825) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.put(WagonRepositoryConnector.java:465) ... 26 more
    via by Larry Ruiz,
  • I am unable to deploy a snapshot artifact to Nexus Repository. I keep getting return code 400... Uploading: http://172.16.65.128:8081/nexus/content/repositories/snapshots/com/tendrilinc/mockoce/MockOCE/1.0.4/MockOCE-1.0.4.pom 4 KB ERROR: Failed to deploy artifacts: Could not transfer artifact com.tendrilinc.mockoce:MockOCE:jar:1.0.4 from/to snapshots (http://172.16.65.128:8081/nexus/content/repositories/snapshots/): Failed to transfer file: http://172.16.65.128:8081/nexus/content/repositories/snapshots/com/tendrilinc/mockoce/MockOCE/1.0.4/MockOCE-1.0.4.jar. Return code is: 400 org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to deploy artifacts: Could not transfer artifact com.tendrilinc.mockoce:MockOCE:jar:1.0.4 from/to snapshots (http://172.16.65.128:8081/nexus/content/repositories/snapshots/): Failed to transfer file: http://172.16.65.128:8081/nexus/content/repositories/snapshots/com/tendrilinc/mockoce/MockOCE/1.0.4/MockOCE-1.0.4.jar. Return code is: 400 at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:141) at hudson.maven.reporters.MavenArtifactRecord.deploy(MavenArtifactRecord.java:189) at hudson.maven.RedeployPublisher.perform(RedeployPublisher.java:152) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:682) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:657) at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:958) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:604) at hudson.model.Run.run(Run.java:1401) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:479) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230) Caused by: org.sonatype.aether.deployment.DeploymentException: Failed to deploy artifacts: Could not transfer artifact com.tendrilinc.mockoce:MockOCE:jar:1.0.4 from/to snapshots (http://172.16.65.128:8081/nexus/content/repositories/snapshots/): Failed to transfer file: http://172.16.65.128:8081/nexus/content/repositories/snapshots/com/tendrilinc/mockoce/MockOCE/1.0.4/MockOCE-1.0.4.jar. Return code is: 400 at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:284) 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) ... 11 more Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Could not transfer artifact com.tendrilinc.mockoce:MockOCE:jar:1.0.4 from/to snapshots (http://172.16.65.128:8081/nexus/content/repositories/snapshots/): Failed to transfer file: http://172.16.65.128:8081/nexus/content/repositories/snapshots/com/tendrilinc/mockoce/MockOCE/1.0.4/MockOCE-1.0.4.jar. Return code is: 400 at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:949) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:940) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.flush(WagonRepositoryConnector.java:864) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.put(WagonRepositoryConnector.java:466) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:278) ... 14 more Caused by: org.apache.maven.wagon.TransferFailedException: Failed to transfer file: http://172.16.65.128:8081/nexus/content/repositories/snapshots/com/tendrilinc/mockoce/MockOCE/1.0.4/MockOCE-1.0.4.jar. Return code is: 400 at org.apache.maven.wagon.providers.http.LightweightHttpWagon.finishPutTransfer(LightweightHttpWagon.java:205) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:413) at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:392) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:365) at org.apache.maven.wagon.StreamWagon.put(StreamWagon.java:163) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.run(WagonRepositoryConnector.java:825) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.put(WagonRepositoryConnector.java:465) ... 15 more [INFO] Deployment failed after 1 sec Build step 'Deploy artifacts to Maven repository' changed build result to FAILURE Finished: FAILURE
    via by Rene Molina,
    • org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy (default-deploy) on project EIE_JAX B_JARS: Failed to deploy artifacts: Could not transfer artifact com.bcbsmt.eie:EIE_JAXB_JARS:pom:1.4.1-20110824.133549-5 from admin (http://192.168.1.212:8080
    • exus-webap p-1.9.2/content/repositories/bcbsmt): Failed to transfer file: http://192.168.1.212:8080
    • exus-webapp-1.9.2/content/repositories/bcbsmt/com/bcbsmt/eie/EIE_JAXB_JARS/1.4.1 -SNAPSHOT/EIE_JAXB_JARS-1.4.1-20110824.133549-5.pom. Return code is: 400 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:203) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:140) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:314) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:151) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:445) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:168) at org.apache.maven.cli.MavenCli.main(MavenCli.java:132) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to deploy artifacts: Could not transfer artifact com.bcbsmt.eie:EIE_JAXB_JARS:pom:1.4.1-20110824.133549- 5 from admin (http://192.168.1.212:8080
    • exus-webapp-1.9.2/content/repositories/bcbsmt): Failed to transfer file: http://192.168.1.212:8080
    • exus-webapp-1.9.2/content/rep ositories/bcbsmt/com/bcbsmt/eie/EIE_JAXB_JARS/1.4.1-SNAPSHOT/EIE_JAXB_JARS-1.4.1-20110824.133549-5.pom. Return code is: 400 at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:189) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:195) ... 19 more Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to deploy artifacts: Could not transfer artifact com.bcbsmt.eie:EIE_JAXB_JARS:pom:1.4.1- 20110824.133549-5 from admin (http://192.168.1.212:8080
    • exus-webapp-1.9.2/content/repositories/bcbsmt): Failed to transfer file: http://192.168.1.212:8080
    • exus-webapp-1 .9.2/content/repositories/bcbsmt/com/bcbsmt/eie/EIE_JAXB_JARS/1.4.1-SNAPSHOT/EIE_JAXB_JARS-1.4.1-20110824.133549-5.pom. Return code is: 400 at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:140) at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:148) ... 21 more Caused by: org.sonatype.aether.deployment.DeploymentException: Failed to deploy artifacts: Could not transfer artifact com.bcbsmt.eie:EIE_JAXB_JARS:pom:1.4.1-20110824.133 549-5 from admin (http://192.168.1.212:8080
    • exus-webapp-1.9.2/content/repositories/bcbsmt): Failed to transfer file: http://192.168.1.212:8080
    • exus-webapp-1.9.2/content /repositories/bcbsmt/com/bcbsmt/eie/EIE_JAXB_JARS/1.4.1-SNAPSHOT/EIE_JAXB_JARS-1.4.1-20110824.133549-5.pom. Return code is: 400 at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:267) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:334) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:136) ... 22 more Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Could not transfer artifact com.bcbsmt.eie:EIE_JAXB_JARS:pom:1.4.1-20110824.133549-5 from admin (http:/ /192.168.1.212:8080
    • exus-webapp-1.9.2/content/repositories/bcbsmt): Failed to transfer file: http://192.168.1.212:8080
    • exus-webapp-1.9.2/content/repositories/bcbsmt/com /bcbsmt/eie/EIE_JAXB_JARS/1.4.1-SNAPSHOT/EIE_JAXB_JARS-1.4.1-20110824.133549-5.pom. Return code is: 400 at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:858) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:849) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.flush(WagonRepositoryConnector.java:773) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.put(WagonRepositoryConnector.java:385) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:241) ... 24 more Caused by: org.apache.maven.wagon.TransferFailedException: Failed to transfer file: http://192.168.1.212:8080
    • exus-webapp-1.9.2/content/repositories/bcbsmt/com/bcbsmt/ei e/EIE_JAXB_JARS/1.4.1-SNAPSHOT/EIE_JAXB_JARS-1.4.1-20110824.133549-5.pom. Return code is: 400 at org.apache.maven.wagon.providers.http.LightweightHttpWagon.finishPutTransfer(LightweightHttpWagon.java:205) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:413) at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:392) at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:365) at org.apache.maven.wagon.StreamWagon.put(StreamWagon.java:163) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.run(WagonRepositoryConnector.java:734) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.put(WagonRepositoryConnector.java:384)

    Users with the same issue

    Unknown visitor1 times, last one,