Maven3 builds won´t authenticate with nexus

419 views
Skip to first unread message

Tony França

unread,
Jan 5, 2011, 9:31:12 AM1/5/11
to hudson...@googlegroups.com

Hi all. it´s my first time here, I´m having an issue building with Maven3 on the newest 1.392 version.
I have built if from the sources that I downloaded from github.

When I build my project using a Maven2/3 build, it won´t connect to nexus, giving a permission denied error:


Started by user anonymous

At revision 23726

Found mavenVersion 3.0 from file jar:file:/home/p2d/Maven3_downloaded/lib/maven-core-3.0.jar!/META-INF/maven/org.apache.maven/maven-core/pom.properties

Parsing POMs

ERROR: Failed to parse POMs
: Some problems were encountered while processing the POMs:

[FATAL] Non-resolvable parent POM: Could not transfer artifact br.com.p2d.commons:flex-master-pom:pom:1.10 from/to p2d (http://p2dnexus.touchtec.com.br/content/groups/public): Access denied to: http://p2dnexus.touchtec.com.br/content/groups/public/br/com/p2d/commons/flex-master-pom/1.10/flex-master-pom-1.10.pom and 'parent.relativePath' points at wrong local POM @ line 9, column 10


	at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:325)

	at hudson.maven.MavenEmbedder.readProjects(MavenEmbedder.java:382)

	at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1096)

	at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:983)

	at hudson.FilePath.act(FilePath.java:756)

	at hudson.FilePath.act(FilePath.java:738)

	at hudson.maven.MavenModuleSetBuild$RunnerImpl.parsePoms(MavenModuleSetBuild.java:690)

	at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:526)

	at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:417)

	at hudson.model.Run.run(Run.java:1362)

	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:400)

	at hudson.model.ResourceController.execute(ResourceController.java:88)

	at hudson.model.Executor.run(Executor.java:145)

Finished: FAILURE

This http://p2dnexus.touchtec.com.br guy is my nexus server. That URL is specified on my ~/.m2/settings.xml file. That file also has the required user and password for nexus. (And it still gives the permission denied)

Now if I set up a free style build and do it with a shell script like
$M2_HOME/bin/mvn clean install

($M2_HOME is pointing to the same maven3 installation configured for Hudson Maven builds, which is the only maven existing on the machine anyway)

then the build works:


Started by user anonymous

At revision 23726

[workspace] $ /bin/sh -xe /opt/tomcat/temp/hudson5306156987868704036.sh

+ echo /home/p2d/Maven3_downloaded

/home/p2d/Maven3_downloaded

+ /home/p2d/Maven3_downloaded/bin/mvn clean install

Warning: JAVA_HOME environment variable is not set.

[INFO] Scanning for projects...

4 KB   

8 KB   

12 KB   

16 KB   

20 KB   

24 KB   

28 KB   

29 KB   

        



(etc etc etc)

...



[INFO] ------------------------------------------------------------------------

[INFO] BUILD SUCCESS

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 4.740s

[INFO] Finished at: Wed Jan 05 20:13:07 BRST 2011

[INFO] Final Memory: 21M/290M

[INFO] ------------------------------------------------------------------------

Finished: SUCCESS


I´d really like to use maven builds instead of shell builds.
Any help?

Thanks!
Tony Lâmpada

olive...@gmail.com

unread,
Jan 5, 2011, 9:36:13 AM1/5/11
to hudson...@googlegroups.com
Hello,

Can you try the last snapshot ?

Thanks!
--
Olivier

Tony França

unread,
Jan 5, 2011, 10:24:34 AM1/5/11
to hudson...@googlegroups.com
I tried building from the master and main-maven3-support branches, but I´m getting a compilation error on maven-core:


[ERROR] Failed to execute goal org.kohsuke.stapler:maven-stapler-plugin:1.15:apt-compile (default-apt-compile) on project hudson-core: Compilation failure: Compilation failure:

[ERROR] /home/p2d/.hudson/jobs/Hudson-war/workspace/core/src/main/java/hudson/model/Build.java:[80,16] types hudson.model.AbstractBuild<P,B> and hudson.model.AbstractBuild<P,B> are incompatible; both define getParent(), but with unrelated return types

[ERROR] 

[ERROR] /home/p2d/.hudson/jobs/Hudson-war/workspace/core/src/main/java/hudson/matrix/MatrixBuild.java:[60,7] types hudson.model.AbstractBuild<hudson.matrix.MatrixProject,hudson.matrix.MatrixBuild> and hudson.model.AbstractBuild<hudson.matrix.MatrixProject,hudson.matrix.MatrixBuild> are incompatible; both define getParent(), but with unrelated return types

[ERROR] 

[ERROR] /home/p2d/.hudson/jobs/Hudson-war/workspace/core/src/main/java/hudson/model/FreeStyleBuild.java:[35,7] types hudson.model.Build<hudson.model.FreeStyleProject,hudson.model.FreeStyleBuild> and hudson.model.Build<hudson.model.FreeStyleProject,hudson.model.FreeStyleBuild> are incompatible; both define getParent(), but with unrelated return types

[ERROR] -> [Help 1]

[ERROR] 

I´m downloading the war file you published on the issue. Will let you know if it works!
Thanks!

Tony França

unread,
Jan 5, 2011, 10:28:55 AM1/5/11
to hudson...@googlegroups.com
It works!

Now I´m using version 

Tony França

unread,
Jan 5, 2011, 10:53:37 AM1/5/11
to hudson...@googlegroups.com
Well, it worked, but not that much.

I got a funny situation now.

That clean install I did worked, Now I´m building a different project, with the following goals:

clean deploy -fae -DFLEX_HOME=/opt/flex

I built it once, and I got a build successfull (build #1195)
Then i built it again, and got a build failed (build #1196) with no source changes from SVN.

The error on build1196 was during deploy phase (output fragment below):


[INFO] Installing /home/p2d/.hudson/jobs/Portal/workspace/trunk/pom.xml to /home/p2d/.m2/repository/br/com/p2d/ehr/portal-pom/1.15-SNAPSHOT/portal-pom-1.15-SNAPSHOT.pom

mojoSucceeded org.apache.maven.plugins:maven-install-plugin:2.3.1(default-install)

mojoStarted org.apache.maven.plugins:maven-deploy-plugin:2.5(default-deploy)

[WARNING] Could not transfer metadata br.com.p2d.ehr:portal-pom:1.15-SNAPSHOT/maven-metadata.xml from p2didc1-snapshots (http://p2dnexus.touchtec.com.br/content/repositories/snapshots/): Access denied to: http://p2dnexus.touchtec.com.br/content/repositories/snapshots/br/com/p2d/ehr/portal-pom/1.15-SNAPSHOT/maven-metadata.xml

mojoFailed org.apache.maven.plugins:maven-deploy-plugin:2.5(default-deploy)

projectFailed br.com.p2d.ehr:portal-pom:1.15-SNAPSHOT

[HUDSON] Archiving /home/p2d/.hudson/jobs/Portal/workspace/trunk/pom.xml to /home/p2d/.hudson/jobs/Portal/modules/br.com.p2d.ehr$portal-pom/builds/2011-01-05_21-44-42/archive/br.com.p2d.ehr/portal-pom/1.15-SNAPSHOT/pom.xml

sessionEnded

maven builder waiting

mavenExecutionResult exceptions not empty

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy (default-deploy) on project portal: Failed to retrieve remote metadata br.com.p2d.ehr:portal:1.15-SNAPSHOT/maven-metadata.xml: Could not transfer metadata br.com.p2d.ehr:portal:1.15-SNAPSHOT/maven-metadata.xml from p2didc1-snapshots (http://p2dnexus.touchtec.com.br/content/repositories/snapshots/): Access denied to: http://p2dnexus.touchtec.com.br/content/repositories/snapshots/br/com/p2d/ehr/portal/1.15-SNAPSHOT/maven-metadata.xml

	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.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79)

	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:616)

	at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)

	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)

	at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:145)

	at hudson.maven.Maven3Builder.call(Maven3Builder.java:123)

	at hudson.maven.Maven3Builder.call(Maven3Builder.java:70)

	at hudson.remoting.UserRequest.perform(UserRequest.java:114)

	at hudson.remoting.UserRequest.perform(UserRequest.java:48)

	at hudson.remoting.Request$2.run(Request.java:270)

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)

	at java.util.concurrent.FutureTask.run(FutureTask.java:166)

	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:636)

Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to retrieve remote metadata br.com.p2d.ehr:portal:1.15-SNAPSHOT/maven-metadata.xml: Could not transfer metadata br.com.p2d.ehr:portal:1.15-SNAPSHOT/maven-metadata.xml from p2didc1-snapshots (http://p2dnexus.touchtec.com.br/content/repositories/snapshots/): Access denied to: http://p2dnexus.touchtec.com.br/content/repositories/snapshots/br/com/p2d/ehr/portal/1.15-SNAPSHOT/maven-metadata.xml

	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)

	... 27 more

Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to retrieve remote metadata br.com.p2d.ehr:portal:1.15-SNAPSHOT/maven-metadata.xml: Could not transfer metadata br.com.p2d.ehr:portal:1.15-SNAPSHOT/maven-metadata.xml from p2didc1-snapshots (http://p2dnexus.touchtec.com.br/content/repositories/snapshots/): Access denied to: http://p2dnexus.touchtec.com.br/content/repositories/snapshots/br/com/p2d/ehr/portal/1.15-SNAPSHOT/maven-metadata.xml

	at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:140)

	at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:156)

	... 29 more

Caused by: org.sonatype.aether.deployment.DeploymentException: Failed to retrieve remote metadata br.com.p2d.ehr:portal:1.15-SNAPSHOT/maven-metadata.xml: Could not transfer metadata br.com.p2d.ehr:portal:1.15-SNAPSHOT/maven-metadata.xml from p2didc1-snapshots (http://p2dnexus.touchtec.com.br/content/repositories/snapshots/): Access denied to: http://p2dnexus.touchtec.com.br/content/repositories/snapshots/br/com/p2d/ehr/portal/1.15-SNAPSHOT/maven-metadata.xml

	at org.sonatype.aether.impl.internal.DefaultDeployer.upload(DefaultDeployer.java:349)

	at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:218)

	at org.sonatype.aether.impl.internal.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:334)

	at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:136)

	... 30 more

Caused by: org.sonatype.aether.transfer.MetadataTransferException: Could not transfer metadata br.com.p2d.ehr:portal:1.15-SNAPSHOT/maven-metadata.xml from p2didc1-snapshots (http://p2dnexus.touchtec.com.br/content/repositories/snapshots/): Access denied to: http://p2dnexus.touchtec.com.br/content/repositories/snapshots/br/com/p2d/ehr/portal/1.15-SNAPSHOT/maven-metadata.xml

	at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$3.wrap(WagonRepositoryConnector.java:841)

	at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$3.wrap(WagonRepositoryConnector.java:832)

	at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.flush(WagonRepositoryConnector.java:602)

	at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.flush(WagonRepositoryConnector.java:596)

	at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.get(WagonRepositoryConnector.java:355)

	at org.sonatype.aether.impl.internal.DefaultDeployer.upload(DefaultDeployer.java:336)

	... 33 more

Caused by: org.apache.maven.wagon.authorization.AuthorizationException: Access denied to: http://p2dnexus.touchtec.com.br/content/repositories/snapshots/br/com/p2d/ehr/portal/1.15-SNAPSHOT/maven-metadata.xml

	at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:119)

	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.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:511)

	... 3 more

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy (default-deploy) on project portal-pom: Failed to retrieve remote metadata br.com.p2d.ehr:portal-pom:1.15-SNAPSHOT/maven-metadata.xml: Could not transfer metadata br.com.p2d.ehr:portal-pom:1.15-SNAPSHOT/maven-metadata.xml from p2didc1-snapshots (http://p2dnexus.touchtec.com.br/content/repositories/snapshots/): Access denied to: http://p2dnexus.touchtec.com.br/content/repositories/snapshots/br/com/p2d/ehr/portal-pom/1.15-SNAPSHOT/maven-metadata.xml

	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.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79)

	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:616)

	at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)

	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)

	at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:145)

	at hudson.maven.Maven3Builder.call(Maven3Builder.java:123)

	at hudson.maven.Maven3Builder.call(Maven3Builder.java:70)

	at hudson.remoting.UserRequest.perform(UserRequest.java:114)

	at hudson.remoting.UserRequest.perform(UserRequest.java:48)

	at hudson.remoting.Request$2.run(Request.java:270)

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)

	at java.util.concurrent.FutureTask.run(FutureTask.java:166)

	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:636)

Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to retrieve remote metadata br.com.p2d.ehr:portal-pom:1.15-SNAPSHOT/maven-metadata.xml: Could not transfer metadata br.com.p2d.ehr:portal-pom:1.15-SNAPSHOT/maven-metadata.xml from p2didc1-snapshots (http://p2dnexus.touchtec.com.br/content/repositories/snapshots/): Access denied to: http://p2dnexus.touchtec.com.br/content/repositories/snapshots/br/com/p2d/ehr/portal-pom/1.15-SNAPSHOT/maven-metadata.xml

	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)

	... 27 more

Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to retrieve remote metadata br.com.p2d.ehr:portal-pom:1.15-SNAPSHOT/maven-metadata.xml: Could not transfer metadata br.com.p2d.ehr:portal-pom:1.15-SNAPSHOT/maven-metadata.xml from p2didc1-snapshots (http://p2dnexus.touchtec.com.br/content/repositories/snapshots/): Access denied to: http://p2dnexus.touchtec.com.br/content/repositories/snapshots/br/com/p2d/ehr/portal-pom/1.15-SNAPSHOT/maven-metadata.xml

	at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:140)

	at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:148)

	... 29 more

Caused by: org.sonatype.aether.deployment.DeploymentException: Failed to retrieve remote metadata br.com.p2d.ehr:portal-pom:1.15-SNAPSHOT/maven-metadata.xml: Could not transfer metadata br.com.p2d.ehr:portal-pom:1.15-SNAPSHOT/maven-metadata.xml from p2didc1-snapshots (http://p2dnexus.touchtec.com.br/content/repositories/snapshots/): Access denied to: http://p2dnexus.touchtec.com.br/content/repositories/snapshots/br/com/p2d/ehr/portal-pom/1.15-SNAPSHOT/maven-metadata.xml

	at org.sonatype.aether.impl.internal.DefaultDeployer.upload(DefaultDeployer.java:349)

	at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:218)

	at org.sonatype.aether.impl.internal.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:334)

	at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:136)

	... 30 more

Caused by: org.sonatype.aether.transfer.MetadataTransferException: Could not transfer metadata br.com.p2d.ehr:portal-pom:1.15-SNAPSHOT/maven-metadata.xml from p2didc1-snapshots (http://p2dnexus.touchtec.com.br/content/repositories/snapshots/): Access denied to: http://p2dnexus.touchtec.com.br/content/repositories/snapshots/br/com/p2d/ehr/portal-pom/1.15-SNAPSHOT/maven-metadata.xml

	at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$3.wrap(WagonRepositoryConnector.java:841)

	at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$3.wrap(WagonRepositoryConnector.java:832)

	at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.flush(WagonRepositoryConnector.java:602)

	at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.flush(WagonRepositoryConnector.java:596)

	at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.get(WagonRepositoryConnector.java:355)

	at org.sonatype.aether.impl.internal.DefaultDeployer.upload(DefaultDeployer.java:336)

	... 33 more

Caused by: org.apache.maven.wagon.authorization.AuthorizationException: Access denied to: http://p2dnexus.touchtec.com.br/content/repositories/snapshots/br/com/p2d/ehr/portal-pom/1.15-SNAPSHOT/maven-metadata.xml

	at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:119)

	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.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:511)

	... 3 more

ERROR: Invalid Addresses

ERROR: Invalid Addresses

channel stopped

ERROR: Invalid Addresses
: Invalid Addresses;

  nested exception is:

	com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <luiz....@p2d.com.br>: Recipient address rejected: p2d.com.br

;

  nested exception is:

	com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <tony.l...@p2d.com.br>: Recipient address rejected: p2d.com.br

;

  nested exception is:

	com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <adenaldo.b...@p2d.com.br>: Recipient address rejected: p2d.com.br

;

  nested exception is:

	com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <adenaldo.b...@p2d.com.br>: Recipient address rejected: p2d.com.br

;

  nested exception is:

	com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <tony.l...@p2d.com.br>: Recipient address rejected: p2d.com.br

;

  nested exception is:

	com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <adenaldo.b...@p2d.com.br>: Recipient address rejected: p2d.com.br

;

  nested exception is:

	com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <adenaldo.b...@p2d.com.br>: Recipient address rejected: p2d.com.br


	at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1196)

	at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:584)

	at javax.mail.Transport.send0(Transport.java:169)

	at javax.mail.Transport.send(Transport.java:98)

	at hudson.tasks.MailSender.execute(MailSender.java:110)

	at hudson.maven.MavenModuleSetBuild$RunnerImpl.cleanUp(MavenModuleSetBuild.java:773)

	at hudson.model.Run.run(Run.java:1405)

	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:401)

	at hudson.model.ResourceController.execute(ResourceController.java:88)

	at hudson.model.Executor.run(Executor.java:145)

Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <luiz....@p2d.com.br>: Recipient address rejected: p2d.com.br

;

  nested exception is:

	com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <tony.l...@p2d.com.br>: Recipient address rejected: p2d.com.br

;

  nested exception is:

	com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <adenaldo.b...@p2d.com.br>: Recipient address rejected: p2d.com.br

;

  nested exception is:

	com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <adenaldo.b...@p2d.com.br>: Recipient address rejected: p2d.com.br


	at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1047)

	... 9 more

Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <tony.l...@p2d.com.br>: Recipient address rejected: p2d.com.br

;

  nested exception is:

	com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <adenaldo.b...@p2d.com.br>: Recipient address rejected: p2d.com.br


	... 10 more

Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <adenaldo.b...@p2d.com.br>: Recipient address rejected: p2d.com.br


	... 10 more

Finished: FAILURE



Then, observing the console output from build #1195, I noticed everything really went according to expected (output fragment below)


mojoSucceeded org.apache.maven.plugins:maven-install-plugin:2.3.1(default-install)

mojoStarted org.apache.maven.plugins:maven-deploy-plugin:2.5(default-deploy)

mojoSucceeded org.apache.maven.plugins:maven-deploy-plugin:2.5(default-deploy)

projectSucceeded br.com.p2d.ehr:portal:1.15-SNAPSHOT

[HUDSON] Archiving /home/p2d/.hudson/jobs/Portal/workspace/trunk/air/pom.xml to /home/p2d/.hudson/jobs/Portal/modules/br.com.p2d.ehr$portal/builds/2011-01-05_21-42-08/archive/br.com.p2d.ehr/portal/1.15-SNAPSHOT/pom.xml

[HUDSON] Archiving /home/p2d/.hudson/jobs/Portal/workspace/trunk/air/target/portal-1.15-SNAPSHOT.swf to /home/p2d/.hudson/jobs/Portal/modules/br.com.p2d.ehr$portal/builds/2011-01-05_21-42-08/archive/br.com.p2d.ehr/portal/1.15-20110105.234305-82/portal-1.15-SNAPSHOT.swf

[HUDSON] Archiving /home/p2d/.hudson/jobs/Portal/workspace/trunk/air/target/portal-1.15-SNAPSHOT-modules.jar to /home/p2d/.hudson/jobs/Portal/modules/br.com.p2d.ehr$portal/builds/2011-01-05_21-42-08/archive/br.com.p2d.ehr/portal/1.15-20110105.234305-82/portal-1.15-SNAPSHOT-modules.jar

[HUDSON] Archiving /home/p2d/.hudson/jobs/Portal/workspace/trunk/air/target/portal-1.15-SNAPSHOT-locale.jar to /home/p2d/.hudson/jobs/Portal/modules/br.com.p2d.ehr$portal/builds/2011-01-05_21-42-08/archive/br.com.p2d.ehr/portal/1.15-20110105.234305-82/portal-1.15-SNAPSHOT-locale.jar

[HUDSON] Archiving /home/p2d/.hudson/jobs/Portal/workspace/trunk/air/target/portal-1.15-SNAPSHOT-reports.jar to /home/p2d/.hudson/jobs/Portal/modules/br.com.p2d.ehr$portal/builds/2011-01-05_21-42-08/archive/br.com.p2d.ehr/portal/1.15-20110105.234305-82/portal-1.15-SNAPSHOT-reports.jar

[HUDSON] Archiving /home/p2d/.hudson/jobs/Portal/workspace/trunk/air/target/portal-1.15-SNAPSHOT-db.jar to /home/p2d/.hudson/jobs/Portal/modules/br.com.p2d.ehr$portal/builds/2011-01-05_21-42-08/archive/br.com.p2d.ehr/portal/1.15-20110105.234305-82/portal-1.15-SNAPSHOT-db.jar

[HUDSON] Archiving /home/p2d/.hudson/jobs/Portal/workspace/trunk/air/target/portal-1.15-SNAPSHOT-packager.jar to /home/p2d/.hudson/jobs/Portal/modules/br.com.p2d.ehr$portal/builds/2011-01-05_21-42-08/archive/br.com.p2d.ehr/portal/1.15-20110105.234305-82/portal-1.15-SNAPSHOT-packager.jar

projectStarted br.com.p2d.ehr:portal-pom:1.15-SNAPSHOT

mojoStarted org.apache.maven.plugins:maven-clean-plugin:2.4.1(default-clean)

mojoSucceeded org.apache.maven.plugins:maven-clean-plugin:2.4.1(default-clean)

mojoStarted org.apache.maven.plugins:maven-changes-plugin:2.3(validate-changes)

mojoSucceeded org.apache.maven.plugins:maven-changes-plugin:2.3(validate-changes)

mojoStarted org.apache.maven.plugins:maven-install-plugin:2.3.1(default-install)

[INFO] Installing /home/p2d/.hudson/jobs/Portal/workspace/trunk/pom.xml to /home/p2d/.m2/repository/br/com/p2d/ehr/portal-pom/1.15-SNAPSHOT/portal-pom-1.15-SNAPSHOT.pom

mojoSucceeded org.apache.maven.plugins:maven-install-plugin:2.3.1(default-install)

mojoStarted org.apache.maven.plugins:maven-deploy-plugin:2.5(default-deploy)

mojoSucceeded org.apache.maven.plugins:maven-deploy-plugin:2.5(default-deploy)

projectSucceeded br.com.p2d.ehr:portal-pom:1.15-SNAPSHOT

[HUDSON] Archiving /home/p2d/.hudson/jobs/Portal/workspace/trunk/pom.xml to /home/p2d/.hudson/jobs/Portal/modules/br.com.p2d.ehr$portal-pom/builds/2011-01-05_21-42-08/archive/br.com.p2d.ehr/portal-pom/1.15-SNAPSHOT/pom.xml

sessionEnded

maven builder waiting

channel stopped

Finished: SUCCESS

Any ideas?

Tony França

unread,
Jan 5, 2011, 11:24:12 AM1/5/11
to hudson...@googlegroups.com
Allright I have stabilized the bug now.

If I go to my local repository and delete some of the dependencies my project needs, then hudson will have maven download the dependencies again, and the deploy phase works afterwards.
If I do the build again, then the deploy phase fails.

In other words, deploy phase will not work if no dependency was downloaded before!

I hope that info makes it easy to fix! :-)

Thanks

Tony França

unread,
Jan 5, 2011, 12:37:11 PM1/5/11
to hudson...@googlegroups.com

gjdev

unread,
Oct 3, 2011, 6:31:48 AM10/3/11
to jenkins...@googlegroups.com
We have a comparable issue were deploy's fail sometimes because the wrong
credentials are used. When dependencies are downloaded, maven will use the
same credentials it used while downloading dependencies also for the deploy
(we use a nexus mirror that requires authentication), which is incorrect it
should use the credentials for the configured deployment repositories. I
suspect the reported case has a comparable cause. When the maven build did
not require a download (because all dependencies were already in the local
repo) the deploy will succeed, because in that case maven uses the right
credentials.

--
View this message in context: http://jenkins.361315.n4.nabble.com/Maven3-builds-won-t-authenticate-with-nexus-tp3175639p3867067.html
Sent from the Jenkins users mailing list archive at Nabble.com.

Reply all
Reply to author
Forward
0 new messages