You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Guillaume Nodet (Jira)" <ji...@apache.org> on 2022/10/20 08:11:03 UTC
[jira] [Updated] (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:all-tabpanel ]
Guillaume Nodet updated MNG-6987:
---------------------------------
Fix Version/s: 4.0.0-alpha-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.8.2, 4.0.0-alpha-1, 4.0.0-alpha-2, 4.0.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.20.10#820010)