org.apache.maven.model
Class ModelBase

java.lang.Object
  extended byorg.apache.maven.model.ModelBase
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Model, Profile

public class ModelBase
extends java.lang.Object
implements java.io.Serializable

null

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
ModelBase()
           
 
Method Summary
 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
 java.util.List getDependencies()
          Method getDependencies
 DependencyManagement getDependencyManagement()
          Get Default dependency information for grouped projects inheriting from this one.
 DistributionManagement getDistributionManagement()
          Get Distribution information for a project.
 java.lang.String getModelEncoding()
           
 java.util.List getModules()
          Method getModules
 java.util.List getPluginRepositories()
          Method getPluginRepositories
 java.util.Properties getProperties()
          Method getProperties
 Reporting getReporting()
          Get This element includes the specification of reports to be included in a Maven-generated site.
 java.lang.Object getReports()
          Get NOT A VALID ELEMENT.
 java.util.List 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 dependencies)
          Set
 void setDependencyManagement(DependencyManagement dependencyManagement)
          Set Default dependency information for grouped projects inheriting from this one.
 void setDistributionManagement(DistributionManagement distributionManagement)
          Set Distribution information for a project.
 void setModelEncoding(java.lang.String modelEncoding)
           
 void setModules(java.util.List modules)
          Set The modules to build in addition to the current project
 void setPluginRepositories(java.util.List pluginRepositories)
          Set The lists of the remote repositories for discovering plugins
 void setProperties(java.util.Properties properties)
          Set Properties used to fill in plugin configuration
 void setReporting(Reporting reporting)
          Set This element includes the specification of reports to be included in a Maven-generated site.
 void setReports(java.lang.Object reports)
          Set NOT A VALID ELEMENT.
 void setRepositories(java.util.List repositories)
          Set The lists of the remote repositories
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelBase

public ModelBase()
Method Detail

addDependency

public void addDependency(Dependency dependency)
Method addDependency

Parameters:
dependency -

addModule

public void addModule(java.lang.String string)
Method addModule

Parameters:
string -

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 -

getDependencies

public java.util.List getDependencies()
Method getDependencies


getDependencyManagement

public DependencyManagement getDependencyManagement()
Get Default dependency information for grouped projects inheriting from this one. The dependency information here will not be checked. Instead, when a POM derived from this one declares a dependency described by a groupId and an artifactId (version not necessary), the entries in here will supply default values for that dependency. Any locally-supplied information for a particular dependency will overwrite any information specified here for that project.


getDistributionManagement

public DistributionManagement getDistributionManagement()
Get Distribution information for a project.


getModules

public java.util.List getModules()
Method getModules


getPluginRepositories

public java.util.List getPluginRepositories()
Method getPluginRepositories


getProperties

public java.util.Properties getProperties()
Method getProperties


getReporting

public Reporting getReporting()
Get This element includes the specification of reports to be included in a Maven-generated site. These reports will be run when a user executes maven site. All of the reports will be included in the navigation bar for browsing in the order they are specified.


getReports

public java.lang.Object getReports()
Get NOT A VALID ELEMENT. LISTED TO ALLOW LEGACY REPOSITORY POMs TO PARSE.


getRepositories

public java.util.List getRepositories()
Method getRepositories


removeDependency

public void removeDependency(Dependency dependency)
Method removeDependency

Parameters:
dependency -

removeModule

public void removeModule(java.lang.String string)
Method removeModule

Parameters:
string -

removePluginRepository

public void removePluginRepository(Repository repository)
Method removePluginRepository

Parameters:
repository -

removeRepository

public void removeRepository(Repository repository)
Method removeRepository

Parameters:
repository -

setDependencies

public void setDependencies(java.util.List dependencies)
Set

This element describes all of the dependencies associated with a project. Each dependency is described by a dependency element, which is then described by additional elements (described below).

These dependencies are used to construct a classpath for your project during the build process.

Maven can automatically download these dependencies from a remote repository.

The filename that Maven downloads from the repository is artifactId-version.jar where artifactId corresponds to the artifactId element and version corresponds to the version element.

When Maven goes looking for a dependency in the remote repository, it uses the dependency element to construct the URL to download from. This URL is defined as:

${repo}/${groupId}/${type}s/${artifactId}-${version}.${type}

Where

repo
is the remote repository URL specified by ${maven.repo.remote}
groupId
is taken from the dependency element
type
is taken from the dependency element
artifactId
is taken from the dependency element
version
is taken from the dependency element

Parameters:
dependencies -

setDependencyManagement

public void setDependencyManagement(DependencyManagement dependencyManagement)
Set Default dependency information for grouped projects inheriting from this one. The dependency information here will not be checked. Instead, when a POM derived from this one declares a dependency described by a groupId and an artifactId (version not necessary), the entries in here will supply default values for that dependency. Any locally-supplied information for a particular dependency will overwrite any information specified here for that project.

Parameters:
dependencyManagement -

setDistributionManagement

public void setDistributionManagement(DistributionManagement distributionManagement)
Set Distribution information for a project.

Parameters:
distributionManagement -

setModules

public void setModules(java.util.List modules)
Set The modules to build in addition to the current project

Parameters:
modules -

setPluginRepositories

public void setPluginRepositories(java.util.List pluginRepositories)
Set The lists of the remote repositories for discovering plugins

Parameters:
pluginRepositories -

setProperties

public void setProperties(java.util.Properties properties)
Set Properties used to fill in plugin configuration

Parameters:
properties -

setReporting

public void setReporting(Reporting reporting)
Set This element includes the specification of reports to be included in a Maven-generated site. These reports will be run when a user executes maven site. All of the reports will be included in the navigation bar for browsing in the order they are specified.

Parameters:
reporting -

setReports

public void setReports(java.lang.Object reports)
Set NOT A VALID ELEMENT. LISTED TO ALLOW LEGACY REPOSITORY POMs TO PARSE.

Parameters:
reports -

setRepositories

public void setRepositories(java.util.List repositories)
Set The lists of the remote repositories

Parameters:
repositories -

setModelEncoding

public void setModelEncoding(java.lang.String modelEncoding)

getModelEncoding

public java.lang.String getModelEncoding()


Copyright 2006 Apache Software Foundation. All Rights Reserved.