[ 
https://issues.apache.org/jira/browse/MPIR-400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17331631#comment-17331631
 ] 

Maarten Mulders commented on MPIR-400:
--------------------------------------

[~michael-o], I guess you're looking for 
[MNG-6118|https://issues.apache.org/jira/browse/MNG-6118].

[~mkv22], you can give it a try by downloading a recent snapshot of Maven and 
seeing if you can get the desired behaviour on your sample project.

> 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
>             Fix For: waiting-for-feedback, wontfix-candidate
>
>         Attachments: error_log.txt, example.zip, 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)

Reply via email to