Robert Scholte closed Bug MEXEC-115 as Not A Bug

This won't work for any Maven-plugin: there's no such thing as "run by executionId". If you call the plugin directly (i.e. exec:exec) only the general configuration is used (which execution.configuration block should otherwise be used?).
What you need to do is specify a phase for every execution, since exec:exec is not bound to a default phase.

<plugin>
 <groupId>org.codehaus.mojo</groupId>
 <artifactId>exec-maven-plugin</artifactId>
 <executions>
  <execution>
   <phase>package</phase> <!-- Add this line -->
   <goals>
    <goal>exec</goal>
   </goals>
   <configuration>
    <executable>java</executable>
    <arguments>
     <argument>-classpath</argument>
     <classpath/>
     <argument>com.mycompany.app.App</argument>
    </arguments>
   </configuration>
  </execution>
 </executions> 
</plugin>

From now on mvn package is all you have to run.

More details: http://maven.apache.org/pom.html#Plugins

Change By: Robert Scholte (25/Jan/13 7:34 AM)
Resolution: Not A Bug
Assignee: Robert Scholte
Status: Open Closed
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
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

Reply via email to