|
[
Permlink
| « Hide
]
Carlos Sanchez added a comment - 04/Apr/07 08:32 PM
unit test
The question is do we allow a project to extend another one that has a different version of it in dependencyManagement ?
if we do, then the current project version has to win over the managed one Seems logical to fail the build if dependencyManagement and the project version don't match
The version of the current artifact has to win! See, we manage all our versions in a global POM and that includes also our released artifacts. However, they are depending on each other. So it is quite normal that an artifact inherits a version from the global POM, but will declare a SNAPSHOT on its own.
I can see a cycle
the child can't be released until the parent is I added a workaround to the code to avoid changing the originating artifact version until a better solution.
Very, very ugly effect of this bug is that already deployed versions are overwritten by newer versions without notice. Maven changes the artifact version to the managed version and deploys it to the repository
For clarity, the attached patch has already been applied. (MNG-2931.patch)
We need a clear test case for this issue, or it's going to be nearly impossible to be sure we have it located and fixed.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||