Package org.apache.maven.model.profile
Interface ProfileActivationContext
- All Known Implementing Classes:
DefaultProfileActivationContext
Deprecated.
Describes the environmental context used to determine the activation status of profiles.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Deprecated.Key of the property containing the project's packaging. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Gets the identifiers of those profiles that should be activated by explicit demand.Deprecated.Gets the identifiers of those profiles that should be deactivated by explicit demand.Deprecated.Gets the base directory of the current project (if any).Deprecated.Gets current calculated project propertiesDeprecated.Gets the system properties to use for interpolation and profile activation.Deprecated.Gets the user properties to use for interpolation and profile activation.
-
Field Details
-
PROPERTY_NAME_PACKAGING
Deprecated.Key of the property containing the project's packaging. Available ingetUserProperties()
.- Since:
- 4.0.0
- See Also:
-
-
Method Details
-
getActiveProfileIds
Deprecated.Gets the identifiers of those profiles that should be activated by explicit demand.- Returns:
- The identifiers of those profiles to activate, never
null
.
-
getInactiveProfileIds
Deprecated.Gets the identifiers of those profiles that should be deactivated by explicit demand.- Returns:
- The identifiers of those profiles to deactivate, never
null
.
-
getSystemProperties
Deprecated.Gets the system properties to use for interpolation and profile activation. The system properties are collected from the runtime environment likeSystem.getProperties()
and environment variables.- Returns:
- The execution properties, never
null
.
-
getUserProperties
Deprecated.Gets the user properties to use for interpolation and profile activation. The user properties have been configured directly by the user on his discretion, e.g. via the-Dkey=value
parameter on the command line.- Returns:
- The user properties, never
null
.
-
getProjectDirectory
File getProjectDirectory()Deprecated.Gets the base directory of the current project (if any).- Returns:
- The base directory of the current project or
null
if none.
-
getProjectProperties
Deprecated.Gets current calculated project properties- Returns:
- The project properties, never
null
.
-
ModelBuilder
instead