Skip to content

Commit 0232906

Browse files
author
Alex Huang
committed
Brought in Hugo's checkstyle
1 parent 8d62744 commit 0232906

1 file changed

Lines changed: 34 additions & 8 deletions

File tree

pom.xml

Lines changed: 34 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<developerConnection>scm:git:https://git-wip-us.apache.org/repos/asf/cloudstack.git</developerConnection>
3030
</scm>
3131
<issueManagement>
32-
<system>jira</system>
32+
<system>jira</system>
3333
<url>https://issues.apache.org/jira/browse/CLOUDSTACK</url>
3434
</issueManagement>
3535

@@ -86,7 +86,7 @@
8686
<cs.target.dir>target</cs.target.dir>
8787
<cs.daemon.version>1.0.10</cs.daemon.version>
8888
<cs.jna.version>4.0.0</cs.jna.version>
89-
<cs.checkstyle.version>2.10</cs.checkstyle.version>
89+
<cs.checkstyle.version>2.11</cs.checkstyle.version>
9090
</properties>
9191

9292
<distributionManagement>
@@ -445,18 +445,44 @@
445445
<outputDirectory>${basedir}/${cs.target.dir}/classes</outputDirectory>
446446
<testOutputDirectory>${basedir}/${cs.target.dir}/test-classes</testOutputDirectory>
447447
<plugins>
448-
<plugin>
449-
<groupId>org.apache.maven.plugins</groupId>
450-
<artifactId>maven-checkstyle-plugin</artifactId>
451-
<version>2.11</version>
452-
</plugin>
448+
<!--
449+
<plugin>
450+
<groupId>org.apache.maven.plugins</groupId>
451+
<artifactId>maven-checkstyle-plugin</artifactId>
452+
<version>${cs.checkstyle.version}</version>
453+
<dependencies>
454+
<dependency>
455+
<groupId>org.apache.cloudstack</groupId>
456+
<artifactId>checkstyle</artifactId>
457+
<version>${project.version}</version>
458+
</dependency>
459+
</dependencies>
460+
<executions>
461+
<execution>
462+
<phase>process-classes</phase>
463+
<goals>
464+
<goal>check</goal>
465+
</goals>
466+
</execution>
467+
</executions>
468+
<configuration>
469+
<failsOnError>true</failsOnError>
470+
<configLocation>tooling/checkstyle.xml</configLocation>
471+
<consoleOutput>true</consoleOutput>
472+
<includeTestSourceDirectory>true</includeTestSourceDirectory>
473+
<sourceDirectory>${project.basedir}</sourceDirectory>
474+
<includes>**\/*.java</includes>
475+
<excludes>**\/target\/,**\/bin\/,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat</excludes>
476+
</configuration>
477+
</plugin>
478+
-->
453479
</plugins>
454480
<pluginManagement>
455481
<plugins>
456482
<plugin>
457483
<groupId>org.apache.maven.plugins</groupId>
458484
<artifactId>maven-checkstyle-plugin</artifactId>
459-
<version>2.11</version>
485+
<version>${cs.checkstyle.version}</version>
460486
</plugin>
461487
<plugin>
462488
<artifactId>maven-clean-plugin</artifactId>

0 commit comments

Comments
 (0)