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. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProfile(Profile.Builder builder) Constructor for this class, to be called from its subclasses andProfile.Builder. -
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
getImportedFrom, getLocation, getLocationKeys, getLocationKeyStream, newBuilder, newBuilderMethods 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
-
Constructor Details
-
Profile
Constructor for this class, to be called from its subclasses andProfile.Builder.- See Also:
-
-
Method Details
-
getActivation
The conditional logic which will automatically trigger the inclusion of this profile.- Returns:
- a
Activation
-
getProperties
-
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
-
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
-
newInstance
-
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
-