From 1f9897d8f6f583a1aca829a787b8839f542236b9 Mon Sep 17 00:00:00 2001 From: Pamela Dragosh Date: Tue, 25 Sep 2018 09:27:15 -0400 Subject: [PATCH] Setup checkstyle and coverage Setting this project up for future work. Added checkstyle and jacoco coverage declarations. Removed redundant version. Added entries to gitignore for idea and checkstyle. Issue-ID: POLICY-1136 Change-Id: I2068165a66c1dda29c2c4da5cf3c807b866912c2 Signed-off-by: Pamela Dragosh --- .gitignore | 2 + pom.xml | 181 ++++++++++++++++++++++++++++++++++++++++++++++++++++++------- 2 files changed, 162 insertions(+), 21 deletions(-) diff --git a/.gitignore b/.gitignore index 236c0b3b..8ae43eae 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 3215ea8b..9d34046a 100644 --- a/pom.xml +++ b/pom.xml @@ -19,32 +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.xacml-pdp - policy-xacml-pdp + org.onap.policy.xacml-pdp + policy-xacml-pdp - pom + pom - policy-xacml-pdp - This code implements the XACML PDP engine + policy-xacml-pdp + This code implements the XACML PDP engine - - + + + + ${project.basedir}/../target/code-coverage/jacoco-ut.exec + ${project.basedir}/../target/code-coverage/jacoco-it.exec + reuseReports + - - - ecomp-site - dav:${nexusproxy}${sitePath} - - + + + + + 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 + + + + + + + + + + + + + -- 2.16.6