openjfx / javafx-maven-plugin

Maven plugin to run JavaFX 11+ applications
Apache License 2.0
369 stars 59 forks source link

javafx:jlink 0.0.8 runs java.exe and not jlink resulting in Unrecognized option: --output #148

Open Maurice-Betzel opened 2 years ago

Maurice-Betzel commented 2 years ago

Environment: Apache Maven 3.8.4 Maven home: C:\Users\betzm\Development\maven\apache-maven-3.8.4 Java version: 17.0.1, vendor: Eclipse Adoptium, runtime: C:\Program Files\Eclipse Adoptium\jdk-17.0.1.12-hotspot Default locale: en_GB, platform encoding: UTF-8 OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

"C:\Program Files\Eclipse Adoptium\jdk-17.0.1.12-hotspot\bin\java.exe" -Dmaven.multiModuleProjectDirectory=C:\Dev\eu.abeel.application.fx.augmented.customs.data.capture -Dmaven.home=C:\Users\betzm\Development\maven\apache-maven-3.8.4 -Dclassworlds.conf=C:\Users\betzm\Development\maven\apache-maven-3.8.4\bin\m2.conf "-Dmaven.ext.class.path=C:\Program Files\JetBrains\IntelliJ IDEA 2021.2\plugins\maven\lib\maven-event-listener.jar" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2021.2\lib\idea_rt.jar=50836:C:\Program Files\JetBrains\IntelliJ IDEA 2021.2\bin" -Dfile.encoding=UTF-8 -classpath C:\Users\betzm\Development\maven\apache-maven-3.8.4\boot\plexus-classworlds-2.6.0.jar;C:\Users\betzm\Development\maven\apache-maven-3.8.4\boot\plexus-classworlds.license org.codehaus.classworlds.Launcher -Didea.version=2021.3.1 org.openjfx:javafx-maven-plugin:0.0.8:jlink -P "!archiva snapshots proxy,!archiva internal proxy" Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 [INFO] Scanning for projects... [INFO] [INFO] -----< eu.abeel.application.fx.augmented.customs.data.capture:gui >----- [INFO] Building eu.abeel.application.fx.augmented.customs.data.capture.gui 1.0.0 [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] >>> javafx-maven-plugin:0.0.8:jlink (default-cli) > process-classes @ gui >>> [INFO] [INFO] --- maven-enforcer-plugin:3.0.0:enforce (enforce-maven) @ gui --- [INFO] [INFO] --- maven-toolchains-plugin:3.0.0:toolchain (default) @ gui --- [INFO] Required toolchain: jdk [ vendor='OpenJDK' version='17' ] [INFO] Found matching toolchain for type jdk: JDK[C:\Program Files\Eclipse Adoptium\jdk-17.0.1.12-hotspot] [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ gui --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 4 resources [INFO] [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ gui --- [INFO] Toolchain in maven-compiler-plugin: JDK[C:\Program Files\Eclipse Adoptium\jdk-17.0.1.12-hotspot] [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] <<< javafx-maven-plugin:0.0.8:jlink (default-cli) < process-classes @ gui <<< [INFO] [INFO] [INFO] --- javafx-maven-plugin:0.0.8:jlink (default-cli) @ gui --- [INFO] Toolchain in javafx-maven-plugin JDK[C:\Program Files\Eclipse Adoptium\jdk-17.0.1.12-hotspot] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 Unrecognized option: --output Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. [ERROR] Command execution failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) at org.apache.commons.exec.DefaultExecutor.executeInternal (DefaultExecutor.java:404) at org.apache.commons.exec.DefaultExecutor.execute (DefaultExecutor.java:166)

With debug on:

[DEBUG] image output: C:\Dev\eu.abeel.application.fx.augmented.customs.data.capture\gui\target\acdc [DEBUG] Executing command line: [C:\Program Files\Eclipse Adoptium\jdk-17.0.1.12-hotspot\bin\java.exe, --module-path, C:\Dev\eu.abeel.application.fx.augmented.customs.data.capture\gui\target\classes;C:\Users\betzm.m2\repository\com\dlsc\formsfx\formsfx-core\11.4.2\formsfx-core-11.4.2.jar;C:\Users\betzm.m2\repository\eu\abeel\application\fx\augmented\customs\data\capture\jcv\1.0.0\jcv-1.0.0.jar;C:\Users\betzm.m2\repository\eu\abeel\application\fx\augmented\customs\data\capture\jpa\1.0.0\jpa-1.0.0.jar;C:\Users\betzm.m2\repository\eu\abeel\application\fx\augmented\customs\data\capture\ocr\1.0.0\ocr-1.0.0.jar;C:\Users\betzm.m2\repository\javax\persistence\javax.persistence-api\2.2\javax.persistence-api-2.2.jar;C:\Users\betzm.m2\repository\org\apache\tomcat\tomcat-dbcp\10.1.0-M8\tomcat-dbcp-10.1.0-M8.jar;C:\Users\betzm.m2\repository\org\apache\tomcat\tomcat-juli\10.1.0-M8\tomcat-juli-10.1.0-M8.jar;C:\Users\betzm.m2\repository\org\bytedeco\artoolkitplus\2.3.1-1.5.6\artoolkitplus-2.3.1-1.5.6.jar;C:\Users\betzm.m2\repository\org\bytedeco\ffmpeg\4.4-1.5.6\ffmpeg-4.4-1.5.6.jar;C:\Users\betzm.m2\repository\org\bytedeco\flandmark\1.07-1.5.6\flandmark-1.07-1.5.6.jar;C:\Users\betzm.m2\repository\org\bytedeco\flycapture\2.13.3.31-1.5.6\flycapture-2.13.3.31-1.5.6.jar;C:\Users\betzm.m2\repository\org\bytedeco\javacpp\1.5.6\javacpp-1.5.6-windows-x86_64.jar;C:\Users\betzm.m2\repository\org\bytedeco\javacpp\1.5.6\javacpp-1.5.6.jar;C:\Users\betzm.m2\repository\org\bytedeco\javacv\1.5.6\javacv-1.5.6.jar;C:\Users\betzm.m2\repository\org\bytedeco\leptonica\1.81.1-1.5.6\leptonica-1.81.1-1.5.6-windows-x86_64.jar;C:\Users\betzm.m2\repository\org\bytedeco\leptonica\1.81.1-1.5.6\leptonica-1.81.1-1.5.6.jar;C:\Users\betzm.m2\repository\org\bytedeco\libdc1394\2.2.6-1.5.6\libdc1394-2.2.6-1.5.6.jar;C:\Users\betzm.m2\repository\org\bytedeco\libfreenect\0.5.7-1.5.6\libfreenect-0.5.7-1.5.6.jar;C:\Users\betzm.m2\repository\org\bytedeco\libfreenect2\0.2.0-1.5.6\libfreenect2-0.2.0-1.5.6.jar;C:\Users\betzm.m2\repository\org\bytedeco\librealsense\1.12.4-1.5.6\librealsense-1.12.4-1.5.6.jar;C:\Users\betzm.m2\repository\org\bytedeco\librealsense2\2.44.0-1.5.6\librealsense2-2.44.0-1.5.6.jar;C:\Users\betzm.m2\repository\org\bytedeco\openblas\0.3.17-1.5.6\openblas-0.3.17-1.5.6-windows-x86_64.jar;C:\Users\betzm.m2\repository\org\bytedeco\openblas\0.3.17-1.5.6\openblas-0.3.17-1.5.6.jar;C:\Users\betzm.m2\repository\org\bytedeco\opencv\4.5.3-1.5.6\opencv-4.5.3-1.5.6-windows-x86_64.jar;C:\Users\betzm.m2\repository\org\bytedeco\opencv\4.5.3-1.5.6\opencv-4.5.3-1.5.6.jar;C:\Users\betzm.m2\repository\org\bytedeco\tesseract\4.1.1-1.5.6\tesseract-4.1.1-1.5.6-windows-x86_64.jar;C:\Users\betzm.m2\repository\org\bytedeco\tesseract\4.1.1-1.5.6\tesseract-4.1.1-1.5.6.jar;C:\Users\betzm.m2\repository\org\bytedeco\videoinput\0.200-1.5.6\videoinput-0.200-1.5.6.jar;C:\Users\betzm.m2\repository\org\controlsfx\controlsfx\11.1.1\controlsfx-11.1.1.jar;C:\Users\betzm.m2\repository\org\hibernate\hibernate-core\5.6.3.Final\hibernate-core-5.6.3.Final.jar;C:\Users\betzm.m2\repository\org\kordamp\ikonli\ikonli-core\12.2.0\ikonli-core-12.2.0.jar;C:\Users\betzm.m2\repository\org\kordamp\ikonli\ikonli-javafx\12.2.0\ikonli-javafx-12.2.0.jar;C:\Users\betzm.m2\repository\org\openjfx\javafx-base\17.0.1\javafx-base-17.0.1-win.jar;C:\Users\betzm.m2\repository\org\openjfx\javafx-controls\17.0.1\javafx-controls-17.0.1-win.jar;C:\Users\betzm.m2\repository\org\openjfx\javafx-fxml\17.0.1\javafx-fxml-17.0.1-win.jar;C:\Users\betzm.m2\repository\org\openjfx\javafx-graphics\17.0.1\javafx-graphics-17.0.1-win.jar;C:\Users\betzm.m2\repository\org\slf4j\slf4j-api\2.0.0-alpha5\slf4j-api-2.0.0-alpha5.jar;C:\Users\betzm.m2\repository\org\springframework\spring-beans\5.3.14\spring-beans-5.3.14.jar;C:\Users\betzm.m2\repository\org\springframework\spring-context\5.3.14\spring-context-5.3.14.jar;C:\Users\betzm.m2\repository\org\springframework\spring-core\5.3.14\spring-core-5.3.14.jar;C:\Users\betzm.m2\repository\org\springframework\spring-orm\5.3.14\spring-orm-5.3.14.jar;C:\Users\betzm.m2\repository\org\springframework\spring-tx\5.3.14\spring-tx-5.3.14.jar;C:\Users\betzm.m2\repository\antlr\antlr\2.7.7\antlr-2.7.7.jar;C:\Users\betzm.m2\repository\com\fasterxml\classmate\1.5.1\classmate-1.5.1.jar;C:\Users\betzm.m2\repository\com\sun\istack\istack-commons-runtime\3.0.7\istack-commons-runtime-3.0.7.jar;C:\Users\betzm.m2\repository\com\sun\xml\fastinfoset\FastInfoset\1.2.15\FastInfoset-1.2.15.jar;C:\Users\betzm.m2\repository\javax\activation\javax.activation-api\1.2.0\javax.activation-api-1.2.0.jar;C:\Users\betzm.m2\repository\javax\xml\bind\jaxb-api\2.3.1\jaxb-api-2.3.1.jar;C:\Users\betzm.m2\repository\net\bytebuddy\byte-buddy\1.11.20\byte-buddy-1.11.20.jar;C:\Users\betzm.m2\repository\net\sf\ehcache\ehcache\2.10.6\ehcache-2.10.6.jar;C:\Users\betzm.m2\repository\org\apache\lucene\lucene-analyzers-common\5.5.5\lucene-analyzers-common-5.5.5.jar;C:\Users\betzm.m2\repository\org\apache\lucene\lucene-core\5.5.5\lucene-core-5.5.5.jar;C:\Users\betzm.m2\repository\org\apache\lucene\lucene-facet\5.5.5\lucene-facet-5.5.5.jar;C:\Users\betzm.m2\repository\org\apache\lucene\lucene-misc\5.5.5\lucene-misc-5.5.5.jar;C:\Users\betzm.m2\repository\org\apache\lucene\lucene-queries\5.5.5\lucene-queries-5.5.5.jar;C:\Users\betzm.m2\repository\org\apache\lucene\lucene-queryparser\5.5.5\lucene-queryparser-5.5.5.jar;C:\Users\betzm.m2\repository\org\aspectj\aspectjrt\1.9.6\aspectjrt-1.9.6.jar;C:\Users\betzm.m2\repository\org\aspectj\aspectjweaver\1.9.7\aspectjweaver-1.9.7.jar;C:\Users\betzm.m2\repository\org\bytedeco\javacpp\1.5.6\javacpp-1.5.6-android-arm.jar;C:\Users\betzm.m2\repository\org\bytedeco\javacpp\1.5.6\javacpp-1.5.6-android-arm64.jar;C:\Users\betzm.m2\repository\org\bytedeco\javacpp\1.5.6\javacpp-1.5.6-android-x86.jar;C:\Users\betzm.m2\repository\org\bytedeco\javacpp\1.5.6\javacpp-1.5.6-android-x86_64.jar;C:\Users\betzm.m2\repository\org\bytedeco\javacpp\1.5.6\javacpp-1.5.6-ios-arm64.jar;C:\Users\betzm.m2\repository\org\bytedeco\javacpp\1.5.6\javacpp-1.5.6-ios-x86_64.jar;C:\Users\betzm.m2\repository\org\bytedeco\javacpp\1.5.6\javacpp-1.5.6-linux-arm64.jar;C:\Users\betzm.m2\repository\org\bytedeco\javacpp\1.5.6\javacpp-1.5.6-linux-armhf.jar;C:\Users\betzm.m2\repository\org\bytedeco\javacpp\1.5.6\javacpp-1.5.6-linux-ppc64le.jar;C:\Users\betzm.m2\repository\org\bytedeco\javacpp\1.5.6\javacpp-1.5.6-linux-x86.jar;C:\Users\betzm.m2\repository\org\bytedeco\javacpp\1.5.6\javacpp-1.5.6-linux-x86_64.jar;C:\Users\betzm.m2\repository\org\bytedeco\javacpp\1.5.6\javacpp-1.5.6-macosx-arm64.jar;C:\Users\betzm.m2\repository\org\bytedeco\javacpp\1.5.6\javacpp-1.5.6-macosx-x86_64.jar;C:\Users\betzm.m2\repository\org\bytedeco\javacpp\1.5.6\javacpp-1.5.6-windows-x86.jar;C:\Users\betzm.m2\repository\org\bytedeco\javacpp-platform\1.5.6\javacpp-platform-1.5.6.jar;C:\Users\betzm.m2\repository\org\bytedeco\leptonica\1.81.1-1.5.6\leptonica-1.81.1-1.5.6-android-arm.jar;C:\Users\betzm.m2\repository\org\bytedeco\leptonica\1.81.1-1.5.6\leptonica-1.81.1-1.5.6-android-arm64.jar;C:\Users\betzm.m2\repository\org\bytedeco\leptonica\1.81.1-1.5.6\leptonica-1.81.1-1.5.6-android-x86.jar;C:\Users\betzm.m2\repository\org\bytedeco\leptonica\1.81.1-1.5.6\leptonica-1.81.1-1.5.6-android-x86_64.jar;C:\Users\betzm.m2\repository\org\bytedeco\leptonica\1.81.1-1.5.6\leptonica-1.81.1-1.5.6-linux-arm64.jar;C:\Users\betzm.m2\repository\org\bytedeco\leptonica\1.81.1-1.5.6\leptonica-1.81.1-1.5.6-linux-armhf.jar;C:\Users\betzm.m2\repository\org\bytedeco\leptonica\1.81.1-1.5.6\leptonica-1.81.1-1.5.6-linux-ppc64le.jar;C:\Users\betzm.m2\repository\org\bytedeco\leptonica\1.81.1-1.5.6\leptonica-1.81.1-1.5.6-linux-x86.jar;C:\Users\betzm.m2\repository\org\bytedeco\leptonica\1.81.1-1.5.6\leptonica-1.81.1-1.5.6-linux-x86_64.jar;C:\Users\betzm.m2\repository\org\bytedeco\leptonica\1.81.1-1.5.6\leptonica-1.81.1-1.5.6-macosx-x86_64.jar;C:\Users\betzm.m2\repository\org\bytedeco\leptonica\1.81.1-1.5.6\leptonica-1.81.1-1.5.6-windows-x86.jar;C:\Users\betzm.m2\repository\org\bytedeco\leptonica-platform\1.81.1-1.5.6\leptonica-platform-1.81.1-1.5.6.jar;C:\Users\betzm.m2\repository\org\bytedeco\openblas\0.3.17-1.5.6\openblas-0.3.17-1.5.6-android-arm.jar;C:\Users\betzm.m2\repository\org\bytedeco\openblas\0.3.17-1.5.6\openblas-0.3.17-1.5.6-android-arm64.jar;C:\Users\betzm.m2\repository\org\bytedeco\openblas\0.3.17-1.5.6\openblas-0.3.17-1.5.6-android-x86.jar;C:\Users\betzm.m2\repository\org\bytedeco\openblas\0.3.17-1.5.6\openblas-0.3.17-1.5.6-android-x86_64.jar;C:\Users\betzm.m2\repository\org\bytedeco\openblas\0.3.17-1.5.6\openblas-0.3.17-1.5.6-ios-arm64.jar;C:\Users\betzm.m2\repository\org\bytedeco\openblas\0.3.17-1.5.6\openblas-0.3.17-1.5.6-ios-x86_64.jar;C:\Users\betzm.m2\repository\org\bytedeco\openblas\0.3.17-1.5.6\openblas-0.3.17-1.5.6-linux-arm64.jar;C:\Users\betzm.m2\repository\org\bytedeco\openblas\0.3.17-1.5.6\openblas-0.3.17-1.5.6-linux-armhf.jar;C:\Users\betzm.m2\repository\org\bytedeco\openblas\0.3.17-1.5.6\openblas-0.3.17-1.5.6-linux-ppc64le.jar;C:\Users\betzm.m2\repository\org\bytedeco\openblas\0.3.17-1.5.6\openblas-0.3.17-1.5.6-linux-x86.jar;C:\Users\betzm.m2\repository\org\bytedeco\openblas\0.3.17-1.5.6\openblas-0.3.17-1.5.6-linux-x86_64.jar;C:\Users\betzm.m2\repository\org\bytedeco\openblas\0.3.17-1.5.6\openblas-0.3.17-1.5.6-macosx-x86_64.jar;C:\Users\betzm.m2\repository\org\bytedeco\openblas\0.3.17-1.5.6\openblas-0.3.17-1.5.6-windows-x86.jar;C:\Users\betzm.m2\repository\org\bytedeco\openblas-platform\0.3.17-1.5.6\openblas-platform-0.3.17-1.5.6.jar;C:\Users\betzm.m2\repository\org\bytedeco\opencv\4.5.3-1.5.6\opencv-4.5.3-1.5.6-android-arm.jar;C:\Users\betzm.m2\repository\org\bytedeco\opencv\4.5.3-1.5.6\opencv-4.5.3-1.5.6-android-arm64.jar;C:\Users\betzm.m2\repository\org\bytedeco\opencv\4.5.3-1.5.6\opencv-4.5.3-1.5.6-android-x86.jar;C:\Users\betzm.m2\repository\org\bytedeco\opencv\4.5.3-1.5.6\opencv-4.5.3-1.5.6-android-x86_64.jar;C:\Users\betzm.m2\repository\org\bytedeco\opencv\4.5.3-1.5.6\opencv-4.5.3-1.5.6-ios-arm64.jar;C:\Users\betzm.m2\repository\org\bytedeco\opencv\4.5.3-1.5.6\opencv-4.5.3-1.5.6-ios-x86_64.jar;C:\Users\betzm.m2\repository\org\bytedeco\opencv\4.5.3-1.5.6\opencv-4.5.3-1.5.6-linux-arm64.jar;C:\Users\betzm.m2\repository\org\bytedeco\opencv\4.5.3-1.5.6\opencv-4.5.3-1.5.6-linux-armhf.jar;C:\Users\betzm.m2\repository\org\bytedeco\opencv\4.5.3-1.5.6\opencv-4.5.3-1.5.6-linux-ppc64le.jar;C:\Users\betzm.m2\repository\org\bytedeco\opencv\4.5.3-1.5.6\opencv-4.5.3-1.5.6-linux-x86.jar;C:\Users\betzm.m2\repository\org\bytedeco\opencv\4.5.3-1.5.6\opencv-4.5.3-1.5.6-linux-x86_64.jar;C:\Users\betzm.m2\repository\org\bytedeco\opencv\4.5.3-1.5.6\opencv-4.5.3-1.5.6-macosx-x86_64.jar;C:\Users\betzm.m2\repository\org\bytedeco\opencv\4.5.3-1.5.6\opencv-4.5.3-1.5.6-windows-x86.jar;C:\Users\betzm.m2\repository\org\bytedeco\opencv-platform\4.5.3-1.5.6\opencv-platform-4.5.3-1.5.6.jar;C:\Users\betzm.m2\repository\org\bytedeco\tesseract\4.1.1-1.5.6\tesseract-4.1.1-1.5.6-android-arm.jar;C:\Users\betzm.m2\repository\org\bytedeco\tesseract\4.1.1-1.5.6\tesseract-4.1.1-1.5.6-android-arm64.jar;C:\Users\betzm.m2\repository\org\bytedeco\tesseract\4.1.1-1.5.6\tesseract-4.1.1-1.5.6-android-x86.jar;C:\Users\betzm.m2\repository\org\bytedeco\tesseract\4.1.1-1.5.6\tesseract-4.1.1-1.5.6-android-x86_64.jar;C:\Users\betzm.m2\repository\org\bytedeco\tesseract\4.1.1-1.5.6\tesseract-4.1.1-1.5.6-linux-arm64.jar;C:\Users\betzm.m2\repository\org\bytedeco\tesseract\4.1.1-1.5.6\tesseract-4.1.1-1.5.6-linux-armhf.jar;C:\Users\betzm.m2\repository\org\bytedeco\tesseract\4.1.1-1.5.6\tesseract-4.1.1-1.5.6-linux-ppc64le.jar;C:\Users\betzm.m2\repository\org\bytedeco\tesseract\4.1.1-1.5.6\tesseract-4.1.1-1.5.6-linux-x86.jar;C:\Users\betzm.m2\repository\org\bytedeco\tesseract\4.1.1-1.5.6\tesseract-4.1.1-1.5.6-linux-x86_64.jar;C:\Users\betzm.m2\repository\org\bytedeco\tesseract\4.1.1-1.5.6\tesseract-4.1.1-1.5.6-macosx-x86_64.jar;C:\Users\betzm.m2\repository\org\bytedeco\tesseract\4.1.1-1.5.6\tesseract-4.1.1-1.5.6-windows-x86.jar;C:\Users\betzm.m2\repository\org\bytedeco\tesseract-platform\4.1.1-1.5.6\tesseract-platform-4.1.1-1.5.6.jar;C:\Users\betzm.m2\repository\org\dom4j\dom4j\2.1.3\dom4j-2.1.3.jar;C:\Users\betzm.m2\repository\org\glassfish\jaxb\jaxb-runtime\2.3.1\jaxb-runtime-2.3.1.jar;C:\Users\betzm.m2\repository\org\glassfish\jaxb\txw2\2.3.1\txw2-2.3.1.jar;C:\Users\betzm.m2\repository\org\hibernate\hibernate-ehcache\5.6.3.Final\hibernate-ehcache-5.6.3.Final.jar;C:\Users\betzm.m2\repository\org\hibernate\hibernate-envers\5.6.3.Final\hibernate-envers-5.6.3.Final.jar;C:\Users\betzm.m2\repository\org\hibernate\hibernate-search-engine\5.11.10.Final\hibernate-search-engine-5.11.10.Final.jar;C:\Users\betzm.m2\repository\org\hibernate\hibernate-search-orm\5.11.10.Final\hibernate-search-orm-5.11.10.Final.jar;C:\Users\betzm.m2\repository\org\hibernate\common\hibernate-commons-annotations\5.1.2.Final\hibernate-commons-annotations-5.1.2.Final.jar;C:\Users\betzm.m2\repository\org\jboss\jandex\2.2.3.Final\jandex-2.2.3.Final.jar;C:\Users\betzm.m2\repository\org\jboss\logging\jboss-logging\3.4.2.Final\jboss-logging-3.4.2.Final.jar;C:\Users\betzm.m2\repository\org\jboss\spec\javax\transaction\jboss-transaction-api_1.2_spec\1.1.1.Final\jboss-transaction-api_1.2_spec-1.1.1.Final.jar;C:\Users\betzm.m2\repository\org\jvnet\staxex\stax-ex\1.8\stax-ex-1.8.jar;C:\Users\betzm.m2\repository\org\mariadb\jdbc\mariadb-java-client\2.7.4\mariadb-java-client-2.7.4.jar;C:\Users\betzm.m2\repository\org\openjfx\javafx-base\17.0.1\javafx-base-17.0.1.jar;C:\Users\betzm.m2\repository\org\openjfx\javafx-controls\17.0.1\javafx-controls-17.0.1.jar;C:\Users\betzm.m2\repository\org\openjfx\javafx-fxml\17.0.1\javafx-fxml-17.0.1.jar;C:\Users\betzm.m2\repository\org\openjfx\javafx-graphics\17.0.1\javafx-graphics-17.0.1.jar;C:\Users\betzm.m2\repository\org\slf4j\slf4j-simple\2.0.0-alpha5\slf4j-simple-2.0.0-alpha5.jar;C:\Users\betzm.m2\repository\org\springframework\spring-aop\5.3.14\spring-aop-5.3.14.jar;C:\Users\betzm.m2\repository\org\springframework\spring-aspects\5.3.14\spring-aspects-5.3.14.jar;C:\Users\betzm.m2\repository\org\springframework\spring-expression\5.3.14\spring-expression-5.3.14.jar;C:\Users\betzm.m2\repository\org\springframework\spring-jcl\5.3.14\spring-jcl-5.3.14.jar;C:\Users\betzm.m2\repository\org\springframework\spring-jdbc\5.3.14\spring-jdbc-5.3.14.jar;C:\Users\betzm.m2\repository\org\springframework\data\spring-data-commons\2.4.8\spring-data-commons-2.4.8.jar;C:\Users\betzm.m2\repository\org\springframework\data\spring-data-jpa\2.4.8\spring-data-jpa-2.4.8.jar, --add-modules, eu.abeel.application.fx.augmented.customs.data.capture.gui, --output, C:\Dev\eu.abeel.application.fx.augmented.customs.data.capture\gui\target\acdc, --strip-debug, --compress, 2, --no-header-files, --no-man-pages, --verbose, --launcher, acdc=eu.abeel.application.fx.augmented.customs.data.capture.gui/eu.abeel.application.fx.augmented.customs.data.capture.gui.Bootstrap] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 Unrecognized option: --output Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.

Maurice-Betzel commented 2 years ago

Solution sofar:

CommandLine getExecutablePath(String executable, Map<String, String> enviro, File dir) { File execFile = new File(executable); String exec = null; if (execFile.isFile()) { getLog().debug("'executable' parameter is set to " + executable); exec = execFile.getAbsolutePath(); } if (exec == null && toolchainManager != null) { Toolchain toolchain = toolchainManager.getToolchainFromBuildContext("jdk", session); if (toolchain != null) { getLog().info("Toolchain in javafx-maven-plugin " + toolchain); if(executable.equals("jlink")) { exec = toolchain.findTool("jlink"); } else { exec = toolchain.findTool("java"); } getLog().debug("Tool in toolchain in javafx-maven-plugin " + exec); } }

rcuprak commented 2 years ago

Your solution fixed it for me. When will this get merged?