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
The issue manifests itself differently between Java and Kotlin projects but the setup is the same, a multi-module Gradle project where one module depends on one or more other modules and any of the depended on modules have empty sources.
Running quarkusDev in a Kotlin project causes it to fail with gradle outputting Failed to run. If you run with --stacktrace you can see a further error Failed to locate classes directory in the project.
For Java, quarkusDev executes without error but Quarkus startup fails with a rather long chain of exceptions like Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: java.io.UncheckedIOException: Error while reading file as JAR: /Users/kdubb/Downloads/code-with-quarkus/modA/build/classes/java/main
This setup may seem unnecessary but we have some modules that are effectively dependency containers. One of the modules previously had some shared code and when that shared code was removed we encountered this issue; determining the cause of the issue was pretty time consuming.
Expected behavior
quarkusDev completes correctly in both Java & Kotlin projects with this configuration and that Quarkus starts up correctly in the same configuration.
Actual behavior
For Kotlin projects, quarkusDev fails with nondescript Failed to run error.
For Java projects, quarkusDev completes but Quarkus fails to start with Error while reading file as JAR.
To Reproduce
Attached are reproducer projects for both Java & Kotlin. The projects were derived from a simple code start project and adapted to use a shared gradle config in a way that many multi-module projects are setup
Describe the bug
The issue manifests itself differently between Java and Kotlin projects but the setup is the same, a multi-module Gradle project where one module depends on one or more other modules and any of the depended on modules have empty sources.
Running
quarkusDev
in a Kotlin project causes it to fail with gradle outputtingFailed to run
. If you run with--stacktrace
you can see a further errorFailed to locate classes directory in the project
.For Java,
quarkusDev
executes without error but Quarkus startup fails with a rather long chain of exceptions likeException in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: java.io.UncheckedIOException: Error while reading file as JAR: /Users/kdubb/Downloads/code-with-quarkus/modA/build/classes/java/main
This setup may seem unnecessary but we have some modules that are effectively dependency containers. One of the modules previously had some shared code and when that shared code was removed we encountered this issue; determining the cause of the issue was pretty time consuming.
Expected behavior
quarkusDev
completes correctly in both Java & Kotlin projects with this configuration and that Quarkus starts up correctly in the same configuration.Actual behavior
For Kotlin projects,
quarkusDev
fails with nondescriptFailed to run
error.For Java projects,
quarkusDev
completes but Quarkus fails to start withError while reading file as JAR
.To Reproduce
Attached are reproducer projects for both Java & Kotlin. The projects were derived from a simple code start project and adapted to use a shared gradle config in a way that many multi-module projects are setup
code-with-quarkus-kotlin.zip
code-with-quarkus-java.zip
To solve the issues in either project you just need to place a
dummy.kt
ordummy.java
in the appropriate source directory formodA
module.Steps to reproduce the behavior:
quarkusDev
inmodB
directory.Configuration
# Empty file as provided by the codestart
Environment (please complete the following information):
Output of
uname -a
orver
Darwin host.local 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64
Output of
java -version
Quarkus version or git rev
1.12.2.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Additional context
(Add any other context about the problem here.)
The text was updated successfully, but these errors were encountered: