Skip to content

Commit

Permalink
Merge pull request #27061 from mshima/reorder-plugin
Browse files Browse the repository at this point in the history
move org.apache.maven.plugins plugins to the top
  • Loading branch information
DanielFran authored Aug 24, 2024
2 parents 36e92a2 + 1a6ac68 commit f1f0430
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
22 changes: 11 additions & 11 deletions generators/maven/__snapshots__/needles.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,6 @@ exports[`generator - maven - needles prod profile should match generated pom 1`]
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>mavenPluginManagementGroupId</groupId>
<artifactId>mavenPluginManagementArtifactId</artifactId>
<version>version</version>
<exclusions>
<exclusion>
<groupId>exclusionGroupId</groupId>
<artifactId>exclusionArtifactId</artifactId>
</exclusion>
</exclusions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
Expand All @@ -113,6 +102,17 @@ exports[`generator - maven - needles prod profile should match generated pom 1`]
</annotationProcessorPaths>
</configuration>
</plugin>
<plugin>
<groupId>mavenPluginManagementGroupId</groupId>
<artifactId>mavenPluginManagementArtifactId</artifactId>
<version>version</version>
<exclusions>
<exclusion>
<groupId>exclusionGroupId</groupId>
<artifactId>exclusionArtifactId</artifactId>
</exclusion>
</exclusions>
</plugin>
</plugins>
</pluginManagement>
</build>
Expand Down
8 changes: 7 additions & 1 deletion generators/maven/internal/pom-sort.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,13 @@ const propertiesOrder = [
'spring-boot.version',
];

const groupIdOrder = ['tech.jhipster', 'org.springframework.boot', 'org.springframework.security', 'org.springdoc'];
const groupIdOrder = [
'tech.jhipster',
'org.apache.maven.plugins',
'org.springframework.boot',
'org.springframework.security',
'org.springdoc',
];

const sortSection = section => {
return Object.fromEntries(
Expand Down

0 comments on commit f1f0430

Please sign in to comment.