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

quarkus create app requires platform Maven repositories to be enabled in user settings.xml #45814

Open
aloubyansky opened this issue Jan 23, 2025 · 1 comment
Labels
area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/maven kind/enhancement New feature or request

Comments

@aloubyansky
Copy link
Member

aloubyansky commented Jan 23, 2025

Description

When a user creates a new project with quarkus app create, the dev tools will need to resolve the platform descriptors, codestarts and other artifacts from a Maven repository. If that Maven repository is not Central, for that to work, that Maven repository would have to be configured and enabled in the user settings.xml. Once the project is generated, the generated pom.xml typically includes the custom Maven repository configuration (in the case of RHBQ, for example), so the generated project can be built.

The requirement of pre-configuring the Maven repository in the user settings.xml could be relaxed though. Taking RHBQ as an example, its registry descriptor could include the Maven repository URL that could be used to resolve the platform descriptors.
The registry client would use the Maven repository URL to resolve the platform descriptors if that Maven repository has not yet been configured in the user settings.xml.

To demonstrate the issue, create the following configuration file under ~/.quarkus/config.yaml:

debug: true
registries:
  - registry.quarkus.redhat.com
  - registry.quarkus.io

and run (without pre-configuring https://repo.maven.apache.org/maven2 in the settings.xml)

quarkus create app --verbose

Implementation ideas

No response

@aloubyansky aloubyansky added area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins kind/enhancement New feature or request labels Jan 23, 2025
Copy link

quarkus-bot bot commented Jan 23, 2025

/cc @quarkusio/devtools (maven)

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/maven kind/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant