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

Cannot build TODO demo app on windows into uber-jar since quarkus 3.16.1 #44576

Closed
mocenas opened this issue Nov 19, 2024 · 5 comments · Fixed by #44584
Closed

Cannot build TODO demo app on windows into uber-jar since quarkus 3.16.1 #44576

mocenas opened this issue Nov 19, 2024 · 5 comments · Fixed by #44584
Labels
env/windows Impacts Windows machines
Milestone

Comments

@mocenas
Copy link
Contributor

mocenas commented Nov 19, 2024

Trying to build this app on windows 2022, with java 17.0.10. Using command:

mvn clean -Dquarkus.package.jar.type=uber-jar -DskipTests=true -Dquarkus.platform.version=3.16.1 package

It fails on:

[ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:3.16.1:build (default) on project todo-backend: Failed to build quarkus application: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[ERROR]         [error]: Build step io.quarkus.deployment.pkg.steps.JarResultBuildStep#buildRunnerJar threw an exception: java.lang.reflect.UndeclaredThrowableException
[ERROR]         at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:862)
[ERROR]         at io.quarkus.builder.BuildContext.run(BuildContext.java:256)
[ERROR]         at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
[ERROR]         at org.jboss.threads.EnhancedQueueExecutor$Task.doRunWith(EnhancedQueueExecutor.java:2675)
[ERROR]         at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2654)
[ERROR]         at org.jboss.threads.EnhancedQueueExecutor.runThreadBody(EnhancedQueueExecutor.java:1627)
[ERROR]         at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1594)
[ERROR]         at java.base/java.lang.Thread.run(Thread.java:840)
[ERROR]         at org.jboss.threads.JBossThread.run(JBossThread.java:499)
[ERROR] Caused by: java.nio.file.NoSuchFileException: /META-INF/resources/app
[ERROR]         at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.checkParents(ZipFileSystem.java:1162)
[ERROR]         at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.newOutputStream(ZipFileSystem.java:843)
[ERROR]         at jdk.zipfs/jdk.nio.zipfs.ZipPath.newOutputStream(ZipPath.java:905)
[ERROR]         at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.newOutputStream(ZipFileSystemProvider.java:268)
[ERROR]         at java.base/java.nio.file.Files.newOutputStream(Files.java:228)
[ERROR]         at io.quarkus.deployment.pkg.steps.JarResultBuildStep.copyCommonContent(JarResultBuildStep.java:1251)
[ERROR]         at io.quarkus.deployment.pkg.steps.JarResultBuildStep.buildUberJar0(JarResultBuildStep.java:433)
[ERROR]         at io.quarkus.deployment.pkg.steps.JarResultBuildStep.buildUberJar(JarResultBuildStep.java:292)
[ERROR]         at io.quarkus.deployment.pkg.steps.JarResultBuildStep.buildRunnerJar(JarResultBuildStep.java:219)
[ERROR]         at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:732)
[ERROR]         at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:856)
[ERROR]         ... 8 more

Fails with same error with any quarkus build since 3.16.1 including current 999-SNAPSHOT.

Building on linux is not affected by this.

@cescoffier
Copy link
Member

@aloubyansky @gsmet @geoand This looks suspicious. Did we change anything in this area?

@gsmet
Copy link
Member

gsmet commented Nov 19, 2024

Probably :)

I think it warrants a Quarkus issue and investigation. Somehow the parent directory is missing in the zip.

@gsmet gsmet transferred this issue from quarkusio/todo-demo-app Nov 19, 2024
@quarkus-bot quarkus-bot bot added env/windows Impacts Windows machines triage/needs-triage labels Nov 19, 2024
@gsmet gsmet changed the title Cannot build on windows into uber-jar since quarkus 3.16.1 Cannot build TODO demo app on windows into uber-jar since quarkus 3.16.1 Nov 19, 2024
@gsmet
Copy link
Member

gsmet commented Nov 19, 2024

I transferred the issue to the main repo.

@jedla97
Copy link
Contributor

jedla97 commented Nov 19, 2024

@mocenas can you try it with #44584 . It worked for me but want to make sure.

@mocenas
Copy link
Contributor Author

mocenas commented Nov 20, 2024

@mocenas can you try it with #44584 . It worked for me but want to make sure.

I tried it and yes this solves the problem.

@quarkus-bot quarkus-bot bot added this to the 3.18 - main milestone Nov 20, 2024
@gsmet gsmet modified the milestones: 3.18 - main, 3.17.1 Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
env/windows Impacts Windows machines
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants