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

Build failure in 0.13.3 due to proxy configuration #2203

Closed
pauljaxson opened this issue Apr 24, 2019 · 4 comments
Closed

Build failure in 0.13.3 due to proxy configuration #2203

pauljaxson opened this issue Apr 24, 2019 · 4 comments
Assignees
Labels
kind/bug Something isn't working
Milestone

Comments

@pauljaxson
Copy link

I am unable to build a quarkus project (version 0.13.3) due to failures to download from the maven repository. The Bootstrap resolver does not appear to be honouring my proxy settings which are set in a MAVEN_OPTS environment variable. The settings that I have work correctly in version 0.12. This seems to have been introduced in version 0.13.0.

[INFO] Running org.acme.quickstart.GreetingResourceTest [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 28.832 s <<< FAILURE! - in org.acme.quickstart.GreetingResourceTest [ERROR] testHelloEndpoint Time elapsed: 0.021 s <<< ERROR! org.junit.jupiter.api.extension.TestInstantiationException: TestInstanceFactory [io.quarkus.test.junit.QuarkusTestExtension] failed to instantiate test class [org.acme.quickstart.GreetingResourceTest]: 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 a deployment classloader for org.acme:getting-started::jar:1.0-SNAPSHOT Caused by: io.quarkus.bootstrap.resolver.AppModelResolverException: Failed to inject extension deployment dependencies for org.acme:getting-started:jar:1.0-SNAPSHOT Caused by: io.quarkus.bootstrap.resolver.maven.DeploymentInjectionException: io.quarkus.bootstrap.resolver.AppModelResolverException: Failed to collect dependencies for io.quarkus:quarkus-resteasy-deployment:jar:0.13.3Caused by: io.quarkus.bootstrap.resolver.AppModelResolverException: Failed to collect dependencies for io.quarkus:quarkus-resteasy-deployment:jar:0.13.3 Caused by: org.eclipse.aether.collection.DependencyCollectionException: Failed to read artifact descriptor for io.quarkus:quarkus-resteasy-deployment:jar:0.13.3 Caused by: org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for io.quarkus:quarkus-resteasy-deployment:jar:0.13.3 Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not transfer artifact io.quarkus:quarkus-resteasy-deployment:pom:0.13.3 from/to central (https://repo.maven.apache.org/maven2): Resource temporarily unavailable (connect failed) Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer artifact io.quarkus:quarkus-resteasy-deployment:pom:0.13.3 from/to central (https://repo.maven.apache.org/maven2): Resource temporarily unavailable (connect failed) Caused by: java.net.ConnectException: Resource temporarily unavailable (connect failed)

@gsmet
Copy link
Member

gsmet commented Apr 24, 2019

@aloubyansky it looks like a bootstrap issue. Do you take into account the potential proxy settings for Central?

@gsmet gsmet added the kind/bug Something isn't working label Apr 24, 2019
@aloubyansky
Copy link
Member

@pauljaxson as a workaround, will it work if you move your proxy settings to your settings.xml? Thanks.

@aloubyansky aloubyansky self-assigned this Apr 24, 2019
@aloubyansky
Copy link
Member

Also which Maven version are you using?
-Dhttp.proxyHost=xxx and -Dhttp.proxyPort=yyy don't seem to be picked up by usual mvn install (testing usual maven build w/o bootstrap resolver). The proxy from the settings is effective though. I must be missing something?

@jycr
Copy link
Contributor

jycr commented May 16, 2019

I think I found the origin of problem.
Aether artifact resolver (used by Quarkus to download "custom dependencies") use proxy configuration defined on each remote repository.
See: https://github.com/apache/maven-resolver/blob/maven-resolver-1.1.1/maven-resolver-transport-http/src/main/java/org/eclipse/aether/transport/http/HttpTransporter.java#L132

But, Quarkus do not configure proxy for remoteRepository (from repoSession)
https://github.com/quarkusio/quarkus/blob/0.15/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/resolver/maven/MavenArtifactResolver.java#L138

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

No branches or pull requests

4 participants