Maven Deploy Plugin
  1. Maven Deploy Plugin
  2. MDEPLOY-84

NPE when deploy-file with generatePom=false

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 2.5
    • Component/s: None
    • Labels:
      None
    • Environment:
      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] ------------------------------------------------------------------------

        Issue Links

          Activity

          Felix Knecht created issue -
          Hide
          Benjamin Bentmann added a comment -

          Fixed in r754784.

          Show
          Benjamin Bentmann added a comment - Fixed in r754784 .
          Benjamin Bentmann made changes -
          Field Original Value New Value
          Resolution Fixed [ 1 ]
          Fix Version/s 2.5 [ 14498 ]
          Assignee Benjamin Bentmann [ bentmann ]
          Status Open [ 1 ] Closed [ 6 ]
          Benjamin Bentmann made changes -
          Link This issue is duplicated by MDEPLOY-81 [ MDEPLOY-81 ]
          Benjamin Bentmann made changes -
          Link This issue is duplicated by MDEPLOY-113 [ MDEPLOY-113 ]
          Robert Scholte made changes -
          Link This issue is duplicated by MDEPLOY-101 [ MDEPLOY-101 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 09:25:59 UTC 2015 [ 1428225959796 ]
          Mark Thomas made changes -
          Workflow jira [ 12719325 ] Default workflow, editable Closed status [ 12761529 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 23:00:37 UTC 2015 [ 1428274837609 ]
          Mark Thomas made changes -
          Workflow jira [ 12956809 ] Default workflow, editable Closed status [ 12993573 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Closed Closed
          178d 10h 21m 1 Benjamin Bentmann 15/Mar/09 17:37

            People

            • Assignee:
              Benjamin Bentmann
              Reporter:
              Felix Knecht
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development