[
http://jira.codehaus.org/browse/MEXEC-32?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jerome Lacoste updated MEXEC-32:
--------------------------------
Component/s: java
> Misconfiguration of cmd line vs pom configuration should be reported better
> then just ArrayStoreException
> ---------------------------------------------------------------------------------------------------------
>
> Key: MEXEC-32
> URL: http://jira.codehaus.org/browse/MEXEC-32
> Project: Maven 2.x Exec Plugin
> Issue Type: Improvement
> Components: java
> Affects Versions: 1.1-beta-1
> Reporter: Geoffrey De Smet
> Priority: Minor
>
> I configured the exec plugin like this (notice that this could have been
> inherited from a parent pom):
> <configuration>
> <executable>${JAVA_HOME}/bin/java</executable>
> <arguments>
> <argument>-mx128m</argument>
> <argument>-classpath</argument>
> <classpath/>
> <argument>ggg.MyMain</argument>
> </arguments>
> </configuration>
> Then I ran the following mvn command:
> mvn exec:java -Dexec.mainClass="ggg.MyMain"
> And it reported some obscure exception like this:
> java.lang.ArrayStoreException
> at java.lang.System.arraycopy(Native Method)
> at java.util.Arrays.copyOf(Arrays.java:2763)
> ...
> It turns out it's because of misconfiguration: one shouldn't mix exec and
> java configs.
> An improvement would be either of these:
> - upon calling "exec:java", filter out all "exec:exec" configuration
> - give a better error message when the ArrayStoreException occurs
--
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
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email