Package org.apache.maven.profiles
Class DefaultProfileManager
java.lang.Object
org.apache.maven.profiles.DefaultProfileManager
- All Implemented Interfaces:
ProfileManager
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultProfileManager
(org.codehaus.plexus.PlexusContainer container) Deprecated.without passing in the system properties, the SystemPropertiesProfileActivator will not work correctly in embedded envirnments.DefaultProfileManager
(org.codehaus.plexus.PlexusContainer container, Properties props) the properties passed to the profile manager are the props that are passed to maven, possibly containing profile activator propertiesDefaultProfileManager
(org.codehaus.plexus.PlexusContainer container, org.apache.maven.settings.Settings settings) Deprecated.without passing in the system properties, the SystemPropertiesProfileActivator will not work correctly in embedded envirnments.DefaultProfileManager
(org.codehaus.plexus.PlexusContainer container, org.apache.maven.settings.Settings settings, Properties props) the properties passed to the profile manager are the props that are passed to maven, possibly containing profile activator properties -
Method Summary
Modifier and TypeMethodDescriptionvoid
activateAsDefault
(String profileId) void
addProfile
(org.apache.maven.model.Profile profile) void
addProfiles
(List profiles) void
explicitlyActivate
(String profileId) void
explicitlyActivate
(List profileIds) void
explicitlyDeactivate
(String profileId) void
explicitlyDeactivate
(List profileIds) void
loadSettingsProfiles
(org.apache.maven.settings.Settings settings)
-
Constructor Details
-
DefaultProfileManager
public DefaultProfileManager(org.codehaus.plexus.PlexusContainer container) Deprecated.without passing in the system properties, the SystemPropertiesProfileActivator will not work correctly in embedded envirnments. -
DefaultProfileManager
the properties passed to the profile manager are the props that are passed to maven, possibly containing profile activator properties -
DefaultProfileManager
public DefaultProfileManager(org.codehaus.plexus.PlexusContainer container, org.apache.maven.settings.Settings settings) Deprecated.without passing in the system properties, the SystemPropertiesProfileActivator will not work correctly in embedded envirnments. -
DefaultProfileManager
public DefaultProfileManager(org.codehaus.plexus.PlexusContainer container, org.apache.maven.settings.Settings settings, Properties props) the properties passed to the profile manager are the props that are passed to maven, possibly containing profile activator properties
-
-
Method Details
-
getRequestProperties
- Specified by:
getRequestProperties
in interfaceProfileManager
-
getProfilesById
- Specified by:
getProfilesById
in interfaceProfileManager
-
addProfile
public void addProfile(org.apache.maven.model.Profile profile) - Specified by:
addProfile
in interfaceProfileManager
-
explicitlyActivate
- Specified by:
explicitlyActivate
in interfaceProfileManager
-
explicitlyActivate
- Specified by:
explicitlyActivate
in interfaceProfileManager
-
explicitlyDeactivate
- Specified by:
explicitlyDeactivate
in interfaceProfileManager
-
explicitlyDeactivate
- Specified by:
explicitlyDeactivate
in interfaceProfileManager
-
getActiveProfiles
- Specified by:
getActiveProfiles
in interfaceProfileManager
- Throws:
ProfileActivationException
-
addProfiles
- Specified by:
addProfiles
in interfaceProfileManager
-
activateAsDefault
- Specified by:
activateAsDefault
in interfaceProfileManager
-
getExplicitlyActivatedIds
- Specified by:
getExplicitlyActivatedIds
in interfaceProfileManager
-
getExplicitlyDeactivatedIds
- Specified by:
getExplicitlyDeactivatedIds
in interfaceProfileManager
-
getIdsActivatedByDefault
- Specified by:
getIdsActivatedByDefault
in interfaceProfileManager
-
loadSettingsProfiles
public void loadSettingsProfiles(org.apache.maven.settings.Settings settings) - Specified by:
loadSettingsProfiles
in interfaceProfileManager
-