From: Ed Warnicke Date: Sat, 3 Aug 2013 00:04:14 +0000 (-0500) Subject: Factored checkstyle config into it's own mvn project X-Git-Tag: releasepom-0.1.0~234 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=249c1c2ce6981ac39985313dbac7d7152f2c1576 Factored checkstyle config into it's own mvn project This allows correct handling of multimodule checkstyle as documented here: http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/multi-module-config.html This involved: - Adding a commons/checkstyle module to hold the space_and_tabs_checks.xml - Altering commons/opendaylight to use commons/checkstyle - Altering commons/concepts to use commons/checkstyle - Altering commons/integrationtest to use commons/checkstyle - Altering opendaylight/distribution to make sure to build commons/opendaylight and commons/checkstyle - Altering opendaylight/distribution to exclude commons/checkstyle from the distribution zip file. Change-Id: I36c23fc92ab8ec711861c7e9251a63b1aa60fd40 Signed-off-by: Ed Warnicke --- diff --git a/opendaylight/commons/checkstyle/pom.xml b/opendaylight/commons/checkstyle/pom.xml new file mode 100644 index 0000000000..50ffb4c8b9 --- /dev/null +++ b/opendaylight/commons/checkstyle/pom.xml @@ -0,0 +1,6 @@ + + 4.0.0 + org.opendaylight.controller + checkstyle + 0.0.1 + diff --git a/opendaylight/commons/opendaylight/space_and_tabs_checks.xml b/opendaylight/commons/checkstyle/src/main/resources/controller/space_and_tabs_checks.xml similarity index 100% rename from opendaylight/commons/opendaylight/space_and_tabs_checks.xml rename to opendaylight/commons/checkstyle/src/main/resources/controller/space_and_tabs_checks.xml diff --git a/opendaylight/commons/concepts/pom.xml b/opendaylight/commons/concepts/pom.xml index 9f3107d1a8..fb8d9c1e10 100644 --- a/opendaylight/commons/concepts/pom.xml +++ b/opendaylight/commons/concepts/pom.xml @@ -32,9 +32,16 @@ org.apache.maven.plugins maven-checkstyle-plugin ${checkstyle.version} + + + org.opendaylight.controller + checkstyle + 0.0.1 + + true - ${project.parent.parent.basedir}/space_and_tabs_checks.xml + controller/space_and_tabs_checks.xml diff --git a/opendaylight/commons/integrationtest/pom.xml b/opendaylight/commons/integrationtest/pom.xml index 4cd8582749..031edd0f40 100644 --- a/opendaylight/commons/integrationtest/pom.xml +++ b/opendaylight/commons/integrationtest/pom.xml @@ -77,9 +77,16 @@ org.apache.maven.plugins maven-checkstyle-plugin ${checkstyle.version} + + + org.opendaylight.controller + checkstyle + 0.0.1 + + true - ${project.parent.parent.basedir}/space_and_tabs_checks.xml + controller/space_and_tabs_checks.xml diff --git a/opendaylight/commons/opendaylight/pom.xml b/opendaylight/commons/opendaylight/pom.xml index 33218808a8..e70f522327 100644 --- a/opendaylight/commons/opendaylight/pom.xml +++ b/opendaylight/commons/opendaylight/pom.xml @@ -292,6 +292,13 @@ org.apache.maven.plugins maven-checkstyle-plugin ${checkstyle.version} + + + org.opendaylight.controller + checkstyle + 0.0.1 + + process-sources @@ -302,7 +309,7 @@ true - ${project.parent.basedir}/space_and_tabs_checks.xml + controller/space_and_tabs_checks.xml true true ${project.basedir} diff --git a/opendaylight/distribution/opendaylight/pom.xml b/opendaylight/distribution/opendaylight/pom.xml index 97f6878591..1833b4ae59 100644 --- a/opendaylight/distribution/opendaylight/pom.xml +++ b/opendaylight/distribution/opendaylight/pom.xml @@ -111,7 +111,8 @@ ../../samples/northbound/loadbalancer ../../commons/concepts ../../commons/integrationtest - + ../../commons/checkstyle + ../../commons/opendaylight diff --git a/opendaylight/distribution/opendaylight/src/assemble/bin.xml b/opendaylight/distribution/opendaylight/src/assemble/bin.xml index 67a4735813..a85c3f8860 100644 --- a/opendaylight/distribution/opendaylight/src/assemble/bin.xml +++ b/opendaylight/distribution/opendaylight/src/assemble/bin.xml @@ -17,6 +17,7 @@ org.opendaylight.controller:*.integrationtest org.opendaylight.controller:hosttracker_new org.opendaylight.controller:hosttracker_new.implementation + org.opendaylight.controller:checkstyle opendaylight/plugins