mojohaus / exec-maven-plugin

Exec Maven Plugin
https://www.mojohaus.org/exec-maven-plugin/
Apache License 2.0
166 stars 97 forks source link

The parameter 'executable' is missing or invalid #430

Open tsmock opened 4 months ago

tsmock commented 4 months ago

Source repo: https://github.com/tsmock/josm/tree/pom

Notes:

Steps to reproduce in cloned repo:

$ git clone https://github.com/tsmock/josm.git --branch pom
$ mvn clean test-compile
$ head -n3 target/classes/data/projection/custom-epsg
$ mvn clean compile exec:exec@epsg-touch exec:exec@epsg
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.2.0:exec (epsg-touch) on project josm-parent: The parameter 'executable' is missing or invalid -> [Help 1]
$ head -n3 target/classes/data/projection/custom-epsg

What I've looked at:

[1] POM XML ```xml org.codehaus.mojo exec-maven-plugin update-proj-reference-files test org.openstreetmap.josm.data.projection.ProjectionRefTest java update-proj-regression-files test org.openstreetmap.josm.data.projection.ProjectionRegressionTest java SyncEditorLayerIndex java -Djava.awt.headless=true -classpath ${scripts.src.dir}/SyncEditorLayerIndex.java ${basedir} test exec epsg-touch java -Djava.awt.headless=true -classpath ${basedir}/scripts/BuildProjectionDefinitions.java ${basedir} process-classes exec epsg java -Djava.awt.headless=true -classpath ${basedir}/scripts/BuildProjectionDefinitions.java ${basedir} generate-test-resources exec ```
slawekjaranowski commented 1 month ago

can you execute your example with:

mvn -X clean compile exec:exec@epsg-touch exec:exec@epsg

and provide output like:

[DEBUG] Configuring mojo execution 'org.codehaus.mojo:exec-maven-plugin:3.2.0:exec:epsg-touch' with basic configurator -->
...
[DEBUG]   (f) classpathScope = runtime
[DEBUG]   (f) executable = java
[DEBUG]   (f) forceJava = false
...