You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2005/10/06 11:45:11 UTC

[jira] Updated: (MNG-1112) "reporting" element of a profile not merged when profile activated

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

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

    Fix Version: 2.0-beta-4

> "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
>      Fix For: 2.0-beta-4

>
>
> 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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org