You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2008/12/18 04:51:20 UTC

[jira] Updated: (MNG-3852) [regression] Collection entries of unequal types are reordered in plugin configuration

     [ http://jira.codehaus.org/browse/MNG-3852?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated MNG-3852:
------------------------------

    Fix Version/s: 3.0-alpha-3
          Summary: [regression] Collection entries of unequal types are reordered in plugin configuration  (was: Collection entries of unequal types are reordered in plugin configuration)

> [regression] Collection entries of unequal types are reordered in plugin configuration
> --------------------------------------------------------------------------------------
>
>                 Key: MNG-3852
>                 URL: http://jira.codehaus.org/browse/MNG-3852
>             Project: Maven 2
>          Issue Type: Bug
>          Components: POM
>    Affects Versions: 3.0-alpha-1
>            Reporter: Espen Wiborg
>             Fix For: 3.0-alpha-3
>
>
> It seems that the modelproperty sorting is a bit overzealous.  Configure e.g. the exec-maven-plugin thusly:
> {code:xml}
> <plugin>
>   <groupId>org.codehaus.mojo</groupId>
>   <artifactId>exec-maven-plugin</artifactId>
>   <configuration>
>     <executable>echo</executable>
>     <arguments>
>       <argument>foo</argument>
>       <classpath/>
>       <argument>bar</argument>
>     </arguments>
>   </configuration>
> </plugin>
> {code}
> With Maven 2.0.9 I get the expected output
> {noformat}
> [INFO] [exec:exec]
> [INFO] foo /home/espenhw/tmp/target/classes bar
> {noformat}
> While with 3.0-SNAPSHOT I get
> {noformat}
> [INFO] [exec:exec]
> [INFO] foo bar /home/espenhw/tmp/target/classes
> {noformat}
> This breaks the common use case of 
> {code:xml}
> <plugin>
>   <groupId>org.codehaus.mojo</groupId>
>   <artifactId>exec-maven-plugin</artifactId>
>   <configuration>
>     <executable>java</executable>
>     <arguments>
>       <argument>-cp</argument>
>       <classpath/>
>       <argument>my.app.MainClass</argument>
>     </arguments>
>   </configuration>
> </plugin>
> {code}

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