Package org.apache.maven.api.settings
Class Profile
java.lang.Object
org.apache.maven.api.settings.TrackableBase
org.apache.maven.api.settings.IdentifiableBase
org.apache.maven.api.settings.Profile
- All Implemented Interfaces:
- Serializable,- InputLocationTracker
@Experimental
@Generated
@ThreadSafe
@Immutable
public class Profile
extends IdentifiableBase
implements Serializable, InputLocationTracker
Modifications to the build process which is keyed on some sort of environmental parameter.
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create Profile instances.
- 
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.getLocation(Object key) Gets the location of the specified field in the input source.Gets the keys of the locations of the input source.The lists of the remote repositories for discovering plugins.Extended configuration specific to this profile goes here.The lists of the remote repositories.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.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 id.withPluginRepositories(Collection<Repository> pluginRepositories) Creates a newProfileinstance using the specified pluginRepositories.withProperties(Map<String, String> properties) Creates a newProfileinstance using the specified properties.withRepositories(Collection<Repository> repositories) Creates a newProfileinstance using the specified repositories.Methods inherited from class org.apache.maven.api.settings.IdentifiableBasegetId, newBuilder, newBuilderMethods inherited from class org.apache.maven.api.settings.TrackableBasegetImportedFrom, newBuilder, newBuilder
- 
Constructor Details- 
ProfileConstructor for this class, to be called from its subclasses andProfile.Builder.- See Also:
 
 
- 
- 
Method Details- 
getActivationThe conditional logic which will automatically trigger the inclusion of this profile.- Returns:
- a Activation
 
- 
getPropertiesExtended configuration specific to this profile goes here. Contents take the form of<property.name>property.value</property.name>- Returns:
- a Map<String, String>
 
- 
getRepositoriesThe lists of the remote repositories.- Returns:
- a List<Repository>
 
- 
getPluginRepositoriesThe lists of the remote repositories for discovering plugins.- Returns:
- a List<Repository>
 
- 
getLocationGets the location of the specified field in the input source.- Specified by:
- getLocationin interface- InputLocationTracker
- Overrides:
- getLocationin class- IdentifiableBase
 
- 
getLocationKeysGets the keys of the locations of the input source.- Overrides:
- getLocationKeysin class- IdentifiableBase
 
- 
withCreates a new builder with this object as the basis.- Overrides:
- within class- IdentifiableBase
- Returns:
- a Builder
 
- 
withIdCreates a newProfileinstance using the specified id.- Overrides:
- withIdin class- IdentifiableBase
- 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
 
- 
withPropertiesCreates a newProfileinstance using the specified properties.- Parameters:
- properties- the new- Map<String, String>to use
- Returns:
- a Profilewith the specified properties
 
- 
withRepositoriesCreates a newProfileinstance using the specified repositories.- Parameters:
- repositories- the new- Collection<Repository>to use
- Returns:
- a Profilewith the specified repositories
 
- 
withPluginRepositoriesCreates a newProfileinstance using the specified pluginRepositories.- Parameters:
- pluginRepositories- the new- Collection<Repository>to use
- Returns:
- a Profilewith the specified pluginRepositories
 
- 
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
 
 
-