From: Julien Lancelot Date: Tue, 1 Aug 2017 05:30:20 +0000 (+0200) Subject: Add "clean package" goals before analysing project X-Git-Tag: 6.5~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=db8cd4e8c5afc1778bc88fc2dccdcd59206720aa;p=sonarqube.git Add "clean package" goals before analysing project The Java plugin now requires compiled classes --- 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 83cf0c1ac91..dd1ceff6f9c 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,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")