-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
It's not possible to use QuarkusIntegrationTest in case default Java version is less than 11 #20049
Comments
/cc @geoand |
Good point! #20050 should fix the issue |
Very fast. Thank a lot ! |
YW! |
9 tasks
geoand
added a commit
that referenced
this issue
Sep 10, 2021
Be more intelligent about locating java for @QuarkusIntegrationTest
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
Dec 1, 2021
Fixes: quarkusio#20049 (cherry picked from commit 338f2ae)
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
Dec 1, 2021
Fixes: quarkusio#20049 (cherry picked from commit 338f2ae)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
If you use
quarkus-maven-plugin
thenQuarkusIntegrationTest
allows to execute quarkus in a separate JVM usingjava
command.The setup can be this:
The result is : maven and everything inside it is executed using Java 11 as required for Quarkus.
But integration test executes
java
command disregarding maven: it runs a separate process.I see this in
DefaultJarLauncher
:So it's just
java
command .Everything works fine at the same time if you use
QuarkusTest
: the same JVM is used to run maven and quarkus.So if you have working
QuarkusTest
and decides to make itQuarkusIntegrationTest
then test may become broken.The setup when some specific Java is used to run maven and another Java is a system default Java is a generic case for Continuous integration servers.
Expected behavior
There is a way to run proper
java
process: it either should somehow get info about Java from Maven (e.g. using JAVA_HOME) or it may provide a way to set the path to the Java command (or both).Actual behavior
System default java command is used which may have a version below 11.
How to Reproduce?
quarkus-maven-plugin
QuarkusIntegrationTest
.There will be an exception
Output of
uname -a
orver
Linux, version 4.14.225-169.362.amzn2.x86_64
Output of
java -version
Java 8
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.2.1.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: