From 9dc04ce3df02991d115d4a5df4a00b421075485f Mon Sep 17 00:00:00 2001 From: Pamela Dragosh Date: Tue, 25 Sep 2018 09:52:57 -0400 Subject: Setup checkstyle and coverage Removed redundant version. Added checkstyle and code coverage declarations. Added gitignore for idea and checkstyle. Change-Id: I3600a1bacdc3aa5bb87c5c2aae961703f603d1b2 Issue-ID: POLICY-1136 Signed-off-by: Pamela Dragosh --- .gitignore | 2 + pom.xml | 181 ++++++++++++++++++++++++++++++++++++++++++++++++++++++------- 2 files changed, 163 insertions(+), 20 deletions(-) diff --git a/.gitignore b/.gitignore index 236c0b3..8ae43ea 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .DS_Store +.checkstyle .project .settings .classpath @@ -7,3 +8,4 @@ target .metadata/ /bin/ +.idea diff --git a/pom.xml b/pom.xml index decf95b..79670f2 100644 --- a/pom.xml +++ b/pom.xml @@ -19,30 +19,171 @@ --> - 4.0.0 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + 4.0.0 - - org.onap.policy.parent - integration - 2.0.0-SNAPSHOT - - + + org.onap.policy.parent + integration + 2.0.0-SNAPSHOT + + - org.onap.policy.pdp - policy-pdp - 2.0.0-SNAPSHOT + org.onap.policy.pdp + policy-pdp - pom + pom - policy-pdp - Code that implements the Policy Decision Engine common code. + policy-pdp + Code that implements the Policy Decision Engine common code. - - - ecomp-site - dav:${nexusproxy}${sitePath} - - + + + + ${project.basedir}/../target/code-coverage/jacoco-ut.exec + ${project.basedir}/../target/code-coverage/jacoco-it.exec + reuseReports + + + + + + + ecomp-site + dav:${nexusproxy}${sitePath} + + + + + + + org.jacoco + jacoco-maven-plugin + + + pre-unit-test + + prepare-agent + + + ${sonar.jacoco.reportPath} + true + + + + post-unit-test + test + + report + + + ${sonar.jacoco.reportPath} + + + + + + maven-checkstyle-plugin + + + onap-java-style + + check + + process-sources + + + onap-checkstyle/onap-java-style.xml + + ${project.build.sourceDirectory} + true + true + true + + + true + true + warning + + + + + + org.onap.oparent + checkstyle + ${oparent.version} + compile + + + + + + + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + + + **/gen/** + **/generated-sources/** + **/yang-gen/** + **/pax/** + + + + + + pre-unit-test + + prepare-agent + + + ${sonar.jacoco.reportPath} + + + + + post-unit-test + test + + report + + + ${sonar.jacoco.reportPath} + + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + 2.17,) + + check + + + + + + + + + + + + + -- cgit 1.2.3-korg