You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2020/09/10 14:46:19 UTC

[GitHub] [maven] mbruggmann opened a new pull request #375: maven-model: Reorder exclusion fields

mbruggmann opened a new pull request #375:
URL: https://github.com/apache/maven/pull/375


   In most other places, we order the groupId before the artefactId.
   Exclusion was the odd one out, so I changed it to be in line with
   the others.
   
   We observe this when using `maven-model` to parse, modify, and
   write back a POM file roughly like so:
   ```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);
   ```
   
   Before this change, exclusions would be ordered like so:
   ```xml
           <exclusions>
             <exclusion>
               <artifactId>plexus-cipher</artifactId>
               <groupId>org.sonatype.plexus</groupId>
             </exclusion>
           </exclusions>
   ```
   
   After:
   ```xml
           <exclusions>
             <exclusion>
               <groupId>org.sonatype.plexus</groupId>
               <artifactId>plexus-cipher</artifactId>
             </exclusion>
           </exclusions>
   ```
   
    - [x] I hereby declare this contribution to be licenced under the [Apache License Version 2.0, January 2004](http://www.apache.org/licenses/LICENSE-2.0)
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [maven] asfgit closed pull request #375: [MNG-6987] Reorder groupId before artifactId when writing an exclusion using maven-model

Posted by GitBox <gi...@apache.org>.
asfgit closed pull request #375:
URL: https://github.com/apache/maven/pull/375


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [maven] asfgit closed pull request #375: [MNG-6987] Reorder groupId before artifactId when writing an exclusion using maven-model

Posted by GitBox <gi...@apache.org>.
asfgit closed pull request #375:
URL: https://github.com/apache/maven/pull/375






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [maven] asfgit closed pull request #375: [MNG-6987] Reorder groupId before artifactId when writing an exclusion using maven-model

Posted by GitBox <gi...@apache.org>.
asfgit closed pull request #375:
URL: https://github.com/apache/maven/pull/375


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [maven] michael-o commented on pull request #375: maven-model: Reorder exclusion fields

Posted by GitBox <gi...@apache.org>.
michael-o commented on pull request #375:
URL: https://github.com/apache/maven/pull/375#issuecomment-690379498


   Please create a JIRA issue, I will be happy to merge this.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [maven] asfgit closed pull request #375: [MNG-6987] Reorder groupId before artifactId when writing an exclusion using maven-model

Posted by GitBox <gi...@apache.org>.
asfgit closed pull request #375:
URL: https://github.com/apache/maven/pull/375






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [maven] michael-o commented on pull request #375: maven-model: Reorder exclusion fields

Posted by GitBox <gi...@apache.org>.
michael-o commented on pull request #375:
URL: https://github.com/apache/maven/pull/375#issuecomment-690379230


   That is why it looked so stupid...thank you for fixing!


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org