Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-7885

Plugin dependencies should be part in dependency management

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Dependencies
    • None

    Description

      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.

       

       

      <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>

       

       

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cachescrubber Lars Uffmann
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: