Setup checkstyle as a managed plugin for easier use
Project: http://git-wip-us.apache.org/repos/asf/commons-dbutils/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-dbutils/commit/c44ef040 Tree: http://git-wip-us.apache.org/repos/asf/commons-dbutils/tree/c44ef040 Diff: http://git-wip-us.apache.org/repos/asf/commons-dbutils/diff/c44ef040 Branch: refs/heads/master Commit: c44ef0401393c6a73a702feb948cd6973a231c1b Parents: 60b61ac Author: Carl Hall <[email protected]> Authored: Thu Jul 20 20:48:33 2017 -0700 Committer: Carl Hall <[email protected]> Committed: Thu Jul 20 20:59:48 2017 -0700 ---------------------------------------------------------------------- pom.xml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-dbutils/blob/c44ef040/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 72fdef3..3b59ca9 100644 --- a/pom.xml +++ b/pom.xml @@ -250,6 +250,21 @@ </properties> <build> + <defaultGoal>clean verify apache-rat:check clirr:check checkstyle:check findbugs:check javadoc:javadoc</defaultGoal> + <pluginManagement> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-checkstyle-plugin</artifactId> + <version>${checkstyle.plugin.version}</version> + <configuration> + <configLocation>${basedir}/checkstyle.xml</configLocation> + <enableRulesSummary>false</enableRulesSummary> + <headerLocation>${basedir}/license-header.txt</headerLocation> + </configuration> + </plugin> + </plugins> + </pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> @@ -307,12 +322,6 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> - <version>${checkstyle.plugin.version}</version> - <configuration> - <configLocation>${basedir}/checkstyle.xml</configLocation> - <enableRulesSummary>false</enableRulesSummary> - <headerLocation>${basedir}/license-header.txt</headerLocation> - </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId>
