[ http://jira.codehaus.org/browse/MNG-3888?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=156377#action_156377 ]
Benjamin Bentmann commented on MNG-3888: ---------------------------------------- One needs to be a little more specific about which use case is considered. For the {{exec:exec}} goal, the snippet you gave is valid because internally its mojo parameter {{arguments}} is of type {{java.util.List}}. However for the {{exec:java}} mojo, this crashes as you reported because its mojo parameter is of type {{String[]}}. This is a subtle implementation detail. bq. [...] compiler-plugin. Just for the record: The plugin you are using is called Exec Maven Plugin and is not related to the Maven Compiler Plugin ;-) > Configuration of array-typed mojo parameters with type-incompatible elements > causes ArrayStoreException > ------------------------------------------------------------------------------------------------------- > > Key: MNG-3888 > URL: http://jira.codehaus.org/browse/MNG-3888 > Project: Maven 2 > Issue Type: Bug > Affects Versions: 2.0.9, 2.1.0-M1, 3.0-alpha-1 > Environment: Maven 2.0.9, Java 1.6 > Reporter: Trevor Harmon > Priority: Minor > Attachments: pom.xml > > > Running "mvn exec:java" on the attached POM causes an ArrayStoreException. -- 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