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
"Not updating %s:%s in dependencies: version defined " + "in dependencyManagement",
dep.getGroupId(), dep.getArtifactId()));
It seems this happens when the version is null, which I assume is because it's not grabbing the version from the parent. Does the functionality to override versions defined in the parent exist in versions-maven-plugin? If so, is there an obvious issue here? If the functionality exists and you need a minimal reproducible example I can create one -- the actual codebase this fails in is private.
Thank you!
The text was updated successfully, but these errors were encountered:
struggling with this as well at the moment. trying to do some "overrides" during a specific phase of development. since dependencies are inherited the use-dep-version goal doesn't do anything.
what works (but quite complicated) is to add a dummy version element in the pom and then replace it with the correct version.
Hi all,
I am wondering if it is possible to use use-dep-version in a child project to override a dependency version defined in a parent.
For example, in a parent POM:
Then, in a child that consumes the parent:
I get this error:
Looking at the code:
versions/versions-maven-plugin/src/main/java/org/codehaus/mojo/versions/UseDepVersionMojo.java
Lines 357 to 360 in 0b860eb
It seems this happens when the version is null, which I assume is because it's not grabbing the version from the parent. Does the functionality to override versions defined in the parent exist in versions-maven-plugin? If so, is there an obvious issue here? If the functionality exists and you need a minimal reproducible example I can create one -- the actual codebase this fails in is private.
Thank you!
The text was updated successfully, but these errors were encountered: