You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2020/12/15 17:02:00 UTC
[jira] [Comment Edited] (MPIR-400) mvn -pl . clean site site:stage
fails when extensions are part of pom.xml
[ https://issues.apache.org/jira/browse/MPIR-400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17249794#comment-17249794 ]
Michael Osipov edited comment on MPIR-400 at 12/15/20, 5:01 PM:
----------------------------------------------------------------
Are you certain that you don't mix up aggregation with inheritance? Your sample id inheritance, not aggregation.
was (Author: michael-o):
Are you certain that you don't mix up aggregation with inheritance?
> mvn -pl . clean site site:stage fails when extensions are part of pom.xml
> -------------------------------------------------------------------------
>
> Key: MPIR-400
> URL: https://issues.apache.org/jira/browse/MPIR-400
> Project: Maven Project Info Reports Plugin
> Issue Type: Bug
> Components: index, modules
> Affects Versions: 3.0.0, 3.1.0, 3.1.1
> Environment: Apache Maven Version: 3.6.3
> Java version: 1.8.0_251, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk1.8.0_251\jre
> OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
> Reporter: Marwa Khabbaz
> Priority: Major
> Attachments: error_log.txt, pom_aggregator.xml, pom_sub-module.xml
>
>
> I have a project consisting of an aggregator and a submodule, which inherits directly from the aggregator. I have the following scenarios:
> * When I execute {{mvn clean site site:stage}} (without {{-pl .}}), the build is successful.
> * When I leave out the extensions out of the {{pom.xml}}-file of my aggregator and execute the {{mvn -pl . clean site site:stage}}, the build is successful.
> * When I put in extensions to the {{pom.xml}}-file of my aggregator but leave out the reports for {{index}} and {{modules}} (the only sites that refer to my submodule) by explicitly defining the report set in the {{pom.xml}}-file of the aggregator, the build is successful.
> * As soon as I put extensions into the {{pom.xml}}-file of my aggregator and leave in the reports for {{index}} and {{modules}}, then execute the build {{mvn -pl . clean site site:stage}} for the aggregator, the build fails with a {{NullPointerException}}.
> I attached the error log of the last scenario and the {{pom.xml}} of the aggregator and its submodule to this ticket. This has never been a problem until the release of {{maven-project-info-reports-plugin 3.0.0}}.
> Hopefully I managed to understandably describe my issue.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)