Skip to content

Commit 00e08c9

Browse files
committed
Add checkstyle to default Maven goal
1 parent e6174f2 commit 00e08c9

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

pom.xml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
</dependencies>
9999

100100
<build>
101-
<defaultGoal>clean apache-rat:check verify japicmp:cmp javadoc:javadoc</defaultGoal>
101+
<defaultGoal>clean apache-rat:check verify japicmp:cmp javadoc:javadoc checkstyle:check</defaultGoal>
102102
<plugins>
103103
<plugin>
104104
<groupId>org.apache.maven.plugins</groupId>
@@ -137,6 +137,16 @@
137137
<tarLongFileMode>gnu</tarLongFileMode>
138138
</configuration>
139139
</plugin>
140+
<plugin>
141+
<artifactId>maven-checkstyle-plugin</artifactId>
142+
<configuration>
143+
<configLocation>${basedir}/src/conf/checkstyle.xml</configLocation>
144+
<suppressionsLocation>${basedir}/src/conf/checkstyle-suppressions.xml</suppressionsLocation>
145+
<includeTestSourceDirectory>true</includeTestSourceDirectory>
146+
<enableRulesSummary>false</enableRulesSummary>
147+
<resourceExcludes>NOTICE.txt,LICENSE.txt,**/pom.properties,target/**.properties,</resourceExcludes>
148+
</configuration>
149+
</plugin>
140150
</plugins>
141151
<pluginManagement>
142152
<plugins>

0 commit comments

Comments
 (0)