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

Sonatype JIRA | Dinesh PS | 5 years ago
  1. 0

    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.

    Sonatype JIRA | 5 years ago | Dinesh PS
    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
  2. 0

    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.

    Sonatype JIRA | 5 years ago | Dinesh PS
    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
  3. 0

    Nexus Repository Issue while uploading artifact using maven command

    Stack Overflow | 5 years ago | Dinesh
    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 /Test-0.0.1.jar. Return code is: 401**
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    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.

    Sonatype JIRA | 5 years ago | Dinesh PS
    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**
  6. 0

    Migration to Maven 3.0.1 - Deploy fails with Error: 500 only for top most maven-metadata.xml

    Stack Overflow | 6 years ago | Vijay Ratnagiri
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy (default-deploy) on project ThirdPartyDeploymentProject: Failed to deploy metadata: Could not transfer metadata com.***.deployment:ThirdPartyDeploymentProject:0.0.1-SNAPSHOT/maven-metadata.xml from/to deploymentRepoSnapshot (http://mvn.***.com:8080/artifactory/***-project-assets): Failed to transfer file: http://mvn.***.com:8080/artifactory/***-project-assets/com/***/deployment/ThirdPartyDeploymentProject/0.0.1-SNAPSHOT/maven-metadata.xml. Return code is: 500

    1 unregistered visitors
    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. 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()
    2. Maven
      StreamWagon.put
      1. org.apache.maven.wagon.providers.http.LightweightHttpWagon.finishPutTransfer(LightweightHttpWagon.java:205)
      2. org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:413)
      3. org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:392)
      4. org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:365)
      5. org.apache.maven.wagon.StreamWagon.put(StreamWagon.java:163)
      5 frames
    3. Aether :: Connector :: Wagon
      WagonRepositoryConnector.put
      1. org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.run(WagonRepositoryConnector.java:734)
      2. org.sonatype.aether.connector.wagon.WagonRepositoryConnector.put(WagonRepositoryConnector.java:384)
      2 frames