Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0-alpha-1
-
None
Description
It seems that the modelproperty sorting is a bit overzealous. Configure e.g. the exec-maven-plugin thusly:
<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>
With Maven 2.0.9 I get the expected output
[INFO] [exec:exec] [INFO] foo /home/espenhw/tmp/target/classes bar
While with 3.0-SNAPSHOT I get
[INFO] [exec:exec] [INFO] foo bar /home/espenhw/tmp/target/classes
This breaks the common use case of
<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>