]> source.dussan.org Git - sonarqube.git/commitdiff
Add "clean package" goals before analysing project
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Tue, 1 Aug 2017 05:30:20 +0000 (07:30 +0200)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Tue, 1 Aug 2017 06:08:57 +0000 (08:08 +0200)
The Java plugin now requires compiled classes

tests/src/test/java/org/sonarqube/tests/upgrade/UpgradeTest.java

index 83cf0c1ac91d44a962fef09cccd3ec1dd7a70c3f..dd1ceff6f9cdd2da2c3db74318d5cef79c18aa9b 100644 (file)
@@ -205,7 +205,7 @@ public class UpgradeTest {
 
   private void scanProject() {
     MavenBuild build = MavenBuild.create(new File("projects/struts-1.3.9-diet/pom.xml"))
-      .setCleanSonarGoals()
+      .setCleanPackageSonarGoals()
       // 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")
       .setProperty("sonar.dynamicAnalysis", "false")