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
Modifier and TypeClassDescriptionstatic class
Builder 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.Builder
Creates a newProfile
builder instance.static Profile.Builder
newBuilder
(boolean withDefaults) Creates a newProfile
builder instance using default values or not.static Profile.Builder
newBuilder
(Profile from) Creates a newProfile
builder instance using the specified object as a basis.static Profile.Builder
newBuilder
(Profile from, boolean forceCopy) Creates a newProfile
builder instance using the specified object as a basis.static Profile
Creates a newProfile
instance.static Profile
newInstance
(boolean withDefaults) Creates a newProfile
instance using default values or not.with()
Creates a new builder with this object as the basis.withActivation
(Activation activation) Creates a newProfile
instance using the specified activation.Creates a newProfile
instance using the specified id.withPluginRepositories
(Collection<Repository> pluginRepositories) Creates a newProfile
instance using the specified pluginRepositories.withProperties
(Map<String, String> properties) Creates a newProfile
instance using the specified properties.withRepositories
(Collection<Repository> repositories) Creates a newProfile
instance using the specified repositories.Methods inherited from class org.apache.maven.api.settings.IdentifiableBase
getId, newBuilder, newBuilder
Methods inherited from class org.apache.maven.api.settings.TrackableBase
getLocation, getSourceLevel, newBuilder, newBuilder, setSourceLevel
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
with
in classIdentifiableBase
- Returns:
- a
Builder
-
withId
Creates a newProfile
instance using the specified id.- Overrides:
withId
in classIdentifiableBase
- Parameters:
id
- the newString
to use- Returns:
- a
Profile
with the specified id
-
withActivation
Creates a newProfile
instance using the specified activation.- Parameters:
activation
- the newActivation
to use- Returns:
- a
Profile
with the specified activation
-
withProperties
Creates a newProfile
instance using the specified properties.- Parameters:
properties
- the newMap<String, String>
to use- Returns:
- a
Profile
with the specified properties
-
withRepositories
Creates a newProfile
instance using the specified repositories.- Parameters:
repositories
- the newCollection<Repository>
to use- Returns:
- a
Profile
with the specified repositories
-
withPluginRepositories
Creates a newProfile
instance using the specified pluginRepositories.- Parameters:
pluginRepositories
- the newCollection<Repository>
to use- Returns:
- a
Profile
with the specified pluginRepositories
-
newInstance
Creates a newProfile
instance. Equivalent tonewInstance(true)
.- Returns:
- a new
Profile
- See Also:
-
newInstance
Creates a newProfile
instance 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 newProfile
builder instance. Equivalent tonewBuilder(true)
.- Returns:
- a new
Builder
- See Also:
-
newBuilder
Creates a newProfile
builder instance using default values or not.- Parameters:
withDefaults
- the boolean indicating whether default values should be used- Returns:
- a new
Builder
-
newBuilder
Creates a newProfile
builder instance using the specified object as a basis. Equivalent tonewBuilder(from, false)
.- Parameters:
from
- theProfile
instance to use as a basis- Returns:
- a new
Builder
-
newBuilder
Creates a newProfile
builder instance using the specified object as a basis.- Parameters:
from
- theProfile
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-