From 9f93f7960c97642a79ed30b84d5127017ed9fc73 Mon Sep 17 00:00:00 2001 From: Claudio David Gasparini Date: Fri, 18 Dec 2020 14:37:27 +0100 Subject: Introduce spotbug plugin Issue-ID: CPS-159 Signed-off-by: Claudio David Gasparini Change-Id: I889b3009505421621007031fb99a43c5cd30be82 --- cps-bom/pom.xml | 5 ++ cps-dependencies/pom.xml | 6 +++ cps-parent/pom.xml | 68 ++++++++++++++++++++++++ pom.xml | 1 + spotbugs/pom.xml | 28 ++++++++++ spotbugs/src/main/resources/spotbugs-exclude.xml | 27 ++++++++++ 6 files changed, 135 insertions(+) create mode 100644 spotbugs/pom.xml create mode 100644 spotbugs/src/main/resources/spotbugs-exclude.xml diff --git a/cps-bom/pom.xml b/cps-bom/pom.xml index 520a484153..7d023a5912 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 a77deff98a..cf744e8890 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 55db1a198e..1f6ae2c8c7 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 e5c6df3365..2ff88c11b8 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 0000000000..133c4f7319 --- /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 0000000000..c46270c1cd --- /dev/null +++ b/spotbugs/src/main/resources/spotbugs-exclude.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + -- cgit 1.2.3-korg