org.apache.maven.project
Class ModelBase

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

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

null

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

Field Summary
private  java.util.List dependencies
          These should ultimately only be compile time dependencies when transitive dependencies come into play.
private  java.lang.String modelEncoding
           
 
Constructor Summary
ModelBase()
           
 
Method Summary
 void addDependency(Dependency dependency)
          Method addDependency
 java.util.List getDependencies()
          Method getDependencies
 java.lang.String getModelEncoding()
           
 void removeDependency(Dependency dependency)
          Method removeDependency
 void setDependencies(java.util.List dependencies)
          Set
 void setModelEncoding(java.lang.String modelEncoding)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dependencies

private java.util.List dependencies
These should ultimately only be compile time dependencies when transitive dependencies come into play.


modelEncoding

private java.lang.String modelEncoding
Constructor Detail

ModelBase

public ModelBase()
Method Detail

addDependency

public void addDependency(Dependency dependency)
Method addDependency

Parameters:
dependency -

getDependencies

public java.util.List getDependencies()
Method getDependencies


removeDependency

public void removeDependency(Dependency dependency)
Method removeDependency

Parameters:
dependency -

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 -

setModelEncoding

public void setModelEncoding(java.lang.String modelEncoding)

getModelEncoding

public java.lang.String getModelEncoding()