How does importing maven dependencies affect plugin management?

Maven allows you to import dependencies , for example, import Spring boot dependencies, into a project with a different parent using the import area. How does this affect plugin management?

I want to use plugin versions defined in the <pluginManagement> section of the imported dependency ( <spring-boot-dependencies> in this case), but I notice different versions of plugins, for example surefire, used in different environments, for example, in TeamCity and at the local level .

+9
source share
2 answers

With maven, you can inherit pluginManagement only when using this POM as a parent.
import brings only dependencyManagement control.

Although there is a ticket on the Maven problem counter: https://issues.apache.org/jira/browse/MNG-5588

+5
source

According to Spring Download Docs, when Using Spring Download without a parent POM , you can still take advantage of dependency management (but not plugin management) .

+2
source

Source: https://habr.com/ru/post/1259758/


All Articles