Issue Details (XML | Word | Printable)

Key: MNG-3271
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Grégory Joseph
Votes: 1
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Maven 2

<excludeDefaults> does not seem to work

Created: 09/Jun/06 01:30 PM   Updated: 26/Oct/08 10:23 AM
Component/s: POM
Affects Version/s: 2.0.7
Fix Version/s: 2.0.x

Time Tracking:
Not Specified

Issue Links:
Related
 


 Description  « Hide
As far as I understand, adding
<excludeDefaults>true</excludeDefaults>
in the <reporting> section of my pom should have the same effect as
<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-project-info-reports-plugin</artifactId>
                <reportSets>
                    <reportSet></reportSet>
                </reportSets>
            </plugin>

... but only that latter had any effect.

(I was mainly trying to disable the dependencies report, because I have many dependencies build with m1 which don't have a proper m2 pom)



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Grégory Joseph added a comment - 09/Jun/06 01:39 PM
(using site-plugin-2.0-beta-4)

Brett Porter added a comment - 09/Jun/06 08:03 PM
is it because of inheritence (MNG-1999)?

This works for me.


Grégory Joseph added a comment - 09/Jun/06 08:07 PM
Nope, this project is standalone, no inheritence involved.
I could attach my complete pom next monday, but I'm not sure how much it'd help since many dependencies will not be available outside of my company's repo..

Jean Deruelle added a comment - 12/Jun/06 05:20 AM
move to maven-2-0-4 (it's using site-plugin-2.0-beta-5). Looks like the inital problem you had(problems when generating the dependencies report due to m1 dependencies) is fixed.

Max Bowsher added a comment - 02/Jul/07 10:47 AM
Does <reporting><excludeDefaults>true</excludeDefaults></reporting> work at all?

If I run "mvn help:effective-pom" on a project containing it, it is not present in the effective-pom output, suggesting that it never got parsed properly in the first place.


Milos Kleint added a comment - 22/Jul/07 01:48 PM
doesn't work for me either. using maven 2.0.7 and whatever the current latest site plugin is.

Dennis Lundberg added a comment - 02/Sep/07 09:02 AM
I tried this and here are my findings:
  • <excludeDefaults> only removes the "Project Information" menu from the site, but still creates the reports
  • <reportSets> does not create the reports and does not add the "Project Information" menu to the site

These tests were done using Maven 2.0.7 and maven-site-plugin 2.0-beta-4.


Dennis Lundberg added a comment - 04/Nov/07 06:22 AM
Seems to have something to do with reading the pom.

Benjamin Bentmann added a comment - 12/Oct/08 11:15 AM
This is broken as of Maven 2.0.3, probably due to the change for MNG-1999. The excludeDefaults flag does not properly survive the inheritance, core IT has been created to reproduce this.