Вот pom.xml для проекта:
Код: Выделить всё
4.0.0
com.example
dronescan
jar
1.0-SNAPSHOT
dronescan
https://www.examplegroup.com/
UTF-8
21
21
200.4.0
22.0.1
arcgis
https://esri.jfrog.io/artifactory/arcgis
openjfx-releases
https://openjfx.io/maven
org.junit
junit-bom
5.10.2
pom
import
org.junit.jupiter
junit-jupiter
test
org.openjfx
javafx-controls
${javafx.version}
org.openjfx
javafx-media
${javafx.version}
org.openjfx
javafx-web
${javafx.version}
org.openjfx
javafx-fxml
${javafx.version}
com.esri.arcgisruntime
arcgis-java
${arcgis.version}
com.esri.arcgisruntime
arcgis-java-jnilibs
${arcgis.version}
zip
com.esri.arcgisruntime
arcgis-java-resources
${arcgis.version}
zip
org.slf4j
slf4j-nop
1.7.36
org.apache.maven.plugins
maven-dependency-plugin
3.1.1
com.esri.arcgisruntime
arcgis-java-jnilibs
${arcgis.version}
zip
false
${user.home}/.arcgis/${arcgis.version}
com.esri.arcgisruntime
arcgis-java-resources
${arcgis.version}
zip
false
${user.home}/.arcgis/${arcgis.version}
org.apache.maven.plugins
maven-compiler-plugin
3.13.0
21
org.codehaus.mojo
exec-maven-plugin
1.6.0
java
com.example.App
maven-assembly-plugin
package
single
jar-with-dependencies
io.takari
maven
0.7.4
org.openjfx
javafx-maven-plugin
0.0.8
default-cli
com.example/com.example.App
org.apache.maven.plugins
maven-surefire-plugin
3.2.5
com.diffplug.spotless
spotless-maven-plugin
2.43.0
Код: Выделить всё
module com.example {
requires java.desktop;
requires java.prefs;
requires javafx.base;
requires javafx.controls;
requires javafx.media;
requires javafx.web;
requires javafx.fxml;
requires transitive javafx.graphics;
requires transitive com.esri.arcgisruntime;
opens com.example.controller to javafx.fxml;
exports com.example;
}
jlink завершился с ошибкой: Ошибка: Модуль javafx.base не найден
java.lang.module.FindException: Модуль javafx.base не найден
Любая помощь будет принята с благодарностью . Спасибо за чтение!
Я попытался собрать файл JAR с зависимостями с помощью плагина maven-with-dependent, но это все равно привело к той же ошибке. Использование jlink через JavaFX также приводит к ошибке:
Ошибка: автоматический модуль нельзя использовать с jlink: org.apache.httpcomComponents.core5.httpcore5
Подробнее здесь: https://stackoverflow.com/questions/788 ... -to-a-modu