From: Claudio David Gasparini Date: Fri, 18 Dec 2020 13:37:27 +0000 (+0100) Subject: Introduce spotbug plugin X-Git-Tag: 0.0.1~68^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=cps.git;a=commitdiff_plain;h=9f93f7960c97642a79ed30b84d5127017ed9fc73 Introduce spotbug plugin Issue-ID: CPS-159 Signed-off-by: Claudio David Gasparini Change-Id: I889b3009505421621007031fb99a43c5cd30be82 --- diff --git a/cps-bom/pom.xml b/cps-bom/pom.xml index 520a48415..7d023a591 100644 --- a/cps-bom/pom.xml +++ b/cps-bom/pom.xml @@ -51,6 +51,11 @@ checkstyle ${project.version} + + org.onap.cps + spotbugs + ${project.version} + \ No newline at end of file diff --git a/cps-dependencies/pom.xml b/cps-dependencies/pom.xml index a77deff98..cf744e889 100755 --- a/cps-dependencies/pom.xml +++ b/cps-dependencies/pom.xml @@ -23,6 +23,7 @@ 2.3.8 2.0-M2-groovy-3.0 1.3-groovy-2.5 + 4.2.0 2.3.3.RELEASE 3.0.0 2.1.4 @@ -109,6 +110,11 @@ postgresql ${testcontainers.version} + + com.github.spotbugs + spotbugs + ${spotbugs.version} + diff --git a/cps-parent/pom.xml b/cps-parent/pom.xml index 55db1a198..1f6ae2c8c 100644 --- a/cps-parent/pom.xml +++ b/cps-parent/pom.xml @@ -26,7 +26,11 @@ UTF-8 /content/repositories/releases/ nexus3.onap.org:10001/onap/cps-service + 4.1.3 2.3.3.RELEASE + 1.8.0-beta4 + 1.5.0 + 4.2.0 3.0.18 /content/repositories/snapshots/ ${project.version} @@ -197,6 +201,66 @@ + + com.github.spotbugs + spotbugs-maven-plugin + ${spotbugs-maven-plugin.version} + + + com.github.spotbugs + spotbugs + ${spotbugs.version} + + + ${project.groupId} + spotbugs + ${project.version} + + + + org.slf4j + slf4j-simple + ${spotbugs.slf4j.version} + + + + + + jp.skypencil.findbugs.slf4j + bug-pattern + 1.5.0 + + + + Max + + Low + + false + + spotbugs-exclude.xml + + true + + ${project.build.directory}/spotbugs + + + + + analyze-compile + compile + + check + + + + @@ -360,6 +424,10 @@ + + com.github.spotbugs + spotbugs-maven-plugin + \ No newline at end of file diff --git a/pom.xml b/pom.xml index e5c6df336..2ff88c11b 100644 --- a/pom.xml +++ b/pom.xml @@ -34,5 +34,6 @@ cps-rest cps-ri checkstyle + spotbugs diff --git a/spotbugs/pom.xml b/spotbugs/pom.xml new file mode 100644 index 000000000..133c4f731 --- /dev/null +++ b/spotbugs/pom.xml @@ -0,0 +1,28 @@ + + + 4.0.0 + org.onap.cps + spotbugs + 0.0.1-SNAPSHOT + + + https://nexus.onap.org + /content/repositories/releases/ + /content/repositories/snapshots/ + + + + + ecomp-releases + ECOMP Release Repository + ${nexusproxy}${releaseNexusPath} + + + ecomp-snapshots + ECOMP Snapshot Repository + ${nexusproxy}${snapshotNexusPath} + + + \ No newline at end of file diff --git a/spotbugs/src/main/resources/spotbugs-exclude.xml b/spotbugs/src/main/resources/spotbugs-exclude.xml new file mode 100644 index 000000000..c46270c1c --- /dev/null +++ b/spotbugs/src/main/resources/spotbugs-exclude.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + +