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

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

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


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

        

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

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-3852?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann closed MNG-3852.
----------------------------------

         Assignee: Benjamin Bentmann
       Resolution: Fixed
    Fix Version/s:     (was: 3.0-alpha-3)
                   3.0-alpha-1

Fixed in [r720432|http://svn.eu.apache.org/viewvc?view=rev&revision=720432] by updating to Plexus 1.0-beta-2.

> [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
>            Assignee: Benjamin Bentmann
>             Fix For: 3.0-alpha-1
>
>
> 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

        

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

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ 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