[ https://issues.apache.org/jira/browse/MNG-7885?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17767977#comment-17767977 ]
Lars Uffmann commented on MNG-7885: ----------------------------------- Hi [~cstamas], using properties is currently the only way to manage those plugin dependencies. But the usage of properties is very limited compared to *bom* style imports. The properties are limited to the current project or its parent hierarchy. Instead of just using the following *bom* import, I would have to introduce a property for each and every dependency managed in there. {code:java} <dependency> <groupId>org.openrewrite.recipe</groupId> <artifactId>rewrite-recipe-bom</artifactId> <version>${openrewrite-recipe-bom.version}</version> <type>pom</type> <scope>import</scope> </dependency> {code} > Plugin dependencies should be part in dependency management > ----------------------------------------------------------- > > Key: MNG-7885 > URL: https://issues.apache.org/jira/browse/MNG-7885 > Project: Maven > Issue Type: Improvement > Components: Dependencies > Reporter: Lars Uffmann > Priority: Major > > It would be a great improvement in dependency management if plugin > dependencies could be part of the standard dependency management resolution. > In the example below I could manage the version of the rewrite-maven-plugin > using pluginManagement, the version of the rewrite-spring plugin dependency > however has to be set in place. > > > {code:java} > <build> > <plugins> > <plugin> > <groupId>org.openrewrite.maven</groupId> > <artifactId>rewrite-maven-plugin</artifactId> > <configuration> > <activeRecipes> > > <recipe>org.openrewrite.java.spring.boot2.SpringBoot2JUnit4to5Migration</recipe> > </activeRecipes> > </configuration> > <dependencies> > <dependency> > <groupId>org.openrewrite.recipe</groupId> > <artifactId>rewrite-spring</artifactId> > <version>4.35.0</version> > </dependency> > </dependencies> > </plugin> > </plugins> > <build>{code} > > > Other plugins are using special configurations to declare extra dependencies. > The version. management issue however is the same. A good example is > _annotationProcessorPaths_ of the compiler plugin. -- This message was sent by Atlassian Jira (v8.20.10#820010)