Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

native build fail #1332

Open
tixo opened this issue Sep 25, 2023 · 0 comments
Open

native build fail #1332

tixo opened this issue Sep 25, 2023 · 0 comments

Comments

@tixo
Copy link

tixo commented Sep 25, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant