Package org.apache.maven.profiles
Class DefaultProfileManager
java.lang.Object
org.apache.maven.profiles.DefaultProfileManager
- All Implemented Interfaces:
ProfileManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Listprivate org.codehaus.plexus.PlexusContainerprivate Listprivate Listprivate Mapprivate Properties -
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, Settings settings) Deprecated.without passing in the system properties, the SystemPropertiesProfileActivator will not work correctly in embedded envirnments.DefaultProfileManager(org.codehaus.plexus.PlexusContainer container, 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 TypeMethodDescriptionvoidactivateAsDefault(String profileId) voidaddProfile(Profile profile) voidaddProfiles(List profiles) voidexplicitlyActivate(String profileId) voidexplicitlyActivate(List profileIds) voidexplicitlyDeactivate(String profileId) voidexplicitlyDeactivate(List profileIds) private booleanvoidloadSettingsProfiles(Settings settings)
-
Field Details
-
container
private org.codehaus.plexus.PlexusContainer container -
activatedIds
-
deactivatedIds
-
defaultIds
-
profilesById
-
requestProperties
-
-
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
Deprecated.without passing in the system properties, the SystemPropertiesProfileActivator will not work correctly in embedded envirnments. -
DefaultProfileManager
public DefaultProfileManager(org.codehaus.plexus.PlexusContainer container, 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:
getRequestPropertiesin interfaceProfileManager
-
getProfilesById
- Specified by:
getProfilesByIdin interfaceProfileManager
-
addProfile
- Specified by:
addProfilein interfaceProfileManager
-
explicitlyActivate
- Specified by:
explicitlyActivatein interfaceProfileManager
-
explicitlyActivate
- Specified by:
explicitlyActivatein interfaceProfileManager
-
explicitlyDeactivate
- Specified by:
explicitlyDeactivatein interfaceProfileManager
-
explicitlyDeactivate
- Specified by:
explicitlyDeactivatein interfaceProfileManager
-
getActiveProfiles
- Specified by:
getActiveProfilesin interfaceProfileManager- Throws:
ProfileActivationException
-
isActive
- Throws:
ProfileActivationException
-
addProfiles
- Specified by:
addProfilesin interfaceProfileManager
-
activateAsDefault
- Specified by:
activateAsDefaultin interfaceProfileManager
-
getExplicitlyActivatedIds
- Specified by:
getExplicitlyActivatedIdsin interfaceProfileManager
-
getExplicitlyDeactivatedIds
- Specified by:
getExplicitlyDeactivatedIdsin interfaceProfileManager
-
getIdsActivatedByDefault
- Specified by:
getIdsActivatedByDefaultin interfaceProfileManager
-
loadSettingsProfiles
- Specified by:
loadSettingsProfilesin interfaceProfileManager
-