diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2017-11-24 15:27:22 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2017-11-24 17:19:44 +0100 |
commit | f40afe30754c424d94ed14a2c41ade382169b24e (patch) | |
tree | 5cf2a33099550156a0927e33110932b1612d8aeb /tests | |
parent | e18defef281c7d536fd630638119959e189fe6e7 (diff) | |
download | sonarqube-f40afe30754c424d94ed14a2c41ade382169b24e.tar.gz sonarqube-f40afe30754c424d94ed14a2c41ade382169b24e.zip |
Fix Maven scanner incompatibility in UpgradeTest
Signed-off-by: Simon Brandhof <simon.brandhof@sonarsource.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/test/java/org/sonarqube/tests/upgrade/UpgradeTest.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/src/test/java/org/sonarqube/tests/upgrade/UpgradeTest.java b/tests/src/test/java/org/sonarqube/tests/upgrade/UpgradeTest.java index d79f57b0ac8..87981032d64 100644 --- a/tests/src/test/java/org/sonarqube/tests/upgrade/UpgradeTest.java +++ b/tests/src/test/java/org/sonarqube/tests/upgrade/UpgradeTest.java @@ -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") |