From f39b6b2c56596f5bd2328c89e402893aa279ce10 Mon Sep 17 00:00:00 2001 From: Hugo Trippaers Date: Mon, 4 Nov 2013 15:22:12 +0100 Subject: [PATCH] Add checkstyle to the build process and enable it for the Nicira NVP plugin --- parents/checkstyle/pom.xml | 7 ++++ .../src/main/resources/tooling/checkstyle.xml | 21 +++++++++++ plugins/network-elements/nicira-nvp/pom.xml | 35 +++++++++++++++++++ pom.xml | 2 ++ 4 files changed, 65 insertions(+) create mode 100644 parents/checkstyle/pom.xml create mode 100644 parents/checkstyle/src/main/resources/tooling/checkstyle.xml diff --git a/parents/checkstyle/pom.xml b/parents/checkstyle/pom.xml new file mode 100644 index 00000000000..245631bc2ba --- /dev/null +++ b/parents/checkstyle/pom.xml @@ -0,0 +1,7 @@ + + 4.0.0 + Apache CloudStack Checkstyle Configuration + org.apache.cloudstack + checkstyle + 0.0.1-SNAPSHOT + diff --git a/parents/checkstyle/src/main/resources/tooling/checkstyle.xml b/parents/checkstyle/src/main/resources/tooling/checkstyle.xml new file mode 100644 index 00000000000..84653839754 --- /dev/null +++ b/parents/checkstyle/src/main/resources/tooling/checkstyle.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + diff --git a/plugins/network-elements/nicira-nvp/pom.xml b/plugins/network-elements/nicira-nvp/pom.xml index 5030ddf02c5..5c65e6a8180 100644 --- a/plugins/network-elements/nicira-nvp/pom.xml +++ b/plugins/network-elements/nicira-nvp/pom.xml @@ -26,4 +26,39 @@ 4.3.0-SNAPSHOT ../../pom.xml + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + ${cs.checkstyle.version} + + + org.apache.cloudstack + checkstyle + 0.0.1-SNAPSHOT + + + + + process-sources + + check + + + + + true + tooling/checkstyle.xml + true + true + ${project.basedir} + **\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat + **\/target\/,**\/bin\/ + + + + + diff --git a/pom.xml b/pom.xml index 82ee75d95e1..b8b2a37d3b7 100644 --- a/pom.xml +++ b/pom.xml @@ -86,6 +86,7 @@ target 1.0.10 4.0.0 + 2.10 @@ -174,6 +175,7 @@ services maven-standard quickcloud + parents/checkstyle