[ 
http://jira.codehaus.org/browse/MPH-45?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=215059#action_215059
 ] 

Sander Verhagen commented on MPH-45:
------------------------------------

Well, 1,5 years later I have to dig deep into my memory. I think the following 
was the case.

Not just each of the projects would show its profiles, instead each of the 
projects would again show the profiles for each of the projects, which is 
definitely overkill.

This is the configuration that we're using:

        <plugin>
                <!-- Nicely show the active profiles during execution -->
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-help-plugin</artifactId>
                <version>2.0.2.2-WPS</version>
                <executions>
                        <execution>
                                <phase>validate</phase>
                                <goals>
                                        <goal>active-profiles</goal>
                                </goals>
                        </execution>
                </executions>
        </plugin>

Is this not what it is meant for? Not understanding why you say that.

> Active profiles repeated each time for all projects in reactor
> --------------------------------------------------------------
>
>                 Key: MPH-45
>                 URL: http://jira.codehaus.org/browse/MPH-45
>             Project: Maven 2.x Help Plugin
>          Issue Type: Improvement
>            Reporter: Sander Verhagen
>
> Running the active-profiles goal in a multi-module project (with subsequently 
> more than one project in the reactor) will all the active profiles for all 
> the projects in the reactor, repeating this for every single project that is 
> built, resulting in exhaustive output.
> Given that each showing of active profiles of a single project costs about 
> eight lines in output (including some whitelines; that's with only one 
> profile active), and us (over here) having 73 projects in the reactor, that's 
> (73-1)*(73-1)*8 output lines being wasted. That's a silly 41472 lines for a 
> simple "mvn install". Well, I suppose an even simpler "mvn clean" will do the 
> same ;-)
> And now I'm not even getting started about the fact that these 73 projects 
> all share the same profile that they get from their top parent project.
> Over here we have a custom maven-help-plugin version running that shows the 
> active profiles of every project in the reactor *only once*. I made the 
> assumption that profiles are not going to change during the coarse of a 
> single Maven execution.
> Is this a patch that we would be generally interested in?
> Or is this perhaps a bug in the <inheritence> behaviour of the plugin?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to