public class ProfileManager extends Object implements IProfileManager
Constructor and Description |
---|
ProfileManager() |
Modifier and Type | Method and Description |
---|---|
protected List<org.apache.maven.model.Profile> |
collectAvailableProfiles(List<org.apache.maven.model.Model> models,
org.eclipse.core.runtime.IProgressMonitor monitor) |
Map<org.apache.maven.model.Profile,Boolean> |
getAvailableSettingsProfiles()
Returns an unmodifiable
Map of all available Profile s converted from the
org.apache.maven.profiles.Profile s as defined in settings.xml.The value of each Entry indicates if the profile is active. |
protected List<org.apache.maven.model.Model> |
getModelHierarchy(List<org.apache.maven.model.Model> models,
org.apache.maven.model.Model projectModel,
org.eclipse.core.runtime.IProgressMonitor monitor) |
List<ProfileData> |
getProfileDatas(IMavenProjectFacade facade,
org.eclipse.core.runtime.IProgressMonitor monitor)
Returns a List of
ProfileData for the given mavenProjectFacade |
void |
updateActiveProfiles(IMavenProjectFacade mavenProjectFacade,
List<String> profiles,
boolean isOffline,
boolean isForceUpdate,
org.eclipse.core.runtime.IProgressMonitor monitor)
Update the profiles of the resolver configuration of a
IMavenProjectFacade synchronously. |
public void updateActiveProfiles(IMavenProjectFacade mavenProjectFacade, List<String> profiles, boolean isOffline, boolean isForceUpdate, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
IProfileManager
IMavenProjectFacade
synchronously.updateActiveProfiles
in interface IProfileManager
mavenProjectFacade
- a facade of the maven projectprofiles
- the profile ids to use in the project's resolver configurationisOffline
- indicates if the maven request must be executed offlineisForceUpdate
- indicates if a check for updated releases and snapshots on remote repositories must be forced.monitor
- a progress monitororg.eclipse.core.runtime.CoreException
public Map<org.apache.maven.model.Profile,Boolean> getAvailableSettingsProfiles() throws org.eclipse.core.runtime.CoreException
IProfileManager
Map
of all available Profile
s converted from the
org.apache.maven.profiles.Profile
s as defined in settings.xml.Entry
indicates if the profile is active.getAvailableSettingsProfiles
in interface IProfileManager
Map
of all the available profiles for a given project.org.eclipse.core.runtime.CoreException
public List<ProfileData> getProfileDatas(IMavenProjectFacade facade, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
IProfileManager
ProfileData
for the given mavenProjectFacadegetProfileDatas
in interface IProfileManager
facade
- a facade of the maven projectmonitor
- a progress monitorProfileData
for the given mavenProjectFacade.org.eclipse.core.runtime.CoreException
protected List<org.apache.maven.model.Profile> collectAvailableProfiles(List<org.apache.maven.model.Model> models, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
protected List<org.apache.maven.model.Model> getModelHierarchy(List<org.apache.maven.model.Model> models, org.apache.maven.model.Model projectModel, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
Copyright © 2005–2015 Sonatype, Inc.. All rights reserved.