Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9fb51a4

Browse files
build: Disable sortpom-maven-plugin only during release, also ignore repository section. (#3031)
Signed-off-by: Michael Simons <michael@simons.ac>
1 parent 03b0c04 commit 9fb51a4

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

‎pom.xml‎

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,8 @@
441441
</dependency>
442442
</dependencies>
443443

444+
<!-- The Spring Data Commons tooling removes this (ok), but adds it back unsorted, so we just ignore this part completely. -->
445+
<?SORTPOM IGNORE?>
444446
<repositories>
445447
<repository>
446448
<id>spring-snapshot</id>
@@ -457,6 +459,7 @@
457459
<url>https://repo.spring.io/milestone</url>
458460
</repository>
459461
</repositories>
462+
<?SORTPOM RESUME?>
460463

461464
<build>
462465
<pluginManagement>
@@ -477,7 +480,6 @@
477480
<verifyFailOn>strict</verifyFailOn>
478481
<spaceBeforeCloseEmptyElement>true</spaceBeforeCloseEmptyElement>
479482
<pomFile>pom.xml</pomFile>
480-
<skip>true</skip>
481483
</configuration>
482484
</plugin>
483485
<plugin>
@@ -497,6 +499,7 @@
497499
<excludes>
498500
<exclude>**/*.adoc</exclude>
499501
<exclude>**/*.cypher</exclude>
502+
<exclude>**/.flattened-pom.xml</exclude>
500503
<exclude>**/*.tpl</exclude>
501504
<exclude>**/aot.factories</exclude>
502505
<exclude>**/Jenkinsfile</exclude>
@@ -806,6 +809,20 @@
806809
<spring-javaformat.skip>true</spring-javaformat.skip>
807810
</properties>
808811
</profile>
812+
<profile>
813+
<id>release</id>
814+
<build>
815+
<plugins>
816+
<plugin>
817+
<groupId>com.github.ekryd.sortpom</groupId>
818+
<artifactId>sortpom-maven-plugin</artifactId>
819+
<configuration>
820+
<skip>true</skip>
821+
</configuration>
822+
</plugin>
823+
</plugins>
824+
</build>
825+
</profile>
809826
</profiles>
810827

811828
</project>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /