Skip to content

Commit ee91a82

Browse files
author
Gabriella Turek
committed
Added sonarscanner plugin for reporting to SonarQube
1 parent 5c5e18d commit ee91a82

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

pom.xml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@
271271
<nexus-staging-maven-plugin.version>1.6.8</nexus-staging-maven-plugin.version>
272272
<revapi-maven-plugin.version>0.11.5</revapi-maven-plugin.version>
273273
<scijava-maven-plugin.version>2.0.0</scijava-maven-plugin.version>
274+
<sonarscanner-maven-plugin.version>3.7.0.1746</sonarscanner-maven-plugin.version>
274275

275276
<!-- Plugin dependencies -->
276277
<extra-enforcer-rules.version>1.2</extra-enforcer-rules.version>
@@ -281,6 +282,9 @@
281282

282283
<!-- Build extensions -->
283284
<wagon-webdav-jackrabbit.version>1.0</wagon-webdav-jackrabbit.version>
285+
286+
<!-- SonarQube server instance -->
287+
<sonar.host.url>https://fiji-qa.mpi-cbg.de/</sonar.host.url>
284288
</properties>
285289

286290
<build>
@@ -519,7 +523,7 @@
519523
Sometimes, one needs to pass JVM options to the JVM running the
520524
unit tests, such as -verbose:class or -Djava.awt.headless=true.
521525
522-
Unfortunately, maven-surefire does not expose a command-line
526+
Unfortunately, maven-surefire does not expose a command-line
523527
interface to do so, therefore let's simulate it by using our
524528
own property 'scijava.surefire.args' to specify those options.
525529
-->
@@ -690,6 +694,17 @@
690694
</executions>
691695
</plugin>
692696

697+
<!--
698+
SonarScanner Maven plugin -
699+
https://docs.sonarqube.org/latest/analysis/scan/sonarscanner-for-maven/
700+
SonarQube scanner for java projects.
701+
-->
702+
<plugin>
703+
<groupId>org.sonarsource.scanner.maven</groupId>
704+
<artifactId>sonar-maven-plugin</artifactId>
705+
<version>${sonarscanner-maven-plugin.version}</version>
706+
</plugin>
707+
693708
<!--
694709
JavaFX Maven plugin -
695710
https://github.com/javafx-maven-plugin/javafx-maven-plugin
@@ -1390,7 +1405,7 @@
13901405
</configuration>
13911406
</execution>
13921407
</executions>
1393-
</plugin>
1408+
</plugin>
13941409
</plugins>
13951410
</build>
13961411
</profile>
@@ -1874,7 +1889,6 @@
18741889
folder. It may catch some undangerous bugs, so it is better to set the
18751890
failOnError variable to false.
18761891
-->
1877-
18781892
<profile>
18791893
<id>findbugs</id>
18801894
<activation>

0 commit comments

Comments
 (0)