Uploaded image for project: 'Maven Dependency Plugin'
  1. Maven Dependency Plugin
  2. MDEP-811

pom.xml output format for dependency:list

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • list

    Description

      In order to create a reproducible build, it could make sense to fix all version of direct and indirect dependency.

      This can be done adding this in <dependencyManagement>

      But this can be fastidious to do that manually.

      It could be great if it was possible to change dependency:list input format to something like `pom` which will output something like :

      <dependencies>
          <dependency>
            <groupId>group-a</groupId>
            <artifactId>artifact-a</artifactId>
            <version>1.0</version>
          </dependency>
          <dependency>
            <groupId>group-a</groupId>
            <artifactId>artifact-b</artifactId>
            <version>1.0</version>
          </dependency>
      </dependencies>
      

      This way this can be used to easily update/create <dependencyManagement>

      As in this case, it could even make sense to only fixed dependency with version range, also adding an option rangeVersionOnly.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sbernard Simon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: