-
Notifications
You must be signed in to change notification settings - Fork 303
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
Coursier ignores overridden properties in child POM #2906
Comments
I think you meant that you specify
Links to the referenced pom files for easy access: I created a minimal example to reproduce this and the steps are almost the same as what I described for this other issue I reported earlier, but I include them below as well. Setup: Maven 3.9.0, Coursier 2.1.8 Minimal example: https://github.com/gatisnolv/coursier-issue-2906 Reproduction: Note: in the |
@gatisnolv, thanks, I corrected my message. For the examples, it is better to point at the published versions, since those in Git can change: |
In the Apache Log4j project we support multiple versions of the same library (in different Maven modules).
In order to do that, in the parent POM we specify the version of the library via a Maven property:
and we overwrite the property value in the child POM:
This works very well with Maven, since the "inheritance assembly" phase precedes the "model interpolation" phase (cf. Maven Model Builder).
However, as reported by one of our users (cf. apache/logging-log4j2#2065) this doesn't work with Coursier: in the above example Maven with choose version
1.7.25
while Coursier will choose version2.0.9
.The text was updated successfully, but these errors were encountered: