Skip to content

Commit 6b28b79

Browse files
committed
Add pom sorting
1 parent b40bb84 commit 6b28b79

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

pom.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,26 @@
242242
</execution>
243243
</executions>
244244
</plugin>
245+
<plugin>
246+
<groupId>com.github.ekryd.sortpom</groupId>
247+
<artifactId>sortpom-maven-plugin</artifactId>
248+
<version>4.0.0</version>
249+
<configuration>
250+
<createBackupFile>false</createBackupFile>
251+
<sortDependencies>scope,groupId,artifactId</sortDependencies>
252+
<sortPlugins>groupId,artifactId</sortPlugins>
253+
<sortProperties>true</sortProperties>
254+
<verifyFail>${sortpom.verifyFail}</verifyFail>
255+
</configuration>
256+
<executions>
257+
<execution>
258+
<goals>
259+
<goal>verify</goal>
260+
</goals>
261+
<phase>validate</phase>
262+
</execution>
263+
</executions>
264+
</plugin>
245265
<plugin>
246266
<groupId>org.apache.maven.plugins</groupId>
247267
<artifactId>maven-site-plugin</artifactId>
@@ -735,6 +755,7 @@
735755
<properties>
736756
<!-- Only fail code coverage on non-windows machines -->
737757
<jacoco.haltOnFailure>true</jacoco.haltOnFailure>
758+
<sortpom.verifyFail>fail</sortpom.verifyFail>
738759
</properties>
739760
</profile>
740761
<profile>

0 commit comments

Comments
 (0)