M
Mart
Gast
XML:
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>FinalGame5</groupId>
<artifactId>NEXcg</artifactId>
<version>0.0.1-SNAPSHOT</version>
<properties>
<!-- Application Properties -->
<link.name>${project.artifactId}</link.name>
<launcher>${project.artifactId}</launcher>
<appName>${project.artifactId}</appName>
<main.module>finalGame1</main.module>
<maven.dependency.plugin>3.1.2</maven.dependency.plugin>
<main.class>application.Main</main.class>
<!-- Dependency Versions -->
<java.version>16</java.version>
<javafx.version>16</javafx.version>
<jpackage.maven.plugin>0.1.3</jpackage.maven.plugin>
<java.version>16</java.version>
<javafx.version>16</javafx.version>
<slf4j.version>1.7.32</slf4j.version>
<moditect.maven.plugin>1.0.0.RC1</moditect.maven.plugin>
<junit.version>5.7.2</junit.version>
<mvvmfx.version>1.8.0</mvvmfx.version>
<typetools.version>0.6.3</typetools.version>
</properties>
<build>
<sourceDirectory>src</sourceDirectory>
<resources>
<resource>
<directory>src</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
<resource>
<directory>${basedir}/src/main/java/com/test/customize</directory>
<filtering>false</filtering>
</resource>
<resource>
<directory>${basedir}/src/main/java/com/test/resources</directory>
<filtering>false</filtering>
</resource>
<resource>
<directory>${basedir}/src/main/java/com/test/xml</directory>
<filtering>false</filtering>
</resource>
</resources>
<pluginManagement>
<plugins>
<plugin>
<groupId>com.github.akman</groupId>
<artifactId>jpackage-maven-plugin</artifactId>
<version>0.1.3</version>
<configuration>
<toolhome>${env.JPACKAGE_HOME}</toolhome>
<dest>${project.build.directory}/jpackage</dest>
<name>appname</name>
<type>IMAGE</type>
<runtimeimage>${project.build.directory}/jlink/runtime-image</runtimeimage>
<appversion>1.0</appversion>
<copyright>Copyright</copyright>
<description>Description</description>
<vendor>Vendor</vendor>
<module>${main.module}/${main.class}</module>
<arguments>--opt</arguments>
<javaoptions>-Dfile.encoding=UTF-8 -Xms256m -Xmx512m</javaoptions>
<addlaunchers>
<addlauncher>
<name>appname-cli</name>
<module>appModuleName/appClassName</module>
<arguments>--help</arguments>
<javaoptions>-Xms256m -Xmx512m</javaoptions>
<appversion>1.0</appversion>
<icon>${project.basedir}/config/jpackage/resources/appname-cli.ico</icon>
<winconsole>true</winconsole>
</addlauncher>
</addlaunchers>
<resourcedir>${project.basedir}/config/jpackage/resources</resourcedir>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>${maven.dependency.plugin}</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/modules</outputDirectory>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>false</overWriteSnapshots>
<overWriteIfNewer>true</overWriteIfNewer>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<release>16</release>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<mainClass>application.Main</mainClass>
</configuration>
</plugin>
<plugin>
<groupId>org.moditect</groupId>
<artifactId>moditect-maven-plugin</artifactId>
<version>${moditect.maven.plugin}</version>
<executions>
<execution>
<id>add-module-info-to-dependencies</id>
<phase>package</phase>
<configuration>
<outputDirectory>${project.build.directory}/modules</outputDirectory>
<overwriteExistingFiles>true</overwriteExistingFiles>
<modules>
<module>
<artifact>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</artifact>
<moduleInfo>
<name>org.slf4j.slf4japi</name>
</moduleInfo>
</module>
</modules>
<module>
<mainClass>${main.class}</mainClass>
<moduleInfoFile>${project.build.sourceDirectory}/module-info.java</moduleInfoFile>
</module>
<jdepsExtraArgs>
--ignore-missing-deps
</jdepsExtraArgs>
</configuration>
<goals>
<goal>add-module-info</goal>
</goals>
</execution>
<execution>
<id>create-runtime-image</id>
<phase>package</phase>
<goals>
<goal>create-runtime-image</goal>
</goals>
<configuration>
<modulePath>
<path>${project.build.directory}/modules</path>
</modulePath>
<modules>
<module>${main.module}</module>
</modules>
<launcher>
<name>${launcher}</name>
<module>${main.module}</module>
</launcher>
<compression>2</compression>
<stripDebug>true</stripDebug>
<outputDirectory>${project.build.directory}/jlink-image</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.github.akman</groupId>
<artifactId>jpackage-maven-plugin</artifactId>
<executions>
<execution>
<id>jpackage-image</id>
<phase>verify</phase>
<goals>
<goal>jpackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<!-- https://mvnrepository.com/artifact/org.codehaus.mojo/exec-maven-plugin -->
<dependency>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.0.0</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.openjfx/javafx-controls -->
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>${javafx.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.openjfx/javafx-graphics -->
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-graphics</artifactId>
<version>${javafx.version}</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-base</artifactId>
<version>${javafx.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.openjfx/javafx-web -->
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-web</artifactId>
<version>${javafx.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.openjfx/javafx-fxml -->
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-fxml</artifactId>
<version>${javafx.version}</version>
</dependency>
</dependencies>
</project>
ich weis nicht warum das jpackage-image nicht gefunden wird es kommt diese fehlermeldung
Code:
[INFO]
[INFO] --- moditect-maven-plugin:1.0.0.RC1:add-module-info (add-module-info-to-dependencies) @ NEXcg ---
Warning: --ignore-missing-deps specified. Missing dependencies from org.slf4j are ignored
writing to /home/legacy/Downloads/fg/FinalGame/target/moditect/org.slf4j/module-info.java
[INFO] Created module descriptor at /home/legacy/Downloads/fg/FinalGame/target/moditect/generated-sources/org.slf4j.slf4japi/module-info.java
[INFO]
[INFO] --- moditect-maven-plugin:1.0.0.RC1:create-runtime-image (create-runtime-image) @ NEXcg ---
[INFO]
[INFO] --- jpackage-maven-plugin:0.1.3:jpackage (jpackage-image) @ NEXcg ---
[WARNING] Unable to read ${project.build.sourceEncoding}
[INFO] Version of [jpackage]: 16.0.1
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.695 s
[INFO] Finished at: 2021-10-14T17:58:02+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.akman:jpackage-maven-plugin:0.1.3:jpackage (jpackage-image) on project NEXcg: Error: Unable to resolve project dependencies: Cannot run program "/usr/bin/bin/java" (in directory "/tmp/plexus-java_jpms-3440302117355200255"): error=2, Datei oder Verzeichnis nicht gefunden -> [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/MojoExecutionException
bin gerade auf linux unterwegs mit diesem java
Java:
openjdk 16.0.1 2021-04-20
OpenJDK Runtime Environment (build 16.0.1+9-Ubuntu-1)
OpenJDK 64-Bit Server VM (build 16.0.1+9-Ubuntu-1, mixed mode, sharing)
der befehl war mvn clean install
lustigerweise liegt in target/jlink-image/bin/ die ausführbare datei die auch funktioniert nur ich nehme an die ganzen warnungen und errors kommen nicht ohne grund
Zuletzt bearbeitet von einem Moderator: