Running Maven 'deploy' goal

Has anyone been able to get Team Server to run the deploy goal for a Maven 2 project successufully?

The way I have things set up the agent and team server are both running on a box that can do a mvn deploy from the command line successfully. I have a settings.xml file with the correct auth info in the ~/.m2 directory and the 'install' goal works exactly as I would expect it to.

Still I get the following error:

org.apache.maven.reactor.MavenExecutionException: Error deploying artifact: Auth
entication failed: Cannot connect. Reason: Auth cancel
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:162)
at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:68
9)
at jetbrains.maven.Maven21Launcher.executeMaven(Maven21Launcher.java:48)

at jetbrains.maven.Maven21Launcher.main(Maven21Launcher.java:69)
Caused by: org.apache.maven.lifecycle.LifecycleExecutionException: Error deployi
ng artifact: Authentication failed: Cannot connect. Reason: Auth cancel
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:559)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:475)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:454)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:306)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:273)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:150)
... 3 more
Caused by: org.apache.maven.plugin.MojoExecutionException: Error deploying artif
act: Authentication failed: Cannot connect. Reason: Auth cancel
at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:143
)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:412)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:534)
... 10 more
Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Error
deploying artifact: Authentication failed: Cannot connect. Reason: Auth cancel
at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(Def
aultArtifactDeployer.java:91)
at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:131
)
... 12 more
Caused by: org.apache.maven.wagon.TransferFailedException: Authentication failed
: Cannot connect. Reason: Auth cancel
at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(D
efaultWagonManager.java:211)
at org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(Def
aultWagonManager.java:109)
at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(Def
aultArtifactDeployer.java:77)
... 13 more
Caused by: org.apache.maven.wagon.authentication.AuthenticationException: Cannot
connect. Reason: Auth cancel
at org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection(
AbstractSshWagon.java:239)
at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:143)
at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(D
efaultWagonManager.java:178)
... 15 more
Caused by: com.jcraft.jsch.JSchException: Auth cancel
at com.jcraft.jsch.Session.connect(Unknown Source)
at com.jcraft.jsch.Session.connect(Unknown Source)
at org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection(
AbstractSshWagon.java:228)
... 17 more

1 comment
Comment actions Permalink

Hmm, looks like the agent ignores ~/.m2/settings.xml when launching Maven.
Will be fixed in the next EAP version

--
Best regards,
Eugene Zhuravlev
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"

"douglasjsellers" <douglas.sellers@gmail.com> wrote in message news:11529745.1150139661036.JavaMail.itn@is.intellij.net...

Has anyone been able to get Team Server to run the deploy goal for a Maven 2 project successufully?

>

The way I have things set up the agent and team server are both running on a box that can do a mvn deploy from the command line
successfully. I have a settings.xml file with the correct auth info in the ~/.m2 directory and the 'install' goal works exactly
as I would expect it to.

>

Still I get the following error:

>

org.apache.maven.reactor.MavenExecutionException: Error deploying artifact: Auth
entication failed: Cannot connect. Reason: Auth cancel
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:162)
at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:68
9)
at jetbrains.maven.Maven21Launcher.executeMaven(Maven21Launcher.java:48)

>

at jetbrains.maven.Maven21Launcher.main(Maven21Launcher.java:69)
Caused by: org.apache.maven.lifecycle.LifecycleExecutionException: Error deployi
ng artifact: Authentication failed: Cannot connect. Reason: Auth cancel
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:559)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:475)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:454)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:306)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:273)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:150)
... 3 more
Caused by: org.apache.maven.plugin.MojoExecutionException: Error deploying artif
act: Authentication failed: Cannot connect. Reason: Auth cancel
at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:143
)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:412)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:534)
... 10 more
Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Error
deploying artifact: Authentication failed: Cannot connect. Reason: Auth cancel
at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(Def
aultArtifactDeployer.java:91)
at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:131
)
... 12 more
Caused by: org.apache.maven.wagon.TransferFailedException: Authentication failed
: Cannot connect. Reason: Auth cancel
at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(D
efaultWagonManager.java:211)
at org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(Def
aultWagonManager.java:109)
at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(Def
aultArtifactDeployer.java:77)
... 13 more
Caused by: org.apache.maven.wagon.authentication.AuthenticationException: Cannot
connect. Reason: Auth cancel
at org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection(
AbstractSshWagon.java:239)
at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:143)
at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(D
efaultWagonManager.java:178)
... 15 more
Caused by: com.jcraft.jsch.JSchException: Auth cancel
at com.jcraft.jsch.Session.connect(Unknown Source)
at com.jcraft.jsch.Session.connect(Unknown Source)
at org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection(
AbstractSshWagon.java:228)
... 17 more



0

Please sign in to leave a comment.