You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Hudson (Jira)" <ji...@apache.org> on 2020/10/01 19:48:00 UTC
[jira] [Commented] (MNG-6987) Reorder groupId before artifactId
when writing an exclusion using maven-model
[ https://issues.apache.org/jira/browse/MNG-6987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17205792#comment-17205792 ]
Hudson commented on MNG-6987:
-----------------------------
Build succeeded in Jenkins: Maven » Maven TLP » maven » mng-6118-submodule-invocation #2
See https://ci-builds.apache.org/job/Maven/job/maven-box/job/maven/job/mng-6118-submodule-invocation/2/
> Reorder groupId before artifactId when writing an exclusion using maven-model
> -----------------------------------------------------------------------------
>
> Key: MNG-6987
> URL: https://issues.apache.org/jira/browse/MNG-6987
> Project: Maven
> Issue Type: Improvement
> Components: POM
> Affects Versions: 3.6.3
> Reporter: Marc Bruggmann
> Assignee: Michael Osipov
> Priority: Minor
> Fix For: 3.7.0
>
>
> We are using {{maven-model}} to parse, modify, and write back a POM file roughly like so:
>
> {code:java}
> MavenXpp3Reader reader = new MavenXpp3Reader();
> Model model = reader.read(new FileReader(input));
> // make modifications to the model
> MavenXpp3Writer writer = new MavenXpp3Writer();
> writer.write(new FileWriter(output), model);{code}
>
> The exclusion shows up in the output file like this:
> {code:java}
> <exclusions>
> <exclusion>
> <artifactId>plexus-cipher</artifactId>
> <groupId>org.sonatype.plexus</groupId>
> </exclusion>
> </exclusions>
> {code}
> In most other places in the POM, we order the groupId before the artifactId. It would be nice to do it the same way for exclusion, like so:
> {code:java}
> <exclusions>
> <exclusion>
> <groupId>org.sonatype.plexus</groupId>
> <artifactId>plexus-cipher</artifactId>
> </exclusion>
> </exclusions>
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)