Issue Type: Bug Bug
Affects Versions: 1.2.1
Assignee: Unassigned
Attachments: my-app.zip
Components: exec
Created: 25/Jan/13 4:46 AM
Description:

Plugin does not see the executable configured when the configuration is placed in plugin/executions/execution/configuration/executable location in the pom.xml file. Plugin works as expected when the configuration is placed in plugin/configuration/executable location the pom.xml file.

Can be simulated using the attached minimal example (my-app.zip).

Expected behavior:

$ mvn clean package exec:exec -Pworking

.
.
.
[INFO] Building jar: /tmp/x/my-app/target/my-app-1.0-SNAPSHOT.jar
[INFO] [exec:exec {execution: default-cli}]
Hello World!
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL

Erroneous behavior (Maven 2.2.1):

$ mvn clean package exec:exec -Perroneous

.
.
.
[INFO] Building jar: /tmp/x/my-app/target/my-app-1.0-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] One or more required plugin parameters are invalid/missing for 'exec:exec'

[0] Inside the definition for plugin 'exec-maven-plugin' specify the following:

<configuration>
  ...
  <executable>VALUE</executable>
</configuration>

-OR-

on the command line, specify: '-Dexec.executable=VALUE'

Erroneous behavior (Maven 3.0.4):

$ mvn3 clean package exec:exec -Perroneous

.
.
.
[INFO] --- exec-maven-plugin:1.2.1:exec (default-cli) @ my-app ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] 
.
.
.
------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default-cli) on project my-app: The parameters 'executable' for goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec are missing or invalid -> [Help 1]
Environment: Kubuntu 11.10, JDK 1.6.0_31, Maven 2.2.1 or 3.0.4 (does not matter)
Project: Maven 2.x Exec Plugin
Priority: Major Major
Reporter: Jiri Patera
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