You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Grzegorz Slowikowski (JIRA)" <ji...@codehaus.org> on 2009/05/22 10:28:42 UTC
[jira] Created: (MNG-4170) Reporting plugins configurations from
many profiles merging does not work properly
Reporting plugins configurations from many profiles merging does not work properly
----------------------------------------------------------------------------------
Key: MNG-4170
URL: http://jira.codehaus.org/browse/MNG-4170
Project: Maven 2
Issue Type: Bug
Components: Profiles
Affects Versions: 2.1.0, 2.0.10, 2.0.9, 2.0.8
Environment: Windows XP, Sun JDK 5 and 6
Reporter: Grzegorz Slowikowski
Attachments: testcase.jar
When configuring different properties of the same reporting plugin in two profiles (eg. "p1" and "p2") and invoking Maven with both profiles activated ("mvn -Pp1,p2") configurations are not beeing merged.
I cannot see a workaround.
Sample project attached. Configurations of compiler plugin ("build" section) are merged properly, but configurations of jxr plugin ("reporting" section) are not.
Profiles:
<profile>
<id>p1</id>
...
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
<version>2.1</version>
<configuration>
<inputEncoding>ISO-8859-2</inputEncoding>
</configuration>
</plugin>
</plugins>
</reporting>
</profile>
<profile>
<id>p2</id>
...
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
<version>2.1</version>
<configuration>
<outputEncoding>ISO-8859-2</outputEncoding>
</configuration>
</plugin>
</plugins>
</reporting>
</profile>
Invoke "mvn -Pp1,p2". Jxr plugin shoud have bothinputEncoding and outputEncoding parameters set to "ISO-8859-2", but only the second one is set.
Console output:
...
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-jxr-plugin:2.1:jxr' -->
...
[DEBUG] (f) inputEncoding = ISO-8859-1 <---- souuld be ISO-8859-2 !!!
...
[DEBUG] (f) outputEncoding = ISO-8859-2
...
[DEBUG] -- end configuration --
--
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