Hi, as I said, it needs to be in the dependencyManagement section, to be importable into the dependencyManagement of another pom. You can add groovy-all to dependencyManagement, but that only affects the version of the artifact itself not the version of its transitive dependencies, which can be affected by transitive dependencies of other artifacts.
If you don't want to add another project it is possible to add the dependencyManagement section into groovy-all and remove the version in the normal dependencies block. cheers Leonard Am 17.09.2018 um 20:42 schrieb Jochen Theodorou: > On 17.09.2018 02:44, Leonard Brünings wrote: >> Hi, >> >> the switch to fine grained artifacts with groovy-2.5 made it harder >> to consistently mange package versions. >> >> Many projects offer a bom pom >> (https://www.baeldung.com/spring-maven-bom), that manages all the >> packages so users of maven have to just import the bom pom instead of >> having to manage every artifact. >> >> So you can do just this >> >> <dependencyManagement> >> <dependencies> >> <dependency> >> <groupId>org.codehaus.groovy</groupId> >> <artifactId>groovy-bom</artifactId> >> <version>${groovy-version}</version> >> <scope>import</scope> >> </dependency> >> </dependencies> >> </dependencyManagement> > > what is wrong with this pom? > http://central.maven.org/maven2/org/codehaus/groovy/groovy-all/2.5.2/groovy-all-2.5.2.pom > > bye Jochen >