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

Check whether the platform catalog couldn't be resolved from a Maven mirror #19695

Conversation

aloubyansky
Copy link
Member

If an extension catalog which is normally expected to be provided by Maven Central could not be resolved from a mirror,indicate that the mirror might not be up-to-date at the moment in the error message.

Example errors:

  1. Maven plugin
[aloubyansky@localhost test]$ mvn io.quarkus:quarkus-maven-plugin:999-SNAPSHOT:create
[INFO] Scanning for projects...
[INFO] 
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] 
[INFO] --- quarkus-maven-plugin:999-SNAPSHOT:create (default-cli) @ standalone-pom ---
[WARNING] The POM for io.smallrye.config:smallrye-config:jar:2.4.4 is missing, no dependency information available
[WARNING] Failed to resolve the Quarkus extension registry descriptor of registry.quarkus.io from aliyunmaven (https://maven.aliyun.com/repository/public) having applied the mirrors and/or proxies from the Maven settings to registry.quarkus.io (https://registry.quarkus.io/maven). Re-trying with the original registry.quarkus.io repository configuration.
[INFO] Looking for the newly published extensions in registry.quarkus.io
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  12.641 s
[INFO] Finished at: 2021-08-26T17:21:05+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:999-SNAPSHOT:create (default-cli) on project standalone-pom: Failed to resolve the extensions catalog: Failed to resolve Quarkus extension catalog io.quarkus.platform:quarkus-optaplanner-bom-quarkus-platform-descriptor:json:2.1.4.Final:2.1.4.Final from aliyunmaven (https://maven.aliyun.com/repository/public) which is a mirror of central (https://repo.maven.apache.org/maven2) and is possibly not yet fully synched right now: Failed to resolve artifact io.quarkus.platform:quarkus-optaplanner-bom-quarkus-platform-descriptor:json:2.1.4.Final:2.1.4.Final: Could not find artifact io.quarkus.platform:quarkus-optaplanner-bom-quarkus-platform-descriptor:json:2.1.4.Final:2.1.4.Final in aliyunmaven (https://maven.aliyun.com/repository/public) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
  1. CLI
[aloubyansky@localhost test]$ qs create
Creating an app (default project type, see --help).
Looking for the newly published extensions in registry.quarkus.io
[ERROR] ❗  Unable to create project: Failed to resolve Quarkus extension catalog io.quarkus.platform:quarkus-kogito-bom-quarkus-platform-descriptor:json:2.1.4.Final:2.1.4.Final from aliyunmaven (https://maven.aliyun.com/repository/public) which is a mirror of central (https://repo.maven.apache.org/maven2) and is possibly not yet fully synched right now

@quarkus-bot quarkus-bot bot added area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/platform Issues related to definition and interaction with Quarkus Platform labels Aug 26, 2021
@aloubyansky aloubyansky added triage/backport? and removed area/platform Issues related to definition and interaction with Quarkus Platform area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins labels Aug 26, 2021
@aloubyansky aloubyansky force-pushed the mirror-detection-resolving-platform-catalogs branch from 397e681 to bb9e00b Compare August 26, 2021 15:44
@quarkus-bot quarkus-bot bot added area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/gradle Gradle area/maven area/platform Issues related to definition and interaction with Quarkus Platform area/testing labels Aug 26, 2021
Copy link
Contributor

@gastaldi gastaldi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

…mirror and indicate that it might not be up-to-date in the error message
@aloubyansky aloubyansky force-pushed the mirror-detection-resolving-platform-catalogs branch from cc1b8ea to d04bbbc Compare August 26, 2021 17:14
@aloubyansky aloubyansky merged commit 8d9958a into quarkusio:main Aug 26, 2021
@quarkus-bot quarkus-bot bot added this to the 2.3 - main milestone Aug 26, 2021
@gsmet gsmet modified the milestones: 2.3 - main, 2.2.1.Final Aug 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/gradle Gradle area/maven area/platform Issues related to definition and interaction with Quarkus Platform area/testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants