<artifactId>sonar-packaging-maven-plugin</artifactId>
<version>1.15</version>
</plugin>
- <plugin>
- <!-- declared to avoid enforcer error during SQ analysis when Clirr plugin installed -->
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>clirr-maven-plugin</artifactId>
- <version>2.6.1</version>
- </plugin>
<plugin>
<groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId>
<name>SonarQube :: Plugin API</name>
- <properties>
- <sonar.clirr.reportPath>${project.build.directory}/clirr-report.txt</sonar.clirr.reportPath>
- </properties>
-
<dependencies>
<!--
</resources>
</build>
- <profiles>
- <profile>
- <id>clirr</id>
- <activation>
- <property>
- <name>clirr</name>
- <value>true</value>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>clirr-maven-plugin</artifactId>
- <configuration>
- <comparisonVersion>5.6</comparisonVersion>
- <textOutputFile>${project.build.directory}/clirr-report.txt</textOutputFile>
- <linkXRef>false</linkXRef>
- <failOnError>false</failOnError>
- <excludes>
- <exclude>**/internal/**</exclude>
- </excludes>
- </configuration>
- <executions>
- <execution>
- <id>clirr</id>
- <goals>
- <goal>check-no-fork</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
-
</project>
export MAVEN_OPTS="-Xmx1G -Xms128m"
mvn org.jacoco:jacoco-maven-plugin:prepare-agent verify sonar:sonar \
- -Dclirr=true \
-Dsonar.analysis.mode=issues \
-Dsonar.github.pullRequest=$TRAVIS_PULL_REQUEST \
-Dsonar.github.repository=$TRAVIS_REPO_SLUG \