You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Simon (Jira)" <ji...@apache.org> on 2022/07/21 15:59:00 UTC

[jira] [Created] (MDEP-811) pom.xml output format for dependency:list

Simon created MDEP-811:
--------------------------

             Summary: pom.xml output format for dependency:list
                 Key: MDEP-811
                 URL: https://issues.apache.org/jira/browse/MDEP-811
             Project: Maven Dependency Plugin
          Issue Type: New Feature
            Reporter: Simon


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 :
{code:xml}
<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>
{code}
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{*}.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)