Repository: commons-rng Updated Branches: refs/heads/master 647c02bf0 -> cf0bbf9a2
Add checkstyle plugin configuration, to read project checkstyle.xml Project: http://git-wip-us.apache.org/repos/asf/commons-rng/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-rng/commit/cf0bbf9a Tree: http://git-wip-us.apache.org/repos/asf/commons-rng/tree/cf0bbf9a Diff: http://git-wip-us.apache.org/repos/asf/commons-rng/diff/cf0bbf9a Branch: refs/heads/master Commit: cf0bbf9a22f37a16d23bc836a91c354a8b351482 Parents: 647c02b Author: Artem Barger <[email protected]> Authored: Wed Aug 17 23:46:43 2016 +0300 Committer: Artem Barger <[email protected]> Committed: Wed Aug 17 23:48:20 2016 +0300 ---------------------------------------------------------------------- pom.xml | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-rng/blob/cf0bbf9a/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index efc2671..19f12ed 100644 --- a/pom.xml +++ b/pom.xml @@ -279,7 +279,36 @@ <additionalparam>-header '<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>'</additionalparam> </configuration> </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-checkstyle-plugin</artifactId> + <executions> + <execution> + <id>validate</id> + <phase>validate</phase> + <goals> + <goal>check</goal> + </goals> + </execution> + </executions> + </plugin> </plugins> + <pluginManagement> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-checkstyle-plugin</artifactId> + <version>${rng.checkstyle.version}</version> + <configuration> + <includeTestSourceDirectory>true</includeTestSourceDirectory> + <configLocation>checkstyle.xml</configLocation> + <consoleOutput>true</consoleOutput> + <logViolationsToConsole>true</logViolationsToConsole> + <resourceIncludes>**/*.java</resourceIncludes> + </configuration> + </plugin> + </plugins> + </pluginManagement> </build> <reporting> @@ -349,7 +378,7 @@ <artifactId>maven-checkstyle-plugin</artifactId> <version>${rng.checkstyle.version}</version> <configuration> - <configLocation>${basedir}/checkstyle.xml</configLocation> + <configLocation>checkstyle.xml</configLocation> <enableRulesSummary>false</enableRulesSummary> <includeResources>false</includeResources> <headerLocation>${basedir}/license-header.txt</headerLocation>
