Package org.apache.maven.api.model
Class Profile
java.lang.Object
org.apache.maven.api.model.ModelBase
org.apache.maven.api.model.Profile
- All Implemented Interfaces:
- Serializable,- InputLocationTracker
@Experimental
@Generated
@ThreadSafe
@Immutable
public class Profile
extends ModelBase
implements Serializable, InputLocationTracker
Modifications to the build process which is activated based on environmental
 parameters or command line arguments.
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create Profile instances.
- 
Field SummaryFields
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedProfile(Profile.Builder builder) Constructor for this class, to be called from its subclasses andProfile.Builder.
- 
Method SummaryModifier and TypeMethodDescriptionThe conditional logic which will automatically trigger the inclusion of this profile.getBuild()Information required to build the project.getId()The identifier of this build profile.getLocation(Object key) Gets the location of the specified field in the input source.Gets the keys of the locations of the input source.static Profile.BuilderCreates a newProfilebuilder instance.static Profile.BuildernewBuilder(boolean withDefaults) Creates a newProfilebuilder instance using default values or not.static Profile.BuildernewBuilder(Profile from) Creates a newProfilebuilder instance using the specified object as a basis.static Profile.BuildernewBuilder(Profile from, boolean forceCopy) Creates a newProfilebuilder instance using the specified object as a basis.static ProfileCreates a newProfileinstance.static ProfilenewInstance(boolean withDefaults) Creates a newProfileinstance using default values or not.voidtoString()with()Creates a new builder with this object as the basis.withActivation(Activation activation) Creates a newProfileinstance using the specified activation.Creates a newProfileinstance using the specified build.withDependencies(Collection<Dependency> dependencies) Creates a newProfileinstance using the specified dependencies.withDependencyManagement(DependencyManagement dependencyManagement) Creates a newProfileinstance using the specified dependencyManagement.withDistributionManagement(DistributionManagement distributionManagement) Creates a newProfileinstance using the specified distributionManagement.Creates a newProfileinstance using the specified id.withModules(Collection<String> modules) Deprecated.withPluginRepositories(Collection<Repository> pluginRepositories) Creates a newProfileinstance using the specified pluginRepositories.withProperties(Map<String, String> properties) Creates a newProfileinstance using the specified properties.withReporting(Reporting reporting) Creates a newProfileinstance using the specified reporting.withRepositories(Collection<Repository> repositories) Creates a newProfileinstance using the specified repositories.withSubprojects(Collection<String> subprojects) Creates a newProfileinstance using the specified subprojects.Methods inherited from class org.apache.maven.api.model.ModelBasegetDependencies, getDependencyManagement, getDistributionManagement, getImportedFrom, getModules, getPluginRepositories, getProperties, getReporting, getRepositories, getSubprojects, newBuilder, newBuilderMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.maven.api.model.InputLocationTrackergetImportedFrom
- 
Field Details- 
SOURCE_POM- See Also:
 
- 
SOURCE_SETTINGS- See Also:
 
 
- 
- 
Constructor Details- 
ProfileConstructor for this class, to be called from its subclasses andProfile.Builder.- See Also:
 
 
- 
- 
Method Details- 
getIdThe identifier of this build profile. This is used for command line activation, and identifies profiles to be merged.- Returns:
- a String
 
- 
getActivationThe conditional logic which will automatically trigger the inclusion of this profile.- Returns:
- a Activation
 
- 
getBuildInformation required to build the project.- Returns:
- a BuildBase
 
- 
getLocationGets the location of the specified field in the input source.- Specified by:
- getLocationin interface- InputLocationTracker
- Overrides:
- getLocationin class- ModelBase
 
- 
getLocationKeysGets the keys of the locations of the input source.- Overrides:
- getLocationKeysin class- ModelBase
 
- 
withCreates a new builder with this object as the basis.
- 
withModulesDeprecated.Creates a newProfileinstance using the specified modules.- Overrides:
- withModulesin class- ModelBase
- Parameters:
- modules- the new- Collection<String>to use
- Returns:
- a Profilewith the specified modules
 
- 
withSubprojectsCreates a newProfileinstance using the specified subprojects.- Overrides:
- withSubprojectsin class- ModelBase
- Parameters:
- subprojects- the new- Collection<String>to use
- Returns:
- a Profilewith the specified subprojects
 
- 
withDistributionManagementCreates a newProfileinstance using the specified distributionManagement.- Overrides:
- withDistributionManagementin class- ModelBase
- Parameters:
- distributionManagement- the new- DistributionManagementto use
- Returns:
- a Profilewith the specified distributionManagement
 
- 
withPropertiesCreates a newProfileinstance using the specified properties.- Overrides:
- withPropertiesin class- ModelBase
- Parameters:
- properties- the new- Map<String, String>to use
- Returns:
- a Profilewith the specified properties
 
- 
withDependencyManagementCreates a newProfileinstance using the specified dependencyManagement.- Overrides:
- withDependencyManagementin class- ModelBase
- Parameters:
- dependencyManagement- the new- DependencyManagementto use
- Returns:
- a Profilewith the specified dependencyManagement
 
- 
withDependenciesCreates a newProfileinstance using the specified dependencies.- Overrides:
- withDependenciesin class- ModelBase
- Parameters:
- dependencies- the new- Collection<Dependency>to use
- Returns:
- a Profilewith the specified dependencies
 
- 
withRepositoriesCreates a newProfileinstance using the specified repositories.- Overrides:
- withRepositoriesin class- ModelBase
- Parameters:
- repositories- the new- Collection<Repository>to use
- Returns:
- a Profilewith the specified repositories
 
- 
withPluginRepositoriesCreates a newProfileinstance using the specified pluginRepositories.- Overrides:
- withPluginRepositoriesin class- ModelBase
- Parameters:
- pluginRepositories- the new- Collection<Repository>to use
- Returns:
- a Profilewith the specified pluginRepositories
 
- 
withReportingCreates a newProfileinstance using the specified reporting.- Overrides:
- withReportingin class- ModelBase
- Parameters:
- reporting- the new- Reportingto use
- Returns:
- a Profilewith the specified reporting
 
- 
withIdCreates a newProfileinstance using the specified id.- Parameters:
- id- the new- Stringto use
- Returns:
- a Profilewith the specified id
 
- 
withActivationCreates a newProfileinstance using the specified activation.- Parameters:
- activation- the new- Activationto use
- Returns:
- a Profilewith the specified activation
 
- 
withBuildCreates a newProfileinstance using the specified build.- Parameters:
- build- the new- BuildBaseto use
- Returns:
- a Profilewith the specified build
 
- 
newInstanceCreates a newProfileinstance. Equivalent tonewInstance(true).- Returns:
- a new Profile
- See Also:
 
- 
newInstanceCreates a newProfileinstance using default values or not. Equivalent tonewBuilder(withDefaults).build().- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new Profile
 
- 
newBuilderCreates a newProfilebuilder instance. Equivalent tonewBuilder(true).- Returns:
- a new Builder
- See Also:
 
- 
newBuilderCreates a newProfilebuilder instance using default values or not.- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new Builder
 
- 
newBuilderCreates a newProfilebuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
- from- the- Profileinstance to use as a basis
- Returns:
- a new Builder
 
- 
newBuilderCreates a newProfilebuilder instance using the specified object as a basis.- Parameters:
- from- the- Profileinstance to use as a basis
- forceCopy- the boolean indicating if a copy should be forced
- Returns:
- a new Builder
 
- 
setSource
- 
getSource
- 
toString
 
-