[
https://issues.apache.org/jira/browse/MARTIFACT-79?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17897443#comment-17897443
]
Christopher Ng edited comment on MARTIFACT-79 at 11/12/24 10:00 AM:
--------------------------------------------------------------------
Should note that when resuming a build the 'aggregated' buildinfo is only going
to include those artifacts actually built in the session because it uses
{{{}session.projects{}}}. It could be changed to use {{session.allProjects}} as
well.
was (Author: facboy):
Should note that when resuming a build the 'aggregated' buildinfo is only going
to include those artifacts actually built in the session because it uses
`session.projects`. It could be changed to use `session.allProjects` as well.
> 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)