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 Profiles converted from the
org.apache.maven.profiles.Profiles 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
IProfileManagerIMavenProjectFacade synchronously.updateActiveProfiles in interface IProfileManagermavenProjectFacade - 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.CoreExceptionpublic Map<org.apache.maven.model.Profile,Boolean> getAvailableSettingsProfiles() throws org.eclipse.core.runtime.CoreException
IProfileManagerMap of all available Profiles converted from the
org.apache.maven.profiles.Profiles as defined in settings.xml.Entry indicates if the profile is active.getAvailableSettingsProfiles in interface IProfileManagerMap of all the available profiles for a given project.org.eclipse.core.runtime.CoreExceptionpublic List<ProfileData> getProfileDatas(IMavenProjectFacade facade, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
IProfileManagerProfileData for the given mavenProjectFacadegetProfileDatas in interface IProfileManagerfacade - a facade of the maven projectmonitor - a progress monitorProfileData for the given mavenProjectFacade.org.eclipse.core.runtime.CoreExceptionprotected 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.CoreExceptionprotected 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.CoreExceptionCopyright © 2005–2021 Eclipse Foundation. All rights reserved.