maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Curtis Rueden <ctrue...@wisc.edu>
Subject Re: NullPointerException in SSH wagon
Date Wed, 24 Apr 2013 16:54:08 GMT
Hi Mark,

> <artifactId>wagon-ssh-external</artifactId>

Rather than SSH External, did you try using the Maven SSH wagon [1]
instead? It uses JSch, which is pretty good now.

My impression is that the "Deployment of artifacts in an external SSH
command" guide [2] is rather obsolete now.

Regards,
Curtis

P.S. See also StackOverflow #14404990 [3].

[1] http://maven.apache.org/wagon/wagon-providers/wagon-ssh/
[2]
http://maven.apache.org/plugins/maven-deploy-plugin/examples/deploy-ssh-external.html
 [3] http://stackoverflow.com/a/14404990/1207769



On Wed, Apr 24, 2013 at 10:41 AM, <org.apache.maven.user@io7m.com> wrote:

> 'Lo.
>
> We're running into the following:
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-gpg-plugin:1.4:sign-and-deploy-file
> (default-cli) on project test: Error deploying attached artifact
> test-javadoc.jar: Failed to deploy artifacts: Could not transfer
> artifact com.example:test:jar:javadoc:1.0.0 from/to temp-repos
> (scpexe://core/tmp/repos): NullPointerException -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> execute goal
> org.apache.maven.plugins:maven-gpg-plugin:1.4:sign-and-deploy-file
> (default-cli) on project test: Error deploying attached artifact
> test-javadoc.jar: Failed to deploy artifacts: Could not transfer
> artifact com.example:test:jar:javadoc:1.0.0 from/to temp-repos
> (scpexe://core/tmp/repos): NullPointerException at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
> 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:320) at
> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at
> org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at
> org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at
> org.apache.maven.cli.MavenCli.main(MavenCli.java:141) 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: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: Error
> deploying attached artifact test-javadoc.jar: Failed to deploy
> artifacts: Could not transfer artifact
> com.example:test:jar:javadoc:1.0.0 from/to temp-repos
> (scpexe://core/tmp/repos): NullPointerException at
>
> org.apache.maven.plugin.gpg.SignAndDeployFileMojo.execute(SignAndDeployFileMojo.java:503)
> at
>
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
> ...
> 19 more Caused by:
> org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed
> to deploy artifacts: Could not transfer artifact
> com.example:test:jar:javadoc:1.0.0 from/to temp-repos
> (scpexe://core/tmp/repos): NullPointerException at
>
> org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:141)
> at
>
> org.apache.maven.plugin.gpg.SignAndDeployFileMojo.deploy(SignAndDeployFileMojo.java:688)
> at
> org.apache.maven.plugin.gpg.SignAndDeployFileMojo.execute(SignAndDeployFileMojo.java:499)
> ...
> 21 more Caused by: org.sonatype.aether.deployment.DeploymentException:
> Failed to deploy artifacts: Could not transfer artifact
> com.example:test:jar:javadoc:1.0.0 from/to temp-repos
> (scpexe://core/tmp/repos): NullPointerException at
>
> org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:280)
> at
>
> org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:211)
> at
>
> org.sonatype.aether.impl.internal.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:443)
> at
> org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:137)
> ...
> 23 more Caused by:
> org.sonatype.aether.transfer.ArtifactTransferException: Could not
> transfer artifact com.example:test:jar:javadoc:1.0.0 from/to temp-repos
> (scpexe://core/tmp/repos): NullPointerException at
>
> org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:951)
> at
>
> org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:941)
> at
>
> org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.run(WagonRepositoryConnector.java:837)
> at
>
> org.sonatype.aether.connector.wagon.WagonRepositoryConnector.put(WagonRepositoryConnector.java:467)
> at
> org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:274)
> ...
> 26 more Caused by: java.lang.NullPointerException at
>
> org.apache.maven.wagon.providers.ssh.external.ScpExternalWagon.executeScpCommand(ScpExternalWagon.java:275)
> at
>
> org.apache.maven.wagon.providers.ssh.external.ScpExternalWagon.put(ScpExternalWagon.java:403)
> at
> org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.run(WagonRepositoryConnector.java:811)
> ...
> 28 more
>
> I've managed to get it down to a simple case that reproduces the
> problem:
>
>   https://github.com/io7m/maven-wagon-bug-20130424
>
> To try it, edit run.sh and change the repository URI to the name of a
> server to which you have scp access. Then execute run.sh. The wagon
> plugin will crash when attempting to copy the javadoc.jar.
>
> A brief look at ScpExternalWagon.java:275 shows that the code at that
> line is:
>
>   cl.setWorkingDirectory(localFile.getParentFile().getAbsolutePath());
>
> Is this plugin still maintained? The bug tracker looks somewhat
> abandoned and the mailing lists appear to be gone (the only valid link
> is to this list).
>
> M
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message