Uploaded image for project: 'Maven Artifact Plugin'
  1. Maven Artifact Plugin
  2. MARTIFACT-79

Resuming `artifact:compare` in a multi-module project fails with NPE

    XMLWordPrintableJSON

Details

    Description

      artifact:compare throws an NPE if resumed in a multi-module project, e.g.

      $ mvn clean verify artifact:compare -rf :my-module
      ...
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-artifact-plugin:3.5.3:compare (default-cli) on project my-module: Execution default-cli of goal org.apache.maven.plugins:maven-artifact-plugin:3.5.3:compare failed: Cannot invoke "org.apache.maven.project.MavenProject.getBasedir()" because the return value of "org.apache.maven.plugins.artifact.buildinfo.CompareMojo.getExecutionRoot()" is null -> [Help 1]
      ... 

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              facboy Christopher Ng
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: