From b9c0d0e490e499c3fc4240ad3cb4bfda2d29caf1 Mon Sep 17 00:00:00 2001 From: Pamela Dragosh Date: Tue, 25 Sep 2018 10:18:17 -0400 Subject: Setup checkstyle and coverage Remove redundant version. Add checkstyle and coverage declarations. Add ignore of idea and checkstyle. Change-Id: I7ab848ed6594f12a48f3b685874c6966f56b3800 Issue-ID: POLICY-1136 Signed-off-by: Pamela Dragosh --- .gitignore | 2 + pom.xml | 146 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 146 insertions(+), 2 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 12604bf..722012c 100644 --- a/pom.xml +++ b/pom.xml @@ -30,15 +30,157 @@ org.onap.policy.core policy-core pom - 2.0.0-SNAPSHOT + policy-core Core code shared among all policy repos + + + + ${project.basedir}/../target/code-coverage/jacoco-ut.exec + ${project.basedir}/../target/code-coverage/jacoco-it.exec + reuseReports + + + + + ecomp-site - dav:${onap.nexus.url}${sitePath} + 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