Uploaded image for project: 'Maven Deploy Plugin'
  1. Maven Deploy Plugin
  2. MDEPLOY-84

NPE when deploy-file with generatePom=false

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4
    • 2.5
    • None
    • None
    • linux, jdk-1.6, maven 2.0.9

    Description

      Following the sample from http://maven.apache.org/plugins/maven-deploy-plugin/examples/disabling-generic-pom.html results in NPE:

      mvn deploy:deploy-file -Durl=file:///tmp -Dfile=/foo/bar/test.jar -DgroupId=your.groupId -DartifactId=your-artifactId -Dversion=1.0.0 -Dpackaging=jar -DgeneratePom=false
      [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: file:///tmp/your/groupId/your-artifactId/1.0.0/your-artifactId-1.0.0.jar
      0b uploaded
      [INFO] Retrieving previous metadata from remote-repository
      [INFO] Uploading repository metadata for: 'artifact your.groupId:your-artifactId'
      [INFO] ------------------------------------------------------------------------
      [ERROR] FATAL ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] null
      [INFO] ------------------------------------------------------------------------
      [INFO] Trace
      java.lang.NullPointerException
      at hidden.org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:919)
      at org.apache.maven.project.artifact.ProjectArtifactMetadata.storeInLocalRepository(ProjectArtifactMetadata.java:86)
      at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.deploy(DefaultRepositoryMetadataManager.java:437)
      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:451)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:514)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:227)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
      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:376)
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 1 second
      [INFO] Finished at: Thu Sep 18 14:11:05 CEST 2008
      [INFO] Final Memory: 24M/64M
      [INFO] ------------------------------------------------------------------------

      Attachments

        Issue Links

          Activity

            People

              bentmann Benjamin Bentmann
              felixk Felix Knecht
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: