We have 1 parent pom. This uses dependencyManagement for version control for all dependencies of all artifacts used.
What is alarming is that SNAPSHOT versions can be determined depending on the control. Although, when maven is released, pom is allowed to release with the SNAPSHOT version depending on the control. What for?
If I point the child project to the released version of the parent company pom, and this child project uses the dependency defined in dependencyManagement, although this is the SNAPSHOT version, I cannot release the child project.
Why does Maven allow the SNAPSHOT version for the artifact defined in dependencyManagement to exit? And how can I configure the maven release plugin to fail if a version of SNAPSHOT is defined?
source
share