jira-importer commented on issue #593:
URL: 
https://github.com/apache/maven-deploy-plugin/issues/593#issuecomment-2771593055

   **[Arik 
Kfir](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=arikkfir)** 
commented
   
   Note that deploy:deploy-file spews an exceptions while deploying an artifact 
with the -Dclassifier=sources parameter:
   
   **mvn deploy:deploy-file -Dpackaging=jar -DrepositoryId=<keyBasedRepoId> 
-Durl=scp://myserver.net/var/www/maven -DgroupId=XXX -DartifactId=YYY 
-Dversion=ZZZ -Dclassifier=sources -DgeneratePom=false -Dfile=FFF**
   
   ```
   [INFO] Scanning for projects...
   [INFO] Searching repository for plugin with prefix: 'deploy'.
   [INFO] 
----------------------------------------------------------------------------
   [INFO] Building Maven Default Project
   [INFO]    task-segment: [deploy:deploy-file] (aggregator-style)
   [INFO] 
----------------------------------------------------------------------------
   [INFO] [deploy:deploy-file]
   Uploading: 
scp://codeshine.net/var/www/maven/de/odysseus/juel/juel-impl/2.1.0/juel-impl-2.1.0-sources.jar
   60K uploaded
   [INFO] Retrieving previous metadata from codeshine
   [INFO] 
------------------------------------------------------------------------
   [ERROR] FATAL ERROR
   [INFO] 
------------------------------------------------------------------------
   [INFO] null
   [INFO] 
------------------------------------------------------------------------
   [INFO] Trace
   *java.lang.NullPointerException
           at 
hidden.org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:842)
           at 
org.apache.maven.project.artifact.ProjectArtifactMetadata.storeInLocalRepository(ProjectArtifactMetadata.java:86)
           at 
org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.deploy(DefaultRepositoryMetadataManager.java:
 428)
           at 
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:86)
           at 
org.apache.maven.plugin.deploy.DeployFileMojo.execute(DeployFileMojo.java:239)
           at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
           at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
           at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
           at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
           at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
           at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:224)
           at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
           at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
           at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
           at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at 
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
           at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
           at 
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
           at org.codehaus.classworlds.Launcher.main(Launcher.java:375)*
   [INFO] 
------------------------------------------------------------------------
   [INFO] Total time: 42 seconds
   [INFO] Finished at: Tue Nov 27 12:00:53 IST 2007
   [INFO] Final Memory: 3M/6M
   [INFO] 
------------------------------------------------------------------------
   ```
   
   **The actual deployment of the artifact to the remote server succeeds - it 
fails when (apparently) trying to install the file as well.**
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to