-
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
ExtensionDescriptorMojoTest
fails on a pristine computer
#37782
Comments
It looks like the root issue is that we need to have downloaded |
For tests like this failing one that resolves dependencies of an older (and outside the main project) Quarkus version we should disable offline mode. That would mean probably adding an argument to |
I couldn’t easily reproduce this; deleting my Maven repository, running a top level build with This would also explain why the test doesn’t fail in the CI; something built after I've gone with @aloubyansky's suggested fix, and just allowed the test projects to be resolved online if they need it. |
I did reproduce this just today (I didn't use |
Right, it's failing during "validation of extension dependencies", which is disabled in the "quickly" profile |
I wasn't expecting it to fail with |
Just want to say that the fix seems to have worked. Thanks! |
Describe the bug
The
ExtensionDescriptorMojoTest
fails on a pristine system with an error like this:As a workaround, set the
io.quarkus.maven.ExtensionDescriptorMojoTest#RESOLVE_OFFLINE
field tofalse
and re-run the tests inindependent-projects/extension-maven-plugin
. After the tests pass, the field can be reverted as the test will continue to pass from now on.Expected behavior
The test should pass.
Actual behavior
The test fails with the aforementioned exception.
How to Reproduce?
~/.m2/repository
but I haven't been brave enough to try it.Output of
uname -a
orver
Darwin xxxx 23.1.0 Darwin Kernel Version 23.1.0: Mon Oct 9 21:28:45 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T6020 arm64
Output of
java -version
openjdk version "17.0.9" 2023-10-17 OpenJDK Runtime Environment Temurin-17.0.9+9 (build 17.0.9+9) OpenJDK 64-Bit Server VM Temurin-17.0.9+9 (build 17.0.9+9, mixed mode)
Quarkus version or git rev
0d90b7c
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.9.5 (57804ffe001d7215b5e7bcb531cf83df38f93546) Maven home: /Users/david/local/apache-maven Java version: 17.0.9, vendor: Eclipse Adoptium, runtime: /Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home Default locale: en_US, platform encoding: UTF-8 OS name: "mac os x", version: "14.1.2", arch: "aarch64", family: "mac"
Additional information
No response
The text was updated successfully, but these errors were encountered: