From 78f196d0c0db01c6ce1a99be29b714cb5613c350 Mon Sep 17 00:00:00 2001 From: Pamela Dragosh Date: Tue, 25 Sep 2018 09:57:11 -0400 Subject: [PATCH] Setup checkstyle and coverage Removed redundant version. Added checkstyle and code coverage declarations. Added ignore of idea and checkstyle. Issue-ID: POLICY-1136 Change-Id: Ia2f2428577ba0bf992cba8a5ad5f68d34d5deff8 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 4a565ff..52ac88c 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.gui - policy-gui - 2.0.0-SNAPSHOT + org.onap.policy.gui + policy-gui - pom + pom - policy-gui - Code that all the Policy GUI's. + policy-gui + Code that all the Policy GUI's. - - - 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 + + + + + + + + + + + + + -- 2.16.6