-
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
Quarkus Build with Maven Artefact Resolver Configuration Options #44484
Comments
/cc @quarkusio/devtools (maven), @radcortez (config) |
cc @aloubyansky |
I can confirm that this still happens on the EDIT: and it's also the Quarkus dev mode ( |
I'm wondering whether passing them as system properties would have an effect. |
Passing the configuration as system properties wasn't enough, I had to fix the initialization process for the repository session to use all configuration (including from active profiles from |
Describe the bug
We use Maven with the quarkus-maven-plugin to build Quarkus applications on our CI system.
To improve caching, we attempted to use the enhanced local repository management (LRM) feature by separating the local repository for snapshots and releases (see Maven Local Repository Documentation).
Following the configuration guide here, we specified the following properties in the settings.xml:
Expected behavior
The quarkus-maven-plugin or quarkus-maven-resolver should support all Maven artifact resolver options as outlined in this documentation.
Actual behavior
For most of the build process, this configuration works as expected, with artifacts resolving to either ~/.m2/repository/cached/releases or ~/.m2/repository/cached/snapshots.
However, during the quarkus:3.8.6:generate-code-tests phase, the build starts resolving all dependencies again under ~/.m2/repository/. We also attempted unsuccessfully to set these options in a .mvn/.jvm.config file in the project root.
Could you confirm if the quarkus-maven-plugin or quarkus-maven-resolver fully supports all Maven artifact resolver options?
How to Reproduce?
To reproduce this issue:
mvn clean install
Observe that during the generate-code-tests phase, dependencies are unexpectedly resolved under ~/.m2/repository/ instead of the configured split directories.
Output of
uname -a
orver
No response
Output of
java -version
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: