From: Pamela Dragosh Date: Tue, 25 Sep 2018 14:06:07 +0000 (-0400) Subject: Setup checkstyle and coverage X-Git-Tag: 3.0.2-ONAP~115 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=f973f58d6640756a72783830e140ef59af0aede3;p=policy%2Fmodels.git Setup checkstyle and coverage Remove redundant version. Add checkstyle and code coverage declarations. Add ignore of idea and checkstyle. Change-Id: I136628900968cc8ddc0577eb24965d9a221dedf3 Issue-ID: POLICY-1136 Signed-off-by: Pamela Dragosh --- diff --git a/.gitignore b/.gitignore index 236c0b3b4..8ae43eae7 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 fcbaa5f0e..1a90839a1 100644 --- a/pom.xml +++ b/pom.xml @@ -29,15 +29,158 @@ org.onap.policy.models policy-models - 2.0.0-SNAPSHOT + pom policy-models This repo will hold model code agnostic to PDP engines + + + + ${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 + + + + + + + + + + + + +