Install only one maven installation.
@@ -3,13 +3,11 @@ package io.jenkins.plugins.analysis.warnings.recorder;
import java.io.IOException;
import org.junit.Before;
-import org.jvnet.hudson.test.JenkinsRule;
import org.jvnet.hudson.test.ToolInstallations;
import hudson.FilePath;
import hudson.maven.MavenModuleSet;
import hudson.model.TopLevelItem;
-import hudson.tasks.Maven;
import hudson.tasks.Maven.MavenInstallation;
/**
@@ -22,9 +20,6 @@ public class MavenProjectQualityGateITest extends AbstractQualityGateITest<Maven
@Before
public void initializeMaven() throws Exception {
MavenInstallation mvn = ToolInstallations.configureMaven35();
- MavenInstallation m3 = new MavenInstallation("apache-maven-3.3.9", mvn.getHome(), JenkinsRule.NO_PROPERTIES);
- j.jenkins.getDescriptorByType(Maven.DescriptorImpl.class).setInstallations(m3);
-
}
@Override
