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

The dependencies used by plugins can be obtained preferentially from the dependencies of the current project

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Minor
    • Resolution: Information Provided
    • 3.8.5
    • None
    • Dependencies
    • Java8,Windows, IntelliJ IDEA

    Description

      Summary: In order to control the unified version, I keep the dependenciesManage in the parent project. The child project will read the versions of the reference dependencies in turn, and finally obtain the information from the dependenciesManage of the superior. Is it possible to use dependencies in the build ->plugin? Get it from the current POM configuration first, and then read it up in sequence.

       

      I have a parent dependency management project with the main parts as follows:

      Two dependency versions of Kotlin are provided in this boot-dependencies project.

      Then I introduced these two dependencies in the subproject.

      When using build->plugins, I need to import these two dependencies in the configuration, as follows, I hope that the above dependency version will be used first when Plugin reference information.

      Attachments

        1. image-2022-03-30-16-07-49-106.png
          126 kB
          LiuAnsa
        2. image-2022-03-30-16-11-09-437.png
          90 kB
          LiuAnsa
        3. image-2022-03-30-16-25-47-113.png
          135 kB
          LiuAnsa

        Activity

          People

            Unassigned Unassigned
            Penguin stars LiuAnsa
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: