Updated Branches: refs/heads/master 8c495ddee -> a1fc6558e
Moving dependencies for the Checkstyle plugin into a profile Follow-on from 335f594 Project: http://git-wip-us.apache.org/repos/asf/jclouds/repo Commit: http://git-wip-us.apache.org/repos/asf/jclouds/commit/d7d76291 Tree: http://git-wip-us.apache.org/repos/asf/jclouds/tree/d7d76291 Diff: http://git-wip-us.apache.org/repos/asf/jclouds/diff/d7d76291 Branch: refs/heads/master Commit: d7d76291ae244ee2bd03b59cc1a5157b599f7d58 Parents: 8c495dd Author: Andrew Phillips <[email protected]> Authored: Tue Feb 11 20:30:56 2014 -0500 Committer: Andrew Phillips <[email protected]> Committed: Wed Feb 12 00:10:20 2014 -0500 ---------------------------------------------------------------------- project/pom.xml | 40 ++++++++++++++++++++++++++++------------ 1 file changed, 28 insertions(+), 12 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/jclouds/blob/d7d76291/project/pom.xml ---------------------------------------------------------------------- diff --git a/project/pom.xml b/project/pom.xml index c94da03..3bee327 100644 --- a/project/pom.xml +++ b/project/pom.xml @@ -668,16 +668,8 @@ <plugin> <artifactId>maven-checkstyle-plugin</artifactId> <version>2.11</version> - <dependencies> - <dependency> - <groupId>org.apache.jclouds</groupId> - <artifactId>jclouds-resources</artifactId> - <version>${project.version}</version> - </dependency> - </dependencies> <configuration> - <!-- jclouds-resources has the checkstyle config in the classpath --> - <configLocation>resources/checkstyle.xml</configLocation> + <!-- configLocation configured via profiles --> <violationSeverity>warning</violationSeverity> <includeTestSourceDirectory>true</includeTestSourceDirectory> </configuration> @@ -1003,11 +995,35 @@ <plugin> <!-- When building jclouds-project, override the config to use the local file --> <artifactId>maven-checkstyle-plugin</artifactId> - <version>2.11</version> <configuration> <configLocation>../resources/checkstyle.xml</configLocation> - <violationSeverity>warning</violationSeverity> - <includeTestSourceDirectory>true</includeTestSourceDirectory> + </configuration> + </plugin> + </plugins> + </build> + </profile> + <profile> + <id>not-jclouds-project</id> + <activation> + <file> + <!-- only in the jclouds-project module --> + <missing>src/etc/header.txt</missing> + </file> + </activation> + <build> + <plugins> + <plugin> + <artifactId>maven-checkstyle-plugin</artifactId> + <dependencies> + <dependency> + <groupId>org.apache.jclouds</groupId> + <artifactId>jclouds-resources</artifactId> + <version>${project.version}</version> + </dependency> + </dependencies> + <configuration> + <!-- jclouds-resources has the checkstyle config in the classpath --> + <configLocation>resources/checkstyle.xml</configLocation> </configuration> </plugin> </plugins>
