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 Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create Profile instances. -
Field Summary
Fields inherited from class org.apache.maven.api.settings.TrackableBase
GLOBAL_LEVEL, PROJECT_LEVEL, USER_LEVEL -
Method Summary
Modifier and TypeMethodDescriptionThe conditional logic which will automatically trigger the inclusion of this profile.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.IdentifiableBase
getId, newBuilder, newBuilderMethods inherited from class org.apache.maven.api.settings.TrackableBase
getLocation, getSourceLevel, newBuilder, newBuilder, setSourceLevelMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.api.settings.InputLocationTracker
getLocation
-
Method Details
-
getActivation
The conditional logic which will automatically trigger the inclusion of this profile.- Returns:
- a
Activation
-
getProperties
Extended configuration specific to this profile goes here. Contents take the form of<property.name>property.value</property.name>- Returns:
- a
Map<String, String>
-
getRepositories
The lists of the remote repositories.- Returns:
- a
List<Repository>
-
getPluginRepositories
The lists of the remote repositories for discovering plugins.- Returns:
- a
List<Repository>
-
with
Creates a new builder with this object as the basis.- Overrides:
within classIdentifiableBase- Returns:
- a
Builder
-
withId
Creates a newProfileinstance using the specified id.- Overrides:
withIdin classIdentifiableBase- Parameters:
id- the newStringto use- Returns:
- a
Profilewith the specified id
-
withActivation
Creates a newProfileinstance using the specified activation.- Parameters:
activation- the newActivationto use- Returns:
- a
Profilewith the specified activation
-
withProperties
Creates a newProfileinstance using the specified properties.- Parameters:
properties- the newMap<String, String>to use- Returns:
- a
Profilewith the specified properties
-
withRepositories
Creates a newProfileinstance using the specified repositories.- Parameters:
repositories- the newCollection<Repository>to use- Returns:
- a
Profilewith the specified repositories
-
withPluginRepositories
Creates a newProfileinstance using the specified pluginRepositories.- Parameters:
pluginRepositories- the newCollection<Repository>to use- Returns:
- a
Profilewith the specified pluginRepositories
-
newInstance
Creates a newProfileinstance. Equivalent tonewInstance(true).- Returns:
- a new
Profile - See Also:
-
newInstance
Creates 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
-
newBuilder
Creates a newProfilebuilder instance. Equivalent tonewBuilder(true).- Returns:
- a new
Builder - See Also:
-
newBuilder
Creates a newProfilebuilder instance using default values or not.- Parameters:
withDefaults- the boolean indicating whether default values should be used- Returns:
- a new
Builder
-
newBuilder
Creates a newProfilebuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
from- theProfileinstance to use as a basis- Returns:
- a new
Builder
-
newBuilder
Creates a newProfilebuilder instance using the specified object as a basis.- Parameters:
from- theProfileinstance to use as a basisforceCopy- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-