From: Gustavo Martin Morcuende Date: Sun, 31 Jul 2016 17:42:51 +0000 (+0200) Subject: Getting ready for integration with Sonar (using Jacoco maven plugin) X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=cf3c80e4613ad0e9295c9914cf762622b3825611;p=JavaForFun Getting ready for integration with Sonar (using Jacoco maven plugin) --- diff --git a/SpringJava/JPA/README b/SpringJava/JPA/README index dc1ff9f..a9991b4 100644 --- a/SpringJava/JPA/README +++ b/SpringJava/JPA/README @@ -1,5 +1,6 @@ mvn clean install mvn clean install -Dmaven.test.skip=true +mvn clean install -Pintegration mvn dependency:sources mvn dependency:resolve -Dclassifier=javadoc diff --git a/SpringJava/JPA/spring-jpa-bom/pom.xml b/SpringJava/JPA/spring-jpa-bom/pom.xml index ff4360e..140e290 100644 --- a/SpringJava/JPA/spring-jpa-bom/pom.xml +++ b/SpringJava/JPA/spring-jpa-bom/pom.xml @@ -30,17 +30,38 @@ UTF-8 4.3.0.RELEASE 4.1.3 + ${project.basedir}/target/jacoco-it.exec + ${project.basedir}/target/jacoco.exec + false + true + + development + + development + Desarrollo local + + + true + + + + integration + + integration + Integration + false + + - release + production - release + production + Production + false - - true - @@ -328,17 +349,6 @@ - - org.apache.maven.plugins - maven-surefire-plugin - 2.19.1 - - - org.apache.maven.plugins - maven-failsafe-plugin - 2.19.1 - - com.mysema.maven @@ -390,32 +400,182 @@ - - org.apache.maven.plugins - maven-surefire-plugin - - - **/*IntegrationTest.java - - - + + org.jacoco + jacoco-maven-plugin + 0.7.7.201606060606 + + + + pre-unit-test + + prepare-agent + + + + ${jacoco.ut.execution.data.file} + + surefireArgLine + + + + + post-unit-test + test + + report + + + + ${jacoco.ut.execution.data.file} + + ${project.reporting.outputDirectory}/jacoco-ut + + + + + pre-integration-test + pre-integration-test + + prepare-agent + + + + ${jacoco.it.execution.data.file} + + failsafeArgLine + + + + + post-integration-test + post-integration-test + + report + + + + ${jacoco.it.execution.data.file} + + ${project.reporting.outputDirectory}/jacoco-it + + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + org.jacoco + jacoco-maven-plugin + [0.5,) + + + prepare-agent + + + + + + + + + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.19.1 + + + org.apache.maven.surefire + surefire-junit47 + 2.19.1 + + + + + -Dfile.encoding=${project.build.sourceEncoding} + ${surefireArgLine} + + ${skip.unit.tests} + + + **/*IT.java + **/*IntegrationTest.java + + + + + org.apache.maven.plugins maven-failsafe-plugin + 2.19.1 integration-test verify + + + ${failsafeArgLine} + + + ${skip.integration.tests} + + **/*IT.java + **/*IntegrationTest.java + + - - - **/*IntegrationTest.java - - + + + + + org.apache.maven.plugins + maven-project-info-reports-plugin + 2.9 + + + org.apache.maven.plugins + maven-surefire-report-plugin + 2.19.1 + + + + report-only + + + + + + org.apache.maven.plugins + maven-jxr-plugin + 2.5 + + + +