]> source.dussan.org Git - sonarqube.git/commitdiff
Fix Maven scanner incompatibility in UpgradeTest
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Fri, 24 Nov 2017 14:27:22 +0000 (15:27 +0100)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Fri, 24 Nov 2017 16:19:44 +0000 (17:19 +0100)
Signed-off-by: Simon Brandhof <simon.brandhof@sonarsource.com>
tests/src/test/java/org/sonarqube/tests/upgrade/UpgradeTest.java

index d79f57b0ac862ad23e6618a994cfc559801cf7c1..87981032d647f0fe3fd9006c40a212966e32a58a 100644 (file)
@@ -205,7 +205,9 @@ public class UpgradeTest {
 
   private void scanProject() {
     MavenBuild build = MavenBuild.create(new File("projects/struts-1.3.9-diet/pom.xml"))
-      .setCleanPackageSonarGoals()
+      // force version of Maven scanner because recent releases do not support SonarQube versions
+      // lower than 5.6.
+      .setGoals("clean package", "org.sonarsource.scanner.maven:sonar-maven-plugin:3.3.0.603:sonar")
       // exclude pom.xml, otherwise it will be published in SQ 6.3+ and not in previous versions, resulting in a different number of
       // components
       .setProperty("sonar.exclusions", "**/pom.xml")