From 357f7c92f2511ae114eaa84547a30391e7af370f Mon Sep 17 00:00:00 2001 From: Venkata Harish K Kajur Date: Tue, 28 Feb 2017 05:22:37 +0000 Subject: Fix sonarqube 0% coverage Change-Id: I45c5cece2adcf198e3c62e8197779fcedaeb2c2e Signed-off-by: Venkata Harish K Kajur --- ajsc-aai/pom.xml | 73 +++++++++++++++++++++++++------------------------------- 1 file changed, 32 insertions(+), 41 deletions(-) diff --git a/ajsc-aai/pom.xml b/ajsc-aai/pom.xml index 0bf6c6d..9176bba 100644 --- a/ajsc-aai/pom.xml +++ b/ajsc-aai/pom.xml @@ -16,11 +16,12 @@ UTF-8 false - ${basedir}/target/jacoco.exec - java - true - jacoco - reuseReports + java + jacoco + ${project.build.directory}/surefire-reports + ${project.build.directory}/coverage-reports/jacoco.exec + false + ${project.version} @@ -348,16 +349,32 @@ aai - - - - org.sonarsource.scanner.maven - sonar-maven-plugin - 3.0.2 - - - + + org.codehaus.mojo + sonar-maven-plugin + 3.2 + + + org.jacoco + jacoco-maven-plugin + 0.7.7.201606060606 + + true + + + + jacoco-initialize-unit-tests + + prepare-agent + + + ${project.build.directory}/coverage-reports/jacoco.exec + + + + + org.apache.maven.plugins maven-resources-plugin @@ -424,31 +441,6 @@ true - - org.jacoco - jacoco-maven-plugin - 0.7.7.201606060606 - - true - - org.openecomp.* - - - - - - ${sonar.jacoco.reportPath} - - pre-test - process-test-classes - - prepare-agent - - - - - org.jvnet.jaxb2.maven2 maven-jaxb2-plugin @@ -608,8 +600,7 @@ ${skipTests} false 1 - -javaagent:${project.build.directory}/agents/powermock-javaagent.jar - -noverify ${argLine} + -noverify ${argLine} . bundleconfig-local -- cgit 1.2.3-korg