[
https://issues.apache.org/jira/browse/MARTIFACT-79?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated MARTIFACT-79:
------------------------------------
Labels: pull-request-available (was: )
> Resuming `artifact:compare` in a multi-module project fails with NPE
> --------------------------------------------------------------------
>
> Key: MARTIFACT-79
> URL: https://issues.apache.org/jira/browse/MARTIFACT-79
> Project: Maven Artifact Plugin
> Issue Type: Bug
> Components: artifact:compare
> Affects Versions: 3.5.3
> Reporter: Christopher Ng
> Priority: Major
> Labels: pull-request-available
>
> {{artifact:compare}} throws an NPE if resumed in a multi-module project, e.g.
> {code:java}
> $ 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]
> ... {code}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)