javafx-maven-plugin icon indicating copy to clipboard operation
javafx-maven-plugin copied to clipboard

javafx:run doesn't pick up ${revision} from parent POM

Open lilo-san opened this issue 3 years ago • 0 comments

As indicated, this leads to the task failing, replacing ${revision} for a constant like 1.0 all around the project fixed the issue.

I would appreciate some initial assessment. Thank you so much.

The interesting part of the output for me is this one where we can see that the ${revision} was not replaced:

[ERROR] Failed to execute goal on project general-artset-manager: Could not resolve dependencies for project build:general-artset-manager:jar:1.0: Failed to collect dependencies at build:general-model:jar:1.0: Failed to read artifact descriptor for build:general-model:jar:1.0: Failure to find build:build:pom:${revision} in file:////Users/juanf/Documents/source/intelligent-proxy/general-artset-manager/../build/target was cached in the local repository, resolution will not be reattempted until the update interval of dist has elapsed or updates are forced -> [Help 1]

Find also the complete output just in case I overlook something:

/Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home/bin/java -Dmaven.multiModuleProjectDirectory=/Users/juanf/Documents/source/intelligent-proxy/general-artset-manager -Dmaven.home=/Applications/IntelliJ IDEA CE.app/Contents/plugins/maven/lib/maven3 -Dclassworlds.conf=/Applications/IntelliJ IDEA CE.app/Contents/plugins/maven/lib/maven3/bin/m2.conf -Dmaven.ext.class.path=/Applications/IntelliJ IDEA CE.app/Contents/plugins/maven/lib/maven-event-listener.jar -javaagent:/Applications/IntelliJ IDEA CE.app/Contents/lib/idea_rt.jar=61790:/Applications/IntelliJ IDEA CE.app/Contents/bin -Dfile.encoding=UTF-8 -classpath /Applications/IntelliJ IDEA CE.app/Contents/plugins/maven/lib/maven3/boot/plexus-classworlds.license:/Applications/IntelliJ IDEA CE.app/Contents/plugins/maven/lib/maven3/boot/plexus-classworlds-2.6.0.jar org.codehaus.classworlds.Launcher -Didea.version=2021.1.3 org.openjfx:javafx-maven-plugin:0.0.8:run
[INFO] Scanning for projects...
[INFO] 
[INFO] --------------------< build:general-artset-manager >--------------------
[INFO] Building general-artset-manager 1.0
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] >>> javafx-maven-plugin:0.0.8:run (default-cli) > process-classes @ general-artset-manager >>>
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.430 s
[INFO] Finished at: 2022-02-16T01:46:12+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project general-artset-manager: Could not resolve dependencies for project build:general-artset-manager:jar:1.0: Failed to collect dependencies at build:general-model:jar:1.0: Failed to read artifact descriptor for build:general-model:jar:1.0: Failure to find build:build:pom:${revision} in file:////Users/juanf/Documents/source/intelligent-proxy/general-artset-manager/../build/target was cached in the local repository, resolution will not be reattempted until the update interval of dist has elapsed or updates are forced -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

Process finished with exit code 1

lilo-san avatar Feb 16 '22 00:02 lilo-san