Package org.apache.maven.settings
Class Profile
- java.lang.Object
-
- org.apache.maven.settings.TrackableBase
-
- org.apache.maven.settings.IdentifiableBase
-
- org.apache.maven.settings.Profile
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class Profile extends IdentifiableBase implements java.io.Serializable, java.lang.Cloneable
Modifications to the build process which is keyed on some sort of environmental parameter.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private ActivationactivationThe conditional logic which will automatically trigger the inclusion of this profile.private java.util.List<Repository>pluginRepositoriesThis may be removed or relocated in the near future.private java.util.PropertiespropertiesField properties.private java.util.List<Repository>repositoriesField repositories.-
Fields inherited from class org.apache.maven.settings.TrackableBase
GLOBAL_LEVEL, USER_LEVEL
-
-
Constructor Summary
Constructors Constructor Description Profile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPluginRepository(Repository repository)Method addPluginRepository.voidaddProperty(java.lang.String key, java.lang.String value)Method addProperty.voidaddRepository(Repository repository)Method addRepository.Profileclone()Method clone.ActivationgetActivation()Get the conditional logic which will automatically trigger the inclusion of this profile.java.util.List<Repository>getPluginRepositories()Method getPluginRepositories.java.util.PropertiesgetProperties()Method getProperties.java.util.List<Repository>getRepositories()Method getRepositories.voidremovePluginRepository(Repository repository)Method removePluginRepository.voidremoveRepository(Repository repository)Method removeRepository.voidsetActivation(Activation activation)Set the conditional logic which will automatically trigger the inclusion of this profile.voidsetPluginRepositories(java.util.List<Repository> pluginRepositories)Set the lists of the remote repositories for discovering plugins.voidsetProperties(java.util.Properties properties)Set extended configuration specific to this profile goes here.voidsetRepositories(java.util.List<Repository> repositories)Set the lists of the remote repositories.-
Methods inherited from class org.apache.maven.settings.IdentifiableBase
getId, setId
-
Methods inherited from class org.apache.maven.settings.TrackableBase
getSourceLevel, setSourceLevel
-
-
-
-
Field Detail
-
activation
private Activation activation
The conditional logic which will automatically trigger the inclusion of this profile.
-
properties
private java.util.Properties properties
Field properties.
-
repositories
private java.util.List<Repository> repositories
Field repositories.
-
pluginRepositories
private java.util.List<Repository> pluginRepositories
This may be removed or relocated in the near future. It is undecided whether plugins really need a remote repository set of their own.
-
-
Method Detail
-
addPluginRepository
public void addPluginRepository(Repository repository)
Method addPluginRepository.- Parameters:
repository-
-
addProperty
public void addProperty(java.lang.String key, java.lang.String value)Method addProperty.- Parameters:
key-value-
-
addRepository
public void addRepository(Repository repository)
Method addRepository.- Parameters:
repository-
-
clone
public Profile clone()
Method clone.- Overrides:
clonein classIdentifiableBase- Returns:
- Profile
-
getActivation
public Activation getActivation()
Get the conditional logic which will automatically trigger the inclusion of this profile.- Returns:
- Activation
-
getPluginRepositories
public java.util.List<Repository> getPluginRepositories()
Method getPluginRepositories.- Returns:
- List
-
getProperties
public java.util.Properties getProperties()
Method getProperties.- Returns:
- Properties
-
getRepositories
public java.util.List<Repository> getRepositories()
Method getRepositories.- Returns:
- List
-
removePluginRepository
public void removePluginRepository(Repository repository)
Method removePluginRepository.- Parameters:
repository-
-
removeRepository
public void removeRepository(Repository repository)
Method removeRepository.- Parameters:
repository-
-
setActivation
public void setActivation(Activation activation)
Set the conditional logic which will automatically trigger the inclusion of this profile.- Parameters:
activation-
-
setPluginRepositories
public void setPluginRepositories(java.util.List<Repository> pluginRepositories)
Set the lists of the remote repositories for discovering plugins.- Parameters:
pluginRepositories-
-
setProperties
public void setProperties(java.util.Properties properties)
Set extended configuration specific to this profile goes here. Contents take the form of<property.name>property.value</property.name>- Parameters:
properties-
-
setRepositories
public void setRepositories(java.util.List<Repository> repositories)
Set the lists of the remote repositories.- Parameters:
repositories-
-
-