public class ModelBase extends Object implements Serializable, Cloneable, InputLocationTracker
Model
and the
Profile
objects.Constructor and Description |
---|
ModelBase() |
Modifier and Type | Method and Description |
---|---|
void |
addDependency(Dependency dependency)
Method addDependency.
|
void |
addModule(String string)
Method addModule.
|
void |
addPluginRepository(Repository repository)
Method addPluginRepository.
|
void |
addProperty(String key,
String value)
Method addProperty.
|
void |
addRepository(Repository repository)
Method addRepository.
|
ModelBase |
clone()
Method clone.
|
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(Object key)
Gets the location of the specified field in the input
source.
|
List<String> |
getModules()
Method getModules.
|
List<Repository> |
getPluginRepositories()
Method getPluginRepositories.
|
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.
|
Object |
getReports()
Get Deprecated.
|
List<Repository> |
getRepositories()
Method getRepositories.
|
void |
removeDependency(Dependency dependency)
Method removeDependency.
|
void |
removeModule(String string)
Method removeModule.
|
void |
removePluginRepository(Repository repository)
Method removePluginRepository.
|
void |
removeRepository(Repository repository)
Method removeRepository.
|
void |
setDependencies(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(Object key,
InputLocation location)
Sets the location of the specified field.
|
void |
setModules(List<String> modules)
Set the modules (sometimes called subprojects) to build as a
part of this
project.
|
void |
setPluginRepositories(List<Repository> pluginRepositories)
Set the lists of the remote repositories for discovering
plugins for builds and
reports.
|
void |
setProperties(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(Object reports)
Set Deprecated.
|
void |
setRepositories(List<Repository> repositories)
Set the lists of the remote repositories for discovering
dependencies and
extensions.
|
public void addDependency(Dependency dependency)
dependency
- public void addModule(String string)
string
- public void addPluginRepository(Repository repository)
repository
- public void addProperty(String key, String value)
key
- value
- public void addRepository(Repository repository)
repository
- public List<Dependency> getDependencies()
public DependencyManagement getDependencyManagement()
public DistributionManagement getDistributionManagement()
public InputLocation getLocation(Object key)
InputLocationTracker
getLocation
in interface InputLocationTracker
key
- public List<Repository> getPluginRepositories()
public Properties getProperties()
public Reporting getReporting()
mvn site
.
All of the reports will be included in the
navigation bar for browsing.public Object getReports()
public List<Repository> getRepositories()
public void removeDependency(Dependency dependency)
dependency
- public void removeModule(String string)
string
- public void removePluginRepository(Repository repository)
repository
- public void removeRepository(Repository repository)
repository
- public void setDependencies(List<Dependency> dependencies)
dependencies
- public void setDependencyManagement(DependencyManagement dependencyManagement)
dependencyManagement
- public void setDistributionManagement(DistributionManagement distributionManagement)
distributionManagement
- public void setLocation(Object key, InputLocation location)
InputLocationTracker
setLocation
in interface InputLocationTracker
key
- location
- public void setModules(List<String> modules)
modules
- public void setPluginRepositories(List<Repository> pluginRepositories)
pluginRepositories
- public void setProperties(Properties properties)
<name>value</name>
.properties
- public void setReporting(Reporting reporting)
mvn site
.
All of the reports will be included in the
navigation bar for browsing.reporting
- public void setReports(Object reports)
reports
- public void setRepositories(List<Repository> repositories)
repositories
- Copyright © 2001–2018 The Apache Software Foundation. All rights reserved.