I have a Maven BOM file which I import into my project pom:
<dependencyManagement>
<dependencies>
<dependency>
<groupId>be.company.mvn</groupId>
<artifactId>be.company.mvn.bom.core</artifactId>
<version>1.0.0-SNAPSHOT</version>
<type>pom</type>
<scope>import</scope>
</dependency>
works fine for dependencies, and even for plugins. But now I also want to control the version of the dependency of a plugin used in project pom:
<build>
<plugins>
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<dependencies>
<dependency>
<groupId>commons-dbcp</groupId>
<artifactId>commons-dbcp</artifactId>
</dependency>
</plugin>
Is it possible to get this working? I want to specify the version of commons-dbcp in my BOM file without having to specify it as a dependency of the jetty plugin in the BOM file too.
There is an opened issue for that MNG-5588 (opened in Feb 2014...). Feel free to vote for it. At the moment, only a "classic" parent pluginsManagement can be used.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With