[
https://jira.codehaus.org/browse/MNG-4170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul Benedict updated MNG-4170:
-------------------------------
Fix Version/s: (was: Issues to be reviewed for 3.x)
> Reporting plugins configurations from many profiles merging does not work
> properly
> ----------------------------------------------------------------------------------
>
> Key: MNG-4170
> URL: https://jira.codehaus.org/browse/MNG-4170
> Project: Maven
> Issue Type: Bug
> Components: Profiles
> Affects Versions: 2.0.8, 2.0.9, 2.0.10, 2.1.0
> 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 was sent by Atlassian JIRA
(v6.1.6#6162)