You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2008/11/09 19:55:13 UTC

[jira] Created: (MNG-3827) Order of collection-valued plugin configuration parameters is reversed

Order of collection-valued plugin configuration parameters is reversed
----------------------------------------------------------------------

                 Key: MNG-3827
                 URL: http://jira.codehaus.org/browse/MNG-3827
             Project: Maven 2
          Issue Type: Bug
          Components: Plugins and Lifecycle, POM
    Affects Versions: 3.0-alpha-1
            Reporter: Benjamin Bentmann


For instance, the POM snippet
{code:xml}
<plugin>
  <artifactId>maven-antrun-plugin</artifactId>
  <version>1.3</version>
  <configuration>
    <tasks>
      <echo>one</echo>
      <echo>two</echo>
      <echo>three</echo>
    </tasks>
  </configuration>
</plugin>
{code}
yields the output
{noformat}
[INFO] [antrun:run]
[INFO] Executing tasks
     [echo] three
     [echo] two
     [echo] one
{noformat}

-- 
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-3827) Order of collection-valued plugin configuration parameters is reversed

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

Benjamin Bentmann updated MNG-3827:
-----------------------------------

    Attachment: pom-bad.xml
                pom-good.xml

This is funny: {{pom-bad.xml}} fails as described, i.e. both the console output and {{help:effective-pom}} show the ordering is wrong. But as soon as I flip over to the IT plugin, {{help:effective-pom}} shows the correct ordering....

> Order of collection-valued plugin configuration parameters is reversed
> ----------------------------------------------------------------------
>
>                 Key: MNG-3827
>                 URL: http://jira.codehaus.org/browse/MNG-3827
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Plugins and Lifecycle, POM
>    Affects Versions: 3.0-alpha-1
>            Reporter: Benjamin Bentmann
>         Attachments: pom-bad.xml, pom-good.xml
>
>
> For instance, the POM snippet
> {code:xml}
> <plugin>
>   <artifactId>maven-antrun-plugin</artifactId>
>   <version>1.3</version>
>   <configuration>
>     <tasks>
>       <echo>one</echo>
>       <echo>two</echo>
>       <echo>three</echo>
>     </tasks>
>   </configuration>
> </plugin>
> {code}
> yields the output
> {noformat}
> [INFO] [antrun:run]
> [INFO] Executing tasks
>      [echo] three
>      [echo] two
>      [echo] one
> {noformat}

-- 
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-3827) [regression] Order of collection-valued plugin configuration parameters is reversed

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

Benjamin Bentmann updated MNG-3827:
-----------------------------------

    Summary: [regression] Order of collection-valued plugin configuration parameters is reversed  (was: Order of collection-valued plugin configuration parameters is reversed)

> [regression] Order of collection-valued plugin configuration parameters is reversed
> -----------------------------------------------------------------------------------
>
>                 Key: MNG-3827
>                 URL: http://jira.codehaus.org/browse/MNG-3827
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Plugins and Lifecycle, POM
>    Affects Versions: 3.0-alpha-1
>            Reporter: Benjamin Bentmann
>             Fix For: 3.0-alpha-1
>
>         Attachments: pom-bad.xml, pom-good.xml
>
>
> For instance, the POM snippet
> {code:xml}
> <plugin>
>   <artifactId>maven-antrun-plugin</artifactId>
>   <version>1.3</version>
>   <configuration>
>     <tasks>
>       <echo>one</echo>
>       <echo>two</echo>
>       <echo>three</echo>
>     </tasks>
>   </configuration>
> </plugin>
> {code}
> yields the output
> {noformat}
> [INFO] [antrun:run]
> [INFO] Executing tasks
>      [echo] three
>      [echo] two
>      [echo] one
> {noformat}

-- 
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] Issue Comment Edited: (MNG-3827) Order of collection-valued plugin configuration parameters is reversed

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3827?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=153605#action_153605 ] 

bentmann edited comment on MNG-3827 at 11/9/08 2:11 PM:
-----------------------------------------------------------------

This is funny: {{pom-bad.xml}} fails as described, i.e. both the console output and {{help:effective-pom}} show the ordering is wrong. But as soon as I flip over to the IT plugin in {{pom-good.xml}}, {{help:effective-pom}} shows the correct ordering....

      was (Author: bentmann):
    This is funny: {{pom-bad.xml}} fails as described, i.e. both the console output and {{help:effective-pom}} show the ordering is wrong. But as soon as I flip over to the IT plugin, {{help:effective-pom}} shows the correct ordering....
  
> Order of collection-valued plugin configuration parameters is reversed
> ----------------------------------------------------------------------
>
>                 Key: MNG-3827
>                 URL: http://jira.codehaus.org/browse/MNG-3827
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Plugins and Lifecycle, POM
>    Affects Versions: 3.0-alpha-1
>            Reporter: Benjamin Bentmann
>         Attachments: pom-bad.xml, pom-good.xml
>
>
> For instance, the POM snippet
> {code:xml}
> <plugin>
>   <artifactId>maven-antrun-plugin</artifactId>
>   <version>1.3</version>
>   <configuration>
>     <tasks>
>       <echo>one</echo>
>       <echo>two</echo>
>       <echo>three</echo>
>     </tasks>
>   </configuration>
> </plugin>
> {code}
> yields the output
> {noformat}
> [INFO] [antrun:run]
> [INFO] Executing tasks
>      [echo] three
>      [echo] two
>      [echo] one
> {noformat}

-- 
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] Commented: (MNG-3827) Order of collection-valued plugin configuration parameters is reversed

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3827?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=153607#action_153607 ] 

Benjamin Bentmann commented on MNG-3827:
----------------------------------------

OK, it requires the usage of {{<pluginManagement>}} to exhibit the bug which applies to AntRun which is part of the super POM. IT is up.

> Order of collection-valued plugin configuration parameters is reversed
> ----------------------------------------------------------------------
>
>                 Key: MNG-3827
>                 URL: http://jira.codehaus.org/browse/MNG-3827
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Plugins and Lifecycle, POM
>    Affects Versions: 3.0-alpha-1
>            Reporter: Benjamin Bentmann
>         Attachments: pom-bad.xml, pom-good.xml
>
>
> For instance, the POM snippet
> {code:xml}
> <plugin>
>   <artifactId>maven-antrun-plugin</artifactId>
>   <version>1.3</version>
>   <configuration>
>     <tasks>
>       <echo>one</echo>
>       <echo>two</echo>
>       <echo>three</echo>
>     </tasks>
>   </configuration>
> </plugin>
> {code}
> yields the output
> {noformat}
> [INFO] [antrun:run]
> [INFO] Executing tasks
>      [echo] three
>      [echo] two
>      [echo] one
> {noformat}

-- 
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-3827) Order of collection-valued plugin configuration parameters is reversed

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

Brian Fox updated MNG-3827:
---------------------------

    Fix Version/s: 3.0-alpha-1

> Order of collection-valued plugin configuration parameters is reversed
> ----------------------------------------------------------------------
>
>                 Key: MNG-3827
>                 URL: http://jira.codehaus.org/browse/MNG-3827
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Plugins and Lifecycle, POM
>    Affects Versions: 3.0-alpha-1
>            Reporter: Benjamin Bentmann
>             Fix For: 3.0-alpha-1
>
>         Attachments: pom-bad.xml, pom-good.xml
>
>
> For instance, the POM snippet
> {code:xml}
> <plugin>
>   <artifactId>maven-antrun-plugin</artifactId>
>   <version>1.3</version>
>   <configuration>
>     <tasks>
>       <echo>one</echo>
>       <echo>two</echo>
>       <echo>three</echo>
>     </tasks>
>   </configuration>
> </plugin>
> {code}
> yields the output
> {noformat}
> [INFO] [antrun:run]
> [INFO] Executing tasks
>      [echo] three
>      [echo] two
>      [echo] one
> {noformat}

-- 
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-3827) Order of collection-valued plugin configuration parameters is reversed

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

Shane Isbell closed MNG-3827.
-----------------------------

    Resolution: Fixed

Fixed. The ordering of elements is reversed on ModelDataSource.join(..).  Need to do a reverse sort, prior to applying plugin management joins.

> Order of collection-valued plugin configuration parameters is reversed
> ----------------------------------------------------------------------
>
>                 Key: MNG-3827
>                 URL: http://jira.codehaus.org/browse/MNG-3827
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Plugins and Lifecycle, POM
>    Affects Versions: 3.0-alpha-1
>            Reporter: Benjamin Bentmann
>             Fix For: 3.0-alpha-1
>
>         Attachments: pom-bad.xml, pom-good.xml
>
>
> For instance, the POM snippet
> {code:xml}
> <plugin>
>   <artifactId>maven-antrun-plugin</artifactId>
>   <version>1.3</version>
>   <configuration>
>     <tasks>
>       <echo>one</echo>
>       <echo>two</echo>
>       <echo>three</echo>
>     </tasks>
>   </configuration>
> </plugin>
> {code}
> yields the output
> {noformat}
> [INFO] [antrun:run]
> [INFO] Executing tasks
>      [echo] three
>      [echo] two
>      [echo] one
> {noformat}

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