Skip to content

Commit 002d3bd

Browse files
committed
Add fast profile
Checkstyle and animal sniffer takes a significant amount of time when building the project. Add a "fast" profile that flips the `disable.checks` property. Can be enabled either via `-Pfast` or `-Ddisable.checks=true`. See spring-projectsgh-3928
1 parent e70f02c commit 002d3bd

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

spring-boot-parent/pom.xml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
</organization>
2020
<properties>
2121
<main.basedir>..</main.basedir>
22+
<disable.checks>false</disable.checks>
2223
<java.version>1.6</java.version>
2324
<aether.version>1.0.2.v20150114</aether.version>
2425
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -438,6 +439,7 @@
438439
<id>checkstyle-validation</id>
439440
<phase>validate</phase>
440441
<configuration>
442+
<skip>${disable.checks}</skip>
441443
<configLocation>src/checkstyle/checkstyle.xml</configLocation>
442444
<suppressionsLocation>src/checkstyle/checkstyle-suppressions.xml</suppressionsLocation>
443445
<headerLocation>src/checkstyle/checkstyle-header.txt</headerLocation>
@@ -562,6 +564,7 @@
562564
<groupId>org.codehaus.mojo</groupId>
563565
<artifactId>animal-sniffer-maven-plugin</artifactId>
564566
<configuration>
567+
<skip>${disable.checks}</skip>
565568
<signature>
566569
<groupId>org.codehaus.mojo.signature</groupId>
567570
<artifactId>java16</artifactId>
@@ -638,6 +641,63 @@
638641
</pluginRepository>
639642
</pluginRepositories>
640643
</profile>
644+
<profile>
645+
<id>fast</id>
646+
<activation>
647+
<property>
648+
<name>fast</name>
649+
</property>
650+
</activation>
651+
<properties>
652+
<disable.checks>true</disable.checks>
653+
</properties>
654+
<repositories>
655+
<repository>
656+
<id>spring-ext</id>
657+
<url>http://repo.spring.io/ext-release-local/</url>
658+
<releases>
659+
<enabled>true</enabled>
660+
</releases>
661+
<snapshots>
662+
<enabled>false</enabled>
663+
</snapshots>
664+
</repository>
665+
<repository>
666+
<id>spring-milestones</id>
667+
<name>Spring Milestones</name>
668+
<url>http://repo.spring.io/milestone</url>
669+
<snapshots>
670+
<enabled>false</enabled>
671+
</snapshots>
672+
</repository>
673+
<repository>
674+
<id>spring-snapshots</id>
675+
<name>Spring Snapshots</name>
676+
<url>http://repo.spring.io/snapshot</url>
677+
<snapshots>
678+
<enabled>true</enabled>
679+
</snapshots>
680+
</repository>
681+
</repositories>
682+
<pluginRepositories>
683+
<pluginRepository>
684+
<id>spring-milestones</id>
685+
<name>Spring Milestones</name>
686+
<url>http://repo.spring.io/milestone</url>
687+
<snapshots>
688+
<enabled>false</enabled>
689+
</snapshots>
690+
</pluginRepository>
691+
<pluginRepository>
692+
<id>spring-snapshots</id>
693+
<name>Spring Snapshots</name>
694+
<url>http://repo.spring.io/snapshot</url>
695+
<snapshots>
696+
<enabled>true</enabled>
697+
</snapshots>
698+
</pluginRepository>
699+
</pluginRepositories>
700+
</profile>
641701
<profile>
642702
<id>eclipse.profile</id>
643703
<activation>

0 commit comments

Comments
 (0)