use of org.apache.maven.profiles.DefaultProfileManager in project intellij-community by JetBrains.
the class MavenEmbedder method createProfileManager.
private ProfileManager createProfileManager(List<String> activeProfiles, List<String> inactiveProfiles, Properties executionProperties) {
ProfileManager profileManager = new DefaultProfileManager(getContainer(), executionProperties);
profileManager.explicitlyActivate(activeProfiles);
profileManager.explicitlyDeactivate(inactiveProfiles);
return profileManager;
}
use of org.apache.maven.profiles.DefaultProfileManager in project maven-plugins by apache.
the class AbstractProjectInfoTestCase method generateReport.
protected File generateReport(AbstractProjectInfoReport mojo, File pluginXmlFile) throws Exception {
mojo.execute();
MavenProjectBuilder builder = (MavenProjectBuilder) lookup(MavenProjectBuilder.ROLE);
ProfileManager profileManager = new DefaultProfileManager(getContainer(), null, null);
assertNotNull("Local repository", mojo.localRepository);
testMavenProject = builder.buildWithDependencies(pluginXmlFile, mojo.localRepository, profileManager);
File outputDir = mojo.getReportOutputDirectory();
String filename = mojo.getOutputName() + ".html";
return new File(outputDir, filename);
}
Aggregations