public class ModelBase extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable, InputLocationTracker
Model
and the
Profile
objects.Modifier and Type | Field and Description |
---|---|
private java.util.List<Dependency> |
dependencies
Field dependencies.
|
private InputLocation |
dependenciesLocation
Field dependenciesLocation.
|
private DependencyManagement |
dependencyManagement
Default dependency information for projects that inherit
from this one.
|
private InputLocation |
dependencyManagementLocation
Field dependencyManagementLocation.
|
private DistributionManagement |
distributionManagement
Distribution information for a project that enables
deployment of the site
and artifacts to remote web servers and
repositories respectively.
|
private InputLocation |
distributionManagementLocation
Field distributionManagementLocation.
|
private InputLocation |
location
Field location.
|
private java.util.Map<java.lang.Object,InputLocation> |
locations
Field locations.
|
private java.util.List<java.lang.String> |
modules
Field modules.
|
private InputLocation |
modulesLocation
Field modulesLocation.
|
private java.util.List<Repository> |
pluginRepositories
Field pluginRepositories.
|
private InputLocation |
pluginRepositoriesLocation
Field pluginRepositoriesLocation.
|
private java.util.Properties |
properties
Field properties.
|
private InputLocation |
propertiesLocation
Field propertiesLocation.
|
private Reporting |
reporting
This element includes the specification of
report plugins to use
to generate the reports on the Maven-generated
site.
|
private InputLocation |
reportingLocation
Field reportingLocation.
|
private java.lang.Object |
reports
Deprecated.
|
private InputLocation |
reportsLocation
Field reportsLocation.
|
private java.util.List<Repository> |
repositories
Field repositories.
|
private InputLocation |
repositoriesLocation
Field repositoriesLocation.
|
Constructor and Description |
---|
ModelBase() |
Modifier and Type | Method and Description |
---|---|
void |
addDependency(Dependency dependency)
Method addDependency.
|
void |
addModule(java.lang.String string)
Method addModule.
|
void |
addPluginRepository(Repository repository)
Method addPluginRepository.
|
void |
addProperty(java.lang.String key,
java.lang.String value)
Method addProperty.
|
void |
addRepository(Repository repository)
Method addRepository.
|
ModelBase |
clone()
Method clone.
|
java.util.List<Dependency> |
getDependencies()
Method getDependencies.
|
DependencyManagement |
getDependencyManagement()
Get default dependency information for projects that inherit
from this one.
|
DistributionManagement |
getDistributionManagement()
Get distribution information for a project that enables
deployment of the site
and artifacts to remote web servers and
repositories respectively.
|
InputLocation |
getLocation(java.lang.Object key)
Gets the location of the specified field in the input
source.
|
java.util.List<java.lang.String> |
getModules()
Method getModules.
|
private InputLocation |
getOtherLocation(java.lang.Object key) |
java.util.List<Repository> |
getPluginRepositories()
Method getPluginRepositories.
|
java.util.Properties |
getProperties()
Method getProperties.
|
Reporting |
getReporting()
Get this element includes the specification of report
plugins to use
to generate the reports on the Maven-generated
site.
|
java.lang.Object |
getReports()
Get Deprecated.
|
java.util.List<Repository> |
getRepositories()
Method getRepositories.
|
void |
removeDependency(Dependency dependency)
Method removeDependency.
|
void |
removeModule(java.lang.String string)
Method removeModule.
|
void |
removePluginRepository(Repository repository)
Method removePluginRepository.
|
void |
removeRepository(Repository repository)
Method removeRepository.
|
void |
setDependencies(java.util.List<Dependency> dependencies)
Set this element describes all of the dependencies
associated with a
project.
|
void |
setDependencyManagement(DependencyManagement dependencyManagement)
Set default dependency information for projects that inherit
from this one.
|
void |
setDistributionManagement(DistributionManagement distributionManagement)
Set distribution information for a project that enables
deployment of the site
and artifacts to remote web servers and
repositories respectively.
|
void |
setLocation(java.lang.Object key,
InputLocation location)
Sets the location of the specified field.
|
void |
setModules(java.util.List<java.lang.String> modules)
Set the modules (sometimes called subprojects) to build as a
part of this
project.
|
void |
setOtherLocation(java.lang.Object key,
InputLocation location) |
void |
setPluginRepositories(java.util.List<Repository> pluginRepositories)
Set the lists of the remote repositories for discovering
plugins for builds and
reports.
|
void |
setProperties(java.util.Properties properties)
Set properties that can be used throughout the POM as a
substitution, and
are used as filters in resources if enabled.
|
void |
setReporting(Reporting reporting)
Set this element includes the specification of report
plugins to use
to generate the reports on the Maven-generated
site.
|
void |
setReports(java.lang.Object reports)
Set Deprecated.
|
void |
setRepositories(java.util.List<Repository> repositories)
Set the lists of the remote repositories for discovering
dependencies and
extensions.
|
private java.util.List<java.lang.String> modules
private DistributionManagement distributionManagement
private java.util.Properties properties
private DependencyManagement dependencyManagement
private java.util.List<Dependency> dependencies
private java.util.List<Repository> repositories
private java.util.List<Repository> pluginRepositories
private java.lang.Object reports
private Reporting reporting
mvn site
.
All of the reports will be included in the
navigation bar for browsing.private java.util.Map<java.lang.Object,InputLocation> locations
private InputLocation location
private InputLocation modulesLocation
private InputLocation distributionManagementLocation
private InputLocation propertiesLocation
private InputLocation dependencyManagementLocation
private InputLocation dependenciesLocation
private InputLocation repositoriesLocation
private InputLocation pluginRepositoriesLocation
private InputLocation reportsLocation
private InputLocation reportingLocation
public void addDependency(Dependency dependency)
dependency
- a dependency object.public void addModule(java.lang.String string)
string
- a string object.public void addPluginRepository(Repository repository)
repository
- a repository object.public void addProperty(java.lang.String key, java.lang.String value)
key
- a key object.value
- a value object.public void addRepository(Repository repository)
repository
- a repository object.public ModelBase clone()
clone
in class java.lang.Object
public java.util.List<Dependency> getDependencies()
public DependencyManagement getDependencyManagement()
public DistributionManagement getDistributionManagement()
public InputLocation getLocation(java.lang.Object key)
InputLocationTracker
getLocation
in interface InputLocationTracker
key
- a key object.public java.util.List<java.lang.String> getModules()
public void setLocation(java.lang.Object key, InputLocation location)
InputLocationTracker
setLocation
in interface InputLocationTracker
key
- a key object.location
- a location object.public void setOtherLocation(java.lang.Object key, InputLocation location)
key
- a key object.location
- a location object.private InputLocation getOtherLocation(java.lang.Object key)
key
- a key object.public java.util.List<Repository> getPluginRepositories()
public java.util.Properties getProperties()
public Reporting getReporting()
mvn site
.
All of the reports will be included in the
navigation bar for browsing.public java.lang.Object getReports()
public java.util.List<Repository> getRepositories()
public void removeDependency(Dependency dependency)
dependency
- a dependency object.public void removeModule(java.lang.String string)
string
- a string object.public void removePluginRepository(Repository repository)
repository
- a repository object.public void removeRepository(Repository repository)
repository
- a repository object.public void setDependencies(java.util.List<Dependency> dependencies)
dependencies
- a dependencies object.public void setDependencyManagement(DependencyManagement dependencyManagement)
dependencyManagement
- a dependencyManagement object.public void setDistributionManagement(DistributionManagement distributionManagement)
distributionManagement
- a distributionManagement objectpublic void setModules(java.util.List<java.lang.String> modules)
modules
- a modules object.public void setPluginRepositories(java.util.List<Repository> pluginRepositories)
pluginRepositories
- a pluginRepositories object.public void setProperties(java.util.Properties properties)
<name>value</name>
.properties
- a properties object.public void setReporting(Reporting reporting)
mvn site
.
All of the reports will be included in the
navigation bar for browsing.reporting
- a reporting object.public void setReports(java.lang.Object reports)
reports
- a reports object.public void setRepositories(java.util.List<Repository> repositories)
repositories
- a repositories object.