Maven 2 & 3

Reporting inheritance does not work properly

Details

  • Complexity:
    Intermediate
  • Number of attachments :
    0

Description

I have a parent project and some subprojects. The parent project's pom has:

<reporting>
<excludeDefaults>true</excludeDefaults>
</reporting>

However, it does not get inherited to subprojects and so all default reports are generated for all subprojects.

I'm not sure if this is a bug or a lack of feature but I would be good to have it.

FYI, I'm speaking about here:
http://svn.apache.org/viewcvs.cgi/directory/trunks/apacheds/

Issue Links

Activity

Hide
Brett Porter added a comment -

fixed on trunk

Show
Brett Porter added a comment - fixed on trunk
Hide
Benjamin Bentmann added a comment -

I just added an IT for this that fails for the entire 2.x series.

About the changes Brett made in r379328: The super POM has a <reporting> section so wouldn't this ultimatively override all the excludeDefaults values in user POMs? I.e. maybe we need a three-valued logic for this boolean flag: (explicitly) true, (explicitly) false and null (inherited).

Show
Benjamin Bentmann added a comment - I just added an IT for this that fails for the entire 2.x series. About the changes Brett made in r379328: The super POM has a <reporting> section so wouldn't this ultimatively override all the excludeDefaults values in user POMs? I.e. maybe we need a three-valued logic for this boolean flag: (explicitly) true, (explicitly) false and null (inherited).
Hide
Brett Porter added a comment -

I can take a look

Show
Brett Porter added a comment - I can take a look
Hide
Brett Porter added a comment -

introduced 3 value logic to handle this correctly

Show
Brett Porter added a comment - introduced 3 value logic to handle this correctly
Hide
Herve Boutemy added a comment -

just found r705567 causes a problem when generating xsd descriptor:
java.lang.IllegalStateException: Non-association field of a non-primitive type 'Boolean' for 'excludeDefaultsValue'

boolean is recognized as xs:boolean type, but Boolean is not

created MODELLO-121 Jira issue to track this problem

Show
Herve Boutemy added a comment - just found r705567 causes a problem when generating xsd descriptor: java.lang.IllegalStateException: Non-association field of a non-primitive type 'Boolean' for 'excludeDefaultsValue' boolean is recognized as xs:boolean type, but Boolean is not created MODELLO-121 Jira issue to track this problem

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: