Can you deploy from the commandline? I followed the nexus setup instructions from the sonatype site here: http://www.sonatype.com/books/nexus-book/reference/maven.html And it worked great the first time.
If it works from the command line, then chanes are its a m2eclipse issue. On Thu, Dec 9, 2010 at 9:42 AM, KARR, DAVID (ATTSI) <[email protected]> wrote: > > -----Original Message----- > > From: ginni [mailto:[email protected]] > > Sent: Thursday, December 09, 2010 8:23 AM > > To: [email protected] > > Subject: M2Eclipse deploy to Nexus Repo Failure > > > > > > I am able to log in via the browser (just using the defaults as we're > > just > > getting started with Nexus, so admin/admin123) to see our > repositories. > > I've added to local settings: > > > > <server> > > <id>Snapshots</id> > > <username>admin</username> > > <password>admin123</password> > > </server> > > Just a guess, but perhaps you should use the deployment credentials here > instead of the admin credentials. It's probably more correct, in any > case. > > > And in the POM, added the repository: > > <repository> > > <id>Snapshots</id> > > > > <url>http://ourserver:8080/nexus-webapp- > > 1.8.0.1/content/repositories/snapshots</url> > > <layout>default</layout> > > <snapshots> > > <enabled>true</enabled> > > </snapshots> > > </repository> > > > > Plus under distributionManagement: > > <snapshotRepository> > > <id>Snapshots</id> > > <name>Aerospace Application Development Department Internal > > Repository</name> > > > <url>http://ourserver:8080/nexus/content/repositories/snapshots</ > > url> > > </snapshotRepository> > > > > But when I try to deploy (inside Eclipse - Run As...) I get these > > errors: > > > > [ERROR] Failed to execute goal > > org.apache.maven.plugins:maven-deploy-plugin:2.4:deploy (default- > > deploy) on > > project common-util: Error deploying artifact: Authorization failed: > > Transfer failed: [403] > > http://agologdev01:8080/nexus-webapp- > > 1.8.0.1/content/repositories/snapshots/org/aero/common-util/0.0.1- > > SNAPSHOT/common-util-0.0.1-20101209.161310-1.jar > > -> [Help 1] > > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to > > execute > > goal org.apache.maven.plugins:maven-deploy-plugin:2.4:deploy > > (default-deploy) on project common-util: Error deploying artifact: > > Authorization failed: Transfer failed: [403] > > http://agologdev01:8080/nexus-webapp- > > 1.8.0.1/content/repositories/snapshots/org/aero/common-util/0.0.1- > > SNAPSHOT/common-util-0.0.1-20101209.161310-1.jar > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLife > > cycleExecutor.java:585) > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLife > > cycleExecutor.java:324) > > at > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:247) > > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:104) > > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:427) > > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:157) > > at org.apache.maven.cli.MavenCli.main(MavenCli.java:121) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja > > va:39) > > at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso > > rImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:597) > > at > > > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launch > > er.java:290) > > at > > > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java: > > 230) > > at > > > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Laun > > cher.java:409) > > at > > > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:35 > > 2) > > Caused by: org.apache.maven.plugin.MojoExecutionException: Error > > deploying > > artifact: Authorization failed: Transfer failed: [403] > > http://agologdev01:8080/nexus-webapp- > > 1.8.0.1/content/repositories/snapshots/org/aero/common-util/0.0.1- > > SNAPSHOT/common-util-0.0.1-20101209.161310-1.jar > > at > > org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:195) > > at > > > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBu > > ildPluginManager.java:105) > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLife > > cycleExecutor.java:577) > > ... 14 more > > Caused by: > > org.apache.maven.artifact.deployer.ArtifactDeploymentException: > > Error deploying artifact: Authorization failed: Transfer failed: [403] > > http://agologdev01:8080/nexus-webapp- > > 1.8.0.1/content/repositories/snapshots/org/aero/common-util/0.0.1- > > SNAPSHOT/common-util-0.0.1-20101209.161310-1.jar > > at > > > org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(Defau > > ltArtifactDeployer.java:92) > > at > > org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:173) > > ... 16 more > > Caused by: org.apache.maven.wagon.TransferFailedException: > > Authorization > > failed: Transfer failed: [403] > > http://agologdev01:8080/nexus-webapp- > > 1.8.0.1/content/repositories/snapshots/org/aero/common-util/0.0.1- > > SNAPSHOT/common-util-0.0.1-20101209.161310-1.jar > > at > > > org.apache.maven.repository.legacy.DefaultWagonManager.putRemoteFile(De > > faultWagonManager.java:537) > > at > > > org.apache.maven.repository.legacy.DefaultWagonManager.putArtifact(Defa > > ultWagonManager.java:450) > > at > > > org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(Defau > > ltArtifactDeployer.java:82) > > ... 17 more > > Caused by: > org.apache.maven.wagon.authorization.AuthorizationException: > > Transfer failed: [403] > > http://agologdev01:8080/nexus-webapp- > > 1.8.0.1/content/repositories/snapshots/org/aero/common-util/0.0.1- > > SNAPSHOT/common-util-0.0.1-20101209.161310-1.jar > > at > > > org.apache.maven.wagon.providers.http.JettyClientHttpWagon.put(JettyCli > > entHttpWagon.java:562) > > at > > > org.apache.maven.wagon.providers.http.JettyClientHttpWagon.put(JettyCli > > entHttpWagon.java:495) > > at > > > org.apache.maven.repository.legacy.DefaultWagonManager.putRemoteFile(De > > faultWagonManager.java:498) > > ... 19 more > > > > What might I have missing? > > > > Thanks! > > > > Ginni > > -- > > View this message in context: > > http://maven.40175.n5.nabble.com/M2Eclipse-deploy-to-Nexus-Repo- > > Failure-tp3299138p3299138.html > > Sent from the Maven - Users mailing list archive at Nabble.com. > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
