maven-cobertura-plugin

How to define complex Maven properties in the comand line

北慕城南 提交于 2020-05-15 11:34:46
问题 I'm using the Maven cobertura plugin to retrieve my unit test code covering and I'm using it through the command line: mvn cobertura:cobertura What I would like to do is configure the exclusions from command line. As you can see from the official documentation, we can configure an instrumentation user property. This Instrumentation Configuration object has the below structure: <instrumentation> <excludes> <exclude>com/example/dullcode/**/*.class</exclude> </excludes> </instrumentation> Is

Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin: 3.2:sonar

拟墨画扇 提交于 2020-01-23 08:14:29
问题 Can anyone help me in getting solution for the below error. Below are the version of the components to configure SonarQube 5.1.2 Soanr-Runner 2.4 Java 1.7 [ I have to use 1.7 only since my code supports only 1.7 ] mavn 3.3.9 sonar-cobertura-plugin-1.6.3 sonar-findbugs-plugin-3.3 cobertura 2.6 Execution command mvn -fn -e org.sonarsource.scanner.maven:sonar-maven-plugin:RELEASE:sonar -Dsonar.jdbc.url="jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8

Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin: 3.2:sonar

杀马特。学长 韩版系。学妹 提交于 2020-01-23 08:13:27
问题 Can anyone help me in getting solution for the below error. Below are the version of the components to configure SonarQube 5.1.2 Soanr-Runner 2.4 Java 1.7 [ I have to use 1.7 only since my code supports only 1.7 ] mavn 3.3.9 sonar-cobertura-plugin-1.6.3 sonar-findbugs-plugin-3.3 cobertura 2.6 Execution command mvn -fn -e org.sonarsource.scanner.maven:sonar-maven-plugin:RELEASE:sonar -Dsonar.jdbc.url="jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8

SonarQube 4.4 not displaying cobertura unit tests or code coverage for grails 2.4.3 with spock tests

China☆狼群 提交于 2019-12-10 17:12:06
问题 I have SonarQube 4.4 installed on my machine. I am trying to generate metrics for a grails (2.4.3) project that has tests written in Spock framework. However, sonar does not show unit tests results or unit tests coverage. I verified that cobertura coverage.xml gets generated in the path provided below target/test-reports/cobertura/coverage.xml And I have sonar.groovy.cobertura.reportPath property in my pom.xml mapped to the above path. Running mvn sonar:sonar (maven version 3.2.3) on this

cobertura-maven-plugin with Java 8

浪尽此生 提交于 2019-12-06 18:45:11
问题 Is it just me or the cobertura-maven-plugin doesn't work with java 8? when it runs I get [INFO] --- cobertura-maven-plugin:2.6:instrument (default) @ provider-impl --- [INFO] Cobertura 2.0.3 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file [cobertura] WARN [main] net.sourceforge.cobertura.instrument.CoberturaInstrumenter - Unable to instrument file /var/lib/jenkins/workspace/BranchBuilder/implementations/provider-impl/target/generated-classes/cobertura/com/foo/impl/internal