Package org.apache.maven.model
Class ModelBase
java.lang.Object
org.apache.maven.model.ModelBase
- All Implemented Interfaces:
- Serializable,- Cloneable,- InputLocationTracker
Base class for the 
Model and the
 Profile objects.- Version:
- $Revision$ $Date$
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddDependency(Dependency dependency) Method addDependency.voidMethod addModule.voidaddPluginRepository(Repository repository) Method addPluginRepository.voidaddProperty(String key, String value) Method addProperty.voidaddRepository(Repository repository) Method addRepository.clone()Method clone.Method getDependencies.Get default dependency information for projects that inherit from this one.Get distribution information for a project that enables deployment of the site and artifacts to remote web servers and repositories respectively.getLocation(Object key) Gets the location of the specified field in the input source.Method getModules.Method getPluginRepositories.Method getProperties.Get this element includes the specification of report plugins to use to generate the reports on the Maven-generated site.Get Deprecated.Method getRepositories.voidremoveDependency(Dependency dependency) Method removeDependency.voidremoveModule(String string) Method removeModule.voidremovePluginRepository(Repository repository) Method removePluginRepository.voidremoveRepository(Repository repository) Method removeRepository.voidsetDependencies(List<Dependency> dependencies) Set this element describes all of the dependencies associated with a project.voidsetDependencyManagement(DependencyManagement dependencyManagement) Set default dependency information for projects that inherit from this one.voidsetDistributionManagement(DistributionManagement distributionManagement) Set distribution information for a project that enables deployment of the site and artifacts to remote web servers and repositories respectively.voidsetLocation(Object key, InputLocation location) Sets the location of the specified field.voidsetModules(List<String> modules) Set the modules (sometimes called subprojects) to build as a part of this project.voidsetOtherLocation(Object key, InputLocation location) voidsetPluginRepositories(List<Repository> pluginRepositories) Set the lists of the remote repositories for discovering plugins for builds and reports.voidsetProperties(Properties properties) Set properties that can be used throughout the POM as a substitution, and are used as filters in resources if enabled.voidsetReporting(Reporting reporting) Set this element includes the specification of report plugins to use to generate the reports on the Maven-generated site.voidsetReports(Object reports) Set Deprecated.voidsetRepositories(List<Repository> repositories) Set the lists of the remote repositories for discovering dependencies and extensions.
- 
Constructor Details- 
ModelBasepublic ModelBase()
 
- 
- 
Method Details- 
addDependencyMethod addDependency.- Parameters:
- dependency- a dependency object.
 
- 
addModuleMethod addModule.- Parameters:
- string- a string object.
 
- 
addPluginRepositoryMethod addPluginRepository.- Parameters:
- repository- a repository object.
 
- 
addPropertyMethod addProperty.- Parameters:
- key- a key object.
- value- a value object.
 
- 
addRepositoryMethod addRepository.- Parameters:
- repository- a repository object.
 
- 
cloneMethod clone.
- 
getDependenciesMethod getDependencies.- Returns:
- List
 
- 
getDependencyManagementGet default dependency information for projects that inherit from this one. The dependencies in this section are not immediately resolved. Instead, when a POM derived from this one declares a dependency described by a matching groupId and artifactId, the version and other values from this section are used for that dependency if they were not already specified.- Returns:
- DependencyManagement
 
- 
getDistributionManagementGet distribution information for a project that enables deployment of the site and artifacts to remote web servers and repositories respectively.- Returns:
- DistributionManagement
 
- 
getLocationDescription copied from interface:InputLocationTrackerGets the location of the specified field in the input source.- Specified by:
- getLocationin interface- InputLocationTracker
- Parameters:
- key- a key object.
- Returns:
- InputLocation
 
- 
getModulesMethod getModules.- Returns:
- List
 
- 
setLocationDescription copied from interface:InputLocationTrackerSets the location of the specified field.- Specified by:
- setLocationin interface- InputLocationTracker
- Parameters:
- key- a key object.
- location- a location object.
 
- 
setOtherLocation- Parameters:
- key- a key object.
- location- a location object.
 
- 
getPluginRepositoriesMethod getPluginRepositories.- Returns:
- List
 
- 
getPropertiesMethod getProperties.- Returns:
- Properties
 
- 
getReportingGet this element includes the specification of report plugins to use to generate the reports on the Maven-generated site. These reports will be run when a user executesmvn site. All of the reports will be included in the navigation bar for browsing.- Returns:
- Reporting
 
- 
getReportsGet Deprecated. Now ignored by Maven.- Returns:
- Object
 
- 
getRepositoriesMethod getRepositories.- Returns:
- List
 
- 
removeDependencyMethod removeDependency.- Parameters:
- dependency- a dependency object.
 
- 
removeModuleMethod removeModule.- Parameters:
- string- a string object.
 
- 
removePluginRepositoryMethod removePluginRepository.- Parameters:
- repository- a repository object.
 
- 
removeRepositoryMethod removeRepository.- Parameters:
- repository- a repository object.
 
- 
setDependenciesSet this element describes all of the dependencies associated with a project. These dependencies are used to construct a classpath for your project during the build process. They are automatically downloaded from the repositories defined in this project. See the dependency mechanism for more information.- Parameters:
- dependencies- a dependencies object.
 
- 
setDependencyManagementSet default dependency information for projects that inherit from this one. The dependencies in this section are not immediately resolved. Instead, when a POM derived from this one declares a dependency described by a matching groupId and artifactId, the version and other values from this section are used for that dependency if they were not already specified.- Parameters:
- dependencyManagement- a dependencyManagement object.
 
- 
setDistributionManagementSet distribution information for a project that enables deployment of the site and artifacts to remote web servers and repositories respectively.- Parameters:
- distributionManagement- a distributionManagement object
 
- 
setModulesSet the modules (sometimes called subprojects) to build as a part of this project. Each module listed is a relative path to the directory containing the module. To be consistent with the way default urls are calculated from parent, it is recommended to have module names match artifact ids.- Parameters:
- modules- a modules object.
 
- 
setPluginRepositoriesSet the lists of the remote repositories for discovering plugins for builds and reports.- Parameters:
- pluginRepositories- a pluginRepositories object.
 
- 
setPropertiesSet properties that can be used throughout the POM as a substitution, and are used as filters in resources if enabled. The format is<name>value</name>.- Parameters:
- properties- a properties object.
 
- 
setReportingSet this element includes the specification of report plugins to use to generate the reports on the Maven-generated site. These reports will be run when a user executesmvn site. All of the reports will be included in the navigation bar for browsing.- Parameters:
- reporting- a reporting object.
 
- 
setReportsSet Deprecated. Now ignored by Maven.- Parameters:
- reports- a reports object.
 
- 
setRepositoriesSet the lists of the remote repositories for discovering dependencies and extensions.- Parameters:
- repositories- a repositories object.
 
 
-