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

Runtime artifact's POM repos aren't propagated to resolve the corresponding deployment deps #3268

Closed
lburgazzoli opened this issue Jul 18, 2019 · 5 comments · Fixed by #3289
Assignees
Labels
kind/bug Something isn't working
Milestone

Comments

@lburgazzoli
Copy link
Contributor

lburgazzoli commented Jul 18, 2019

Describe the bug
I'm testing camel extensions against the latest quarkus snapshot to validate the fix for #3094 and when running the integration tests I see the following error:

[INFO] Running org.apache.camel.quarkus.core.CamelTest
[ERROR] Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 28.218 s <<< FAILURE! - in org.apache.camel.quarkus.core.CamelTest
[ERROR] testProperties  Time elapsed: 0.008 s  <<< ERROR!
org.junit.jupiter.api.extension.TestInstantiationException: TestInstanceFactory [io.quarkus.test.junit.QuarkusTestExtension] failed to instantiate test class [org.apache.camel.quarkus.core.CamelTest]: Failed to create the boostrap class loader
Caused by: java.lang.IllegalStateException: Failed to create the boostrap class loader
Caused by: io.quarkus.bootstrap.BootstrapException: Failed to create the deployment classloader for org.apache.camel.quarkus:camel-quarkus-integration-test-core::jar:0.0.1-SNAPSHOT
Caused by: io.quarkus.bootstrap.resolver.AppModelResolverException: Failed to inject extension deployment dependencies for org.apache.camel.quarkus:camel-quarkus-integration-test-core:jar:0.0.1-SNAPSHOT
Caused by: io.quarkus.bootstrap.BootstrapDependencyProcessingException: No dependencies collected for Quarkus extension deployment artifact io.quarkus:quarkus-resteasy-deployment:jar:999-SNAPSHOT while at least the corresponding runtime artifact io.quarkus:quarkus-resteasy:jar:999-20190718.021121-60 is expected

To Reproduce
Steps to reproduce the behavior:

  1. check-out https://github.com/lburgazzoli/apache-camel-quarkus/tree/test-packages
  2. run ./mvnw clean install

Environment (please complete the following information):

  • Output of uname -a or ver:
Linux mars 5.1.17-300.fc30.x86_64 #1 SMP Wed Jul 10 15:20:27 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
  • Output of java -version:
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-b04)
OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)
  • GraalVM version (if different from Java):
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-20190523183340.buildslave.jdk8u-src-tar--b03)
OpenJDK 64-Bit GraalVM CE 19.0.2 (build 25.212-b03-jvmci-19-b04, mixed mode)
  • Quarkus version or git rev:
999-SNAPSHOT (from oss snapshot repo)
@lburgazzoli
Copy link
Contributor Author

Seems to be related to snapshots, testing against the latest quarkus bits built locally does not fail

@lburgazzoli
Copy link
Contributor Author

lburgazzoli commented Jul 18, 2019

So I've cleaned up my repo and tested it against snapshots from oss repo and the problems has materialized again so maybe the snapshots are corrupted

/cc @aloubyansky

@lburgazzoli
Copy link
Contributor Author

Tested against new snapshots on a clean repo, same error:

[ERROR] testProperties  Time elapsed: 0.013 s  <<< ERROR!
org.junit.jupiter.api.extension.TestInstantiationException: TestInstanceFactory [io.quarkus.test.junit.QuarkusTestExtension] failed to instantiate test class [org.apache.camel.quarkus.core.CamelTest]: Failed to create the boostrap class loader
Caused by: java.lang.IllegalStateException: Failed to create the boostrap class loader
Caused by: io.quarkus.bootstrap.BootstrapException: Failed to create the deployment classloader for org.apache.camel.quarkus:camel-quarkus-integration-test-core::jar:0.0.1-SNAPSHOT
Caused by: io.quarkus.bootstrap.resolver.AppModelResolverException: Failed to inject extension deployment dependencies for org.apache.camel.quarkus:camel-quarkus-integration-test-core:jar:0.0.1-SNAPSHOT
Caused by: io.quarkus.bootstrap.BootstrapDependencyProcessingException: No dependencies collected for Quarkus extension deployment artifact io.quarkus:quarkus-resteasy-deployment:jar:999-SNAPSHOT while at least the corresponding runtime artifact io.quarkus:quarkus-resteasy:jar:999-20190719.021155-61 is expected

@lburgazzoli
Copy link
Contributor Author

@aloubyansky aloubyansky self-assigned this Jul 19, 2019
@aloubyansky aloubyansky added this to the 0.20.0 milestone Jul 19, 2019
@aloubyansky aloubyansky changed the title Failed to create the boostrap class loader Runtime artifact's POM repos aren't propagated to resolve the corresponding deployment deps Jul 19, 2019
@aloubyansky
Copy link
Member

This issue is about propagating repositories from the runtime artifact's (effective) POM to the resolution of the deployment artifacts. This issue affects only Quarkus tests where we break from the Maven build context and initialize our own resolver. Which also means a possible workaround would be to mvn clean install -DskipTests first and then mvn test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants