Quantcast

error about distribute project to nexus

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

error about distribute project to nexus

boy1064910
This post has NOT been accepted by the mailing list yet.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project china_a: Failed to retrieve remote metadata cn.com.china:china_a:0.0.1-SNAPSHOT/maven-metadata.xml: Could not transfer metadata cn.com.china:china_a:0.0.1-SNAPSHOT/maven-metadata.xml from/to nexus-snapshots (http://localhost:8011/nexus/content/repositories/snapshots): Failed to transfer file: http://localhost:8011/nexus/content/repositories/snapshots/cn/com/china/china_a/0.0.1-SNAPSHOT/maven-metadata.xml. Return code is: 500 , ReasonPhrase:Internal Server Error. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project china_a: Failed to retrieve remote metadata cn.com.china:china_a:0.0.1-SNAPSHOT/maven-metadata.xml: Could not transfer metadata cn.com.china:china_a:0.0.1-SNAPSHOT/maven-metadata.xml from/to nexus-snapshots (http://localhost:8011/nexus/content/repositories/snapshots): Failed to transfer file: http://localhost:8011/nexus/content/repositories/snapshots/cn/com/china/china_a/0.0.1-SNAPSHOT/maven-metadata.xml. Return code is: 500 , ReasonPhrase:Internal Server Error.
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
 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:317)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:601)
 at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
 at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
 at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
 at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
 at org.codehaus.classworlds.Launcher.main(Launcher.java:46)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to retrieve remote metadata cn.com.china:china_a:0.0.1-SNAPSHOT/maven-metadata.xml: Could not transfer metadata cn.com.china:china_a:0.0.1-SNAPSHOT/maven-metadata.xml from/to nexus-snapshots (http://localhost:8011/nexus/content/repositories/snapshots): Failed to transfer file: http://localhost:8011/nexus/content/repositories/snapshots/cn/com/china/china_a/0.0.1-SNAPSHOT/maven-metadata.xml. Return code is: 500 , ReasonPhrase:Internal Server Error.
 at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:193)
 at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
 ... 20 more
Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to retrieve remote metadata cn.com.china:china_a:0.0.1-SNAPSHOT/maven-metadata.xml: Could not transfer metadata cn.com.china:china_a:0.0.1-SNAPSHOT/maven-metadata.xml from/to nexus-snapshots (http://localhost:8011/nexus/content/repositories/snapshots): Failed to transfer file: http://localhost:8011/nexus/content/repositories/snapshots/cn/com/china/china_a/0.0.1-SNAPSHOT/maven-metadata.xml. Return code is: 500 , ReasonPhrase:Internal Server Error.
 at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:143)
 at org.apache.maven.plugin.deploy.AbstractDeployMojo.deploy(AbstractDeployMojo.java:167)
 at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:157)
 ... 22 more
Caused by: org.eclipse.aether.deployment.DeploymentException: Failed to retrieve remote metadata cn.com.china:china_a:0.0.1-SNAPSHOT/maven-metadata.xml: Could not transfer metadata cn.com.china:china_a:0.0.1-SNAPSHOT/maven-metadata.xml from/to nexus-snapshots (http://localhost:8011/nexus/content/repositories/snapshots): Failed to transfer file: http://localhost:8011/nexus/content/repositories/snapshots/cn/com/china/china_a/0.0.1-SNAPSHOT/maven-metadata.xml. Return code is: 500 , ReasonPhrase:Internal Server Error.
 at org.eclipse.aether.internal.impl.DefaultDeployer.upload(DefaultDeployer.java:463)
 at org.eclipse.aether.internal.impl.DefaultDeployer.deploy(DefaultDeployer.java:313)
 at org.eclipse.aether.internal.impl.DefaultDeployer.deploy(DefaultDeployer.java:268)
 at org.eclipse.aether.internal.impl.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:413)
 at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:139)
 ... 24 more
Caused by: org.eclipse.aether.transfer.MetadataTransferException: Could not transfer metadata cn.com.china:china_a:0.0.1-SNAPSHOT/maven-metadata.xml from/to nexus-snapshots (http://localhost:8011/nexus/content/repositories/snapshots): Failed to transfer file: http://localhost:8011/nexus/content/repositories/snapshots/cn/com/china/china_a/0.0.1-SNAPSHOT/maven-metadata.xml. Return code is: 500 , ReasonPhrase:Internal Server Error.
 at org.eclipse.aether.connector.wagon.WagonRepositoryConnector$5.wrap(WagonRepositoryConnector.java:995)
 at org.eclipse.aether.connector.wagon.WagonRepositoryConnector$5.wrap(WagonRepositoryConnector.java:983)
 at org.eclipse.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:725)
 at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
 at java.lang.Thread.run(Thread.java:722)
Caused by: org.apache.maven.wagon.TransferFailedException: Failed to transfer file: http://localhost:8011/nexus/content/repositories/snapshots/cn/com/china/china_a/0.0.1-SNAPSHOT/maven-metadata.xml. Return code is: 500 , ReasonPhrase:Internal Server Error.
 at org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:945)
 at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
 at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
 at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
 at org.eclipse.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:660)
 ... 4 more

 Console throws exception when i mvn deploy my project
my project's pom has set the distributionManagement,and the maven's setting.xml has config the server:

<distributionManagement>
  <repository>
   <id>nexus-releases</id>
   <name>nexus-releases</name>
   <url>http://localhost:8011/nexus/content/repositories/releases</url>
  </repository>
  <snapshotRepository>
   <id>nexus-snapshots</id>
   <name>nexus-snapshots</name>
   <url>http://localhost:8011/nexus/content/repositories/snapshots</url>
  </snapshotRepository>
 </distributionManagement>

maven's setting.xml has config the nexus mirror

<mirror>
      <id>nexus</id>
      <mirrorOf>*</mirrorOf>
      <name>Nexus Mirror</name>
      <url>http://localhost:8011/nexus/content/groups/public/</url>
    </mirror>

please help,i'm confusing.
Loading...