You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used ./mvnw package -Dnative -X and ./mvnw install -Dnative -DskipTests -Dquarkus.native.container-build=true command,
But always failed with this message:
[DEBUG] incrementalBuildHelper#beforeRebuildExecution
[INFO] Compiling 2 source files with javac [debug target 11] to target/classes
[DEBUG] incrementalBuildHelper#afterRebuildExecution
[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING :
[INFO] -------------------------------------------------------------
[INFO] 1 warning
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] reading /Users/xy/.m2/repository/io/quarkus/quarkus-ide-launcher/3.4.1/quarkus-ide-launcher-3.4.1.jar error; zip file is empty
[ERROR] /Users/xy/Projects/quarkus-quickstarts/getting-started/src/main/java/org/acme/getting/started/GreetingResource.java:[1,1] could not access org.acme.getting.started
ZipException opening "quarkus-ide-launcher-3.4.1.jar": zip END header not found
[ERROR] /Users/xy/Projects/quarkus-quickstarts/getting-started/src/main/java/org/acme/getting/started/GreetingService.java:[6,8] could not access org.acme.getting
ZipException opening "quarkus-ide-launcher-3.4.1.jar": zip END header not found
[ERROR] /Users/xy/Projects/quarkus-quickstarts/getting-started/src/main/java/org/acme/getting/started/GreetingService.java:[5,2] 找不到符号
符号: 类 ApplicationScoped
[INFO] 4 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.185 s
[INFO] Finished at: 2023-09-25T15:54:38+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project getting-started: Compilation failure: Compilation failure:
[ERROR] 读取/Users/xy/.m2/repository/io/quarkus/quarkus-ide-launcher/3.4.1/quarkus-ide-launcher-3.4.1.jar时出错; zip file is empty
[ERROR] /Users/xy/Projects/quarkus-quickstarts/getting-started/src/main/java/org/acme/getting/started/GreetingResource.java:[1,1] 无法访问org.acme.getting.started
[ERROR] ZipException opening "quarkus-ide-launcher-3.4.1.jar": zip END header not found
[ERROR] /Users/xy/Projects/quarkus-quickstarts/getting-started/src/main/java/org/acme/getting/started/GreetingService.java:[6,8] 无法访问org.acme.getting
[ERROR] ZipException opening "quarkus-ide-launcher-3.4.1.jar": zip END header not found
[ERROR] /Users/xy/Projects/quarkus-quickstarts/getting-started/src/main/java/org/acme/getting/started/GreetingService.java:[5,2] 找不到符号
[ERROR] 符号: 类 ApplicationScoped
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project getting-started: Compilation failure
=============================================
This Is My Env
os info : macOS 13.5.2 m1 max
java info :
openjdk version "20.0.2" 2023-07-18
OpenJDK Runtime Environment GraalVM CE 20.0.2+9.1 (build 20.0.2+9-jvmci-23.0-b15)
OpenJDK 64-Bit Server VM GraalVM CE 20.0.2+9.1 (build 20.0.2+9-jvmci-23.0-b15, mixed mode, sharing)
docker info:
Docker version 24.0.6, build ed223bc
The text was updated successfully, but these errors were encountered:
hello,
I need help.
I'm trying to build a native image in getting-started sub module, and I've already read https://quarkus.io/guides/building-native-image
I used
./mvnw package -Dnative -X
and./mvnw install -Dnative -DskipTests -Dquarkus.native.container-build=true
command,But always failed with this message:
[DEBUG] incrementalBuildHelper#beforeRebuildExecution
[INFO] Compiling 2 source files with javac [debug target 11] to target/classes
[DEBUG] incrementalBuildHelper#afterRebuildExecution
[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING :
[INFO] -------------------------------------------------------------
[INFO] 1 warning
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] reading /Users/xy/.m2/repository/io/quarkus/quarkus-ide-launcher/3.4.1/quarkus-ide-launcher-3.4.1.jar error; zip file is empty
[ERROR] /Users/xy/Projects/quarkus-quickstarts/getting-started/src/main/java/org/acme/getting/started/GreetingResource.java:[1,1] could not access org.acme.getting.started
ZipException opening "quarkus-ide-launcher-3.4.1.jar": zip END header not found
[ERROR] /Users/xy/Projects/quarkus-quickstarts/getting-started/src/main/java/org/acme/getting/started/GreetingService.java:[6,8] could not access org.acme.getting
ZipException opening "quarkus-ide-launcher-3.4.1.jar": zip END header not found
[ERROR] /Users/xy/Projects/quarkus-quickstarts/getting-started/src/main/java/org/acme/getting/started/GreetingService.java:[5,2] 找不到符号
符号: 类 ApplicationScoped
[INFO] 4 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.185 s
[INFO] Finished at: 2023-09-25T15:54:38+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project getting-started: Compilation failure: Compilation failure:
[ERROR] 读取/Users/xy/.m2/repository/io/quarkus/quarkus-ide-launcher/3.4.1/quarkus-ide-launcher-3.4.1.jar时出错; zip file is empty
[ERROR] /Users/xy/Projects/quarkus-quickstarts/getting-started/src/main/java/org/acme/getting/started/GreetingResource.java:[1,1] 无法访问org.acme.getting.started
[ERROR] ZipException opening "quarkus-ide-launcher-3.4.1.jar": zip END header not found
[ERROR] /Users/xy/Projects/quarkus-quickstarts/getting-started/src/main/java/org/acme/getting/started/GreetingService.java:[6,8] 无法访问org.acme.getting
[ERROR] ZipException opening "quarkus-ide-launcher-3.4.1.jar": zip END header not found
[ERROR] /Users/xy/Projects/quarkus-quickstarts/getting-started/src/main/java/org/acme/getting/started/GreetingService.java:[5,2] 找不到符号
[ERROR] 符号: 类 ApplicationScoped
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project getting-started: Compilation failure
=============================================
This Is My Env
os info : macOS 13.5.2 m1 max
java info :
openjdk version "20.0.2" 2023-07-18
OpenJDK Runtime Environment GraalVM CE 20.0.2+9.1 (build 20.0.2+9-jvmci-23.0-b15)
OpenJDK 64-Bit Server VM GraalVM CE 20.0.2+9.1 (build 20.0.2+9-jvmci-23.0-b15, mixed mode, sharing)
docker info:
Docker version 24.0.6, build ed223bc
The text was updated successfully, but these errors were encountered: