You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I also have dependencies with version=${revision} in the parent as well as in the child. The problem is that in the child the version of the dependencies are not resolved.
It works fine if I define the revision value in the maven options (e.g. mvn install -Drevision=1.0), but not if I define it in the properties. Is this an expected behaviour?
The text was updated successfully, but these errors were encountered:
robertobatts
changed the title
resolveCiFriendliesOnly doesn't resolve the ${revision} of the dependencies
resolveCiFriendliesOnly doesn't resolve the ${revision} of the dependencies if revision is defined in the properties
Dec 10, 2019
After flattening, the property value will become frozen, same as ${revision}, but will protect against reusing one deployed POM into another project which defines its own ${revision} value.
Then just use <version>${my-proj.version}</version> for each of the dependencies having a module in the multi-module project.
If we think about it, might be even prettier having variables in a reusable POM than hardcoded values.
I have a parent pom in a multimodule project like with a submodule and the revision defined in the properties:
I also have dependencies with version=${revision} in the parent as well as in the child. The problem is that in the child the version of the dependencies are not resolved.
It works fine if I define the revision value in the maven options (e.g.
mvn install -Drevision=1.0
), but not if I define it in the properties. Is this an expected behaviour?The text was updated successfully, but these errors were encountered: