Maven 不构建 -runner.jar

Ign*_*pez 3 quarkus quarkus-native

我已经使用原型生成了一个新项目,并且运行了以下 Maven

./mvnw -Dskiptests clean package

它应该构建两个 jar 文件 xxx.jar 和 xx-runner.jar 但它只构建一个 (xxx.jar)。

我已经配置了 JAVA_HOME 和 GRAALVM_HOME 指向我下载的 GraalVM。

我已经安装了本机映像。

我的操作系统是UBUNTU

Maven 应该构建两个 JAR 文件,但我不知道为什么。有人可以帮助我吗?

[INFO] Scanning for projects...
[INFO] 
[INFO] ----------------< es.olivar.jaen:atomic-fruit-service >-----------------
[INFO] Building atomic-fruit-service 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ atomic-fruit-service ---
[INFO] Deleting /home/sobremesa/Documents/Develop/java/quarkus/poc/atomic-fruit-service/target
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ atomic-fruit-service ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] 
[INFO] --- quarkus-maven-plugin:2.11.3.Final:generate-code (default) @ atomic-fruit-service ---
[INFO] 
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ atomic-fruit-service ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to /home/sobremesa/Documents/Develop/java/quarkus/poc/atomic-fruit-service/target/classes
[INFO] 
[INFO] --- quarkus-maven-plugin:2.11.3.Final:generate-code-tests (default) @ atomic-fruit-service ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ atomic-fruit-service ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/sobremesa/Documents/Develop/java/quarkus/poc/atomic-fruit-service/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ atomic-fruit-service ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 2 source files to /home/sobremesa/Documents/Develop/java/quarkus/poc/atomic-fruit-service/target/test-classes
[INFO] 
[INFO] --- maven-surefire-plugin:3.0.0-M7:test (default-test) @ atomic-fruit-service ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ atomic-fruit-service ---
[INFO] Building jar: /home/sobremesa/Documents/Develop/java/quarkus/poc/atomic-fruit-service/target/atomic-fruit-service-1.0-SNAPSHOT.jar
[INFO] 
[INFO] --- quarkus-maven-plugin:2.11.3.Final:build (default) @ atomic-fruit-service ---
[INFO] [io.quarkus.deployment.QuarkusAugmentor] Quarkus augmentation completed in 1475ms
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  6.615 s
[INFO] Finished at: 2022-08-29T23:38:29+02:00
Run Code Online (Sandbox Code Playgroud)

确实非常感谢。

geo*_*and 5

输出罐子是target/quarkus-app/quarkus-run.jar