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/3d15cf80 Tree: http://git-wip-us.apache.org/repos/asf/commons-dbutils/tree/3d15cf80 Diff: http://git-wip-us.apache.org/repos/asf/commons-dbutils/diff/3d15cf80 Branch: refs/heads/master Commit: 3d15cf80aa9c344c4e0f1e2e4dbe455d94cadecd Parents: 3864117 Author: Carl Hall <[email protected]> Authored: Thu Jul 20 20:48:33 2017 -0700 Committer: Carl Hall <[email protected]> Committed: Thu Jul 20 20:48:33 2017 -0700 ---------------------------------------------------------------------- pom.xml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-dbutils/blob/3d15cf80/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index ee5b93a..950d048 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>
