diff --git a/pom.xml b/pom.xml index 672ce95..a1e8005 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ org.carlspring.strongbox strongbox-parent - 1.0-SNAPSHOT + 1.0-PR-63-SNAPSHOT pom Strongbox: Parent @@ -53,6 +53,13 @@ localhost 48080 + + java + jacoco + target/jacoco-merged/jacoco-merged-report/jacoco.xml + **/*Test.java,**/*TestIT.java,**/*Exception.java,**/InMemoryOrientDbConfig.java + + 6.0.1-SNAPSHOT @@ -98,7 +105,8 @@ 4.0.1 6.0 5.87.0.RELEASE - 0.8.2 + 0.8.4 + 3.7.0.1746 1.1.0 0.9.34-SNAPSHOT 2.9.2 @@ -162,7 +170,8 @@ true false - -Xmx1024m -Xms512m ${surefireArgLine} + + @{surefireArgLine} -Xmx1024m -Xms512m **/*Test @@ -170,9 +179,6 @@ **/*TestIT - - 1 - ${project.build.directory}/strongbox ${project.build.directory}/strongbox-vault @@ -187,13 +193,6 @@ false false - - - - listener - org.sonar.java.jacoco.JUnitListener - - @@ -203,7 +202,8 @@ false - ${failsafeArgLine} + + @{failsafeArgLine} ${project.build.directory}/strongbox ${project.build.directory}/strongbox-vault @@ -239,7 +239,7 @@ strongbox-common-resources ${project.version} jar - + true ${strongbox.home}/etc logback*xml @@ -249,7 +249,7 @@ strongbox-storage-api-resources ${project.version} jar - + true ${strongbox.home} etc/conf/strongbox.yaml @@ -259,7 +259,7 @@ strongbox-common-resources ${project.version} jar - + true ${strongbox.home} etc/** @@ -285,7 +285,7 @@ deploy -DaltDeploymentRepository=${serverId}::default::${deployUrl} - + org.codehaus.mojo build-helper-maven-plugin @@ -1389,6 +1389,11 @@ + + org.sonarsource.scanner.maven + sonar-maven-plugin + ${version.sonar-maven-plugin} + org.jacoco jacoco-maven-plugin @@ -1400,130 +1405,124 @@ org.jacoco jacoco-maven-plugin + ${version.jacoco} + true true + + org/carlspring/** + + + org/carlspring/strongbox/app/* + org/carlspring/strongbox/config/* + org/carlspring/strongbox/data/server/InMemoryOrientDbServer.class + com/orientechnologies/* + org/orientechnologies/* + org/springframework/* + com/hazelcast/* + *Test.java + *TestIT.java + *Exception.java + - - pre-unit-test + prepare-unit-test-agent prepare-agent - - ${project.build.directory}/jacoco-ut.exec - + ${project.build.directory}/jacoco/jacoco-ut.exec surefireArgLine - - - - pre-integration-test - pre-integration-test + prepare-integration-test-agent - prepare-agent + prepare-agent-integration + pre-integration-test - - ${project.build.directory}/jacoco-it.exec - + ${project.build.directory}/jacoco/jacoco-it.exec failsafeArgLine - - - merge-results - verify + report-unit-tests + + report + + + ${project.build.directory}/jacoco/jacoco-ut.exec + ${project.build.directory}/jacoco/jacoco-ut + + + + report-integration-tests + + report-integration + + + ${project.build.directory}/jacoco/jacoco-it.exec + ${project.build.directory}/jacoco/jacoco-it + + + + merge-unit-and-integration + post-integration-test merge - ${project.build.directory} + ${project.build.directory}/jacoco/ - jacoco-it.exec - jacoco-ut.exec + jacoco-*.exec - ${project.build.directory}/jacoco-aggregated.exec + ${project.build.directory}/jacoco-merged/jacoco.exec - - - report-coverage - verify + create-merged-report + post-integration-test report - - ${project.build.directory}/jacoco-aggregated.exec - - ${project.reporting.outputDirectory}/jacoco-aggregated-report + ${project.build.directory}/jacoco-merged/jacoco.exec + ${project.build.directory}/jacoco-merged/jacoco-merged-report - - - - - - - - - codacy - - false - - - - - - com.gavinmogan - codacy-maven-plugin - ${version.codacy.mvn.plugin} - - - - - - - com.gavinmogan - codacy-maven-plugin - - - ${project.reporting.outputDirectory}/jacoco-aggregated-report/jacoco.xml - ${env.CODACY_API_TOKEN} - ${env.CODACY_PROJECT_TOKEN_STRONGBOX} - ${env.GIT_COMMIT} - https://api.codacy.com - false - - - post-test + check verify - coverage + check + + + false + + + BUNDLE + + *Test.java + *TestIT.java + + + + INSTRUCTION + COVEREDRATIO + 0.7 + + + + + ${project.build.directory}/jacoco-merged/jacoco.exec +