[ http://jira.codehaus.org/browse/MNG-1112?page=all ]

Brett Porter updated MNG-1112:
------------------------------

    Remaining Estimate: 15 minutes
     Original Estimate: 900

> "reporting" element of a profile not merged when profile activated
> ------------------------------------------------------------------
>
>          Key: MNG-1112
>          URL: http://jira.codehaus.org/browse/MNG-1112
>      Project: Maven 2
>         Type: Bug
>   Components: maven-core
>     Versions: 2.0-beta-3
>  Environment: Win2k, Java 1.4.2_04, Maven 2.0 beta 3
>     Reporter: Fabrice BELLINGARD
>     Assignee: Brett Porter
>      Fix For: 2.0-beta-4

>
> Original Estimate: 15 minutes
>         Remaining: 15 minutes
>
> It seems that report plugins listed in a profile are not added to the list of 
> reports when the profile is activated. 
> That is, it seems that when a profile is activated, its "reporting" element 
> is not merged with the "reporting" element of the pom.
> For instance, try the following command with the pom given below: "m2 
> site:site -Denv=TEST"
> -> you will have the JXR report generated, but not the taglist. (and you can 
> check that the profile is activated though, because the "index.html" 
> generated page shows "Profile Activated" instead of "${foo}" in the 
> description)
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <project>
>       <modelVersion>4.0.0</modelVersion>
>       <groupId>test</groupId>
>       <artifactId>test</artifactId>
>       <packaging>jar</packaging>
>       <name>Test</name>
>       <version>1.0.0</version>
>       <description>Test project - ${foo}</description>
>       <reporting>
>             <plugins>
>                   <plugin>
>                         <groupId>org.codehaus.mojo</groupId>
>                         <artifactId>jxr-maven-plugin</artifactId>
>                         <version>2.0-beta-1</version>
>                   </plugin>
>             </plugins>
>       </reporting>
>       <profiles>
>             <profile>
>                   <id>test-site-profile</id>
>                   <activation>
>                         <property>
>                               <name>env</name>
>                               <value>TEST</value>
>                         </property>
>                   </activation>
>                   <reporting>
>                         <plugins>
>                               <plugin>
>                                     <groupId>org.codehaus.mojo</groupId>
>                                     
> <artifactId>taglist-maven-plugin</artifactId>
>                                     <version>2.0-beta-1</version>
>                               </plugin>
>                         </plugins>
>                   </reporting>
>                   <properties>
>                         <foo>Profile Activated</foo>
>                   </properties>
>             </profile>
>       </profiles>
> </project>

-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to