org.apache.maven.project
Class Repository

java.lang.Object
  extended byorg.apache.maven.project.Repository
All Implemented Interfaces:
java.io.Serializable

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

null

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

Field Summary
private  java.lang.String connection
          Field connection
private  java.lang.String developerConnection
          Field developerConnection
private  java.lang.String modelEncoding
           
private  java.lang.String url
          Field url
 
Constructor Summary
Repository()
           
 
Method Summary
 java.lang.String getConnection()
          Get
 java.lang.String getDeveloperConnection()
          Get Just like connection, but for developers, i.e.
 java.lang.String getModelEncoding()
           
 java.lang.String getUrl()
          Get The URL to the project's browsable CVS repository.
 void setConnection(java.lang.String connection)
          Set
 void setDeveloperConnection(java.lang.String developerConnection)
          Set Just like connection, but for developers, i.e.
 void setModelEncoding(java.lang.String modelEncoding)
           
 void setUrl(java.lang.String url)
          Set The URL to the project's browsable CVS repository.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connection

private java.lang.String connection
Field connection


developerConnection

private java.lang.String developerConnection
Field developerConnection


url

private java.lang.String url
Field url


modelEncoding

private java.lang.String modelEncoding
Constructor Detail

Repository

public Repository()
Method Detail

getConnection

public java.lang.String getConnection()
Get

Optional. The source configuration management system URL that describes the repository and how to connect to the repository. This is used by Maven when building versions from specific ID.

The format of this element is as follows:

scm:<provider>:<provider-parameters>

For cvs, the format for pserver repositories should be:

scm:cvs:pserver:user@host:/cvs/root:module-name

For local networked repositories (eg. pserver to local machine)

scm:cvs:lserver:user@host:/cvs/root:module-name

For ssh access:

scm:cvs:ext:user@host:/cvs/root:module-name
Remember that CVS will expect an environment variable called CVS_RSH to be set, typically to ssh or your ssh client.

Some cvs clients support other protocols, such as ntserver and extssh. Here's an example using CVS NT and ntserver:

scm|cvs|ntserver|user@server|e:\cvs|Deployment
Note the use of the vertical bar as delimiter as the repository has a colon (:) in it.

For local file system repositories

scm:cvs:local:ignored:/cvs/root:module-name

For StarTeam access:

scm:starteam:username:password@host:port/project/view/folder
All of this information can be had from either the StarTeam Universal Client (Tools->Server Administration->Server Properties) or from the administrator.

The delimiter is determined by the character after "scm". eg. scm|cvs|pserver|user@host|/cvs/root|module-name is equivalent to that listed above. This can be useful for Windows users who have : in their cvsroot parameter (eg. D:\cvsroot)

Where pserver is the protocol used to access CVS, user@host is the user name to log in to the specified cvs host, /cvs/root is the cvs root directory, and module-name is the name of the cvs module to be worked on

As an example, the settings for an Apache project are usually:

scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:module-name

Currently CVS, Starteam and SubVersion are the only supported scm's. Others will be added as soon as possible


getDeveloperConnection

public java.lang.String getDeveloperConnection()
Get Just like connection, but for developers, i.e. this scm connection will not be read only.


getUrl

public java.lang.String getUrl()
Get The URL to the project's browsable CVS repository.


setConnection

public void setConnection(java.lang.String connection)
Set

Optional. The source configuration management system URL that describes the repository and how to connect to the repository. This is used by Maven when building versions from specific ID.

The format of this element is as follows:

scm:<provider>:<provider-parameters>

For cvs, the format for pserver repositories should be:

scm:cvs:pserver:user@host:/cvs/root:module-name

For local networked repositories (eg. pserver to local machine)

scm:cvs:lserver:user@host:/cvs/root:module-name

For ssh access:

scm:cvs:ext:user@host:/cvs/root:module-name
Remember that CVS will expect an environment variable called CVS_RSH to be set, typically to ssh or your ssh client.

Some cvs clients support other protocols, such as ntserver and extssh. Here's an example using CVS NT and ntserver:

scm|cvs|ntserver|user@server|e:\cvs|Deployment
Note the use of the vertical bar as delimiter as the repository has a colon (:) in it.

For local file system repositories

scm:cvs:local:ignored:/cvs/root:module-name

For StarTeam access:

scm:starteam:username:password@host:port/project/view/folder
All of this information can be had from either the StarTeam Universal Client (Tools->Server Administration->Server Properties) or from the administrator.

The delimiter is determined by the character after "scm". eg. scm|cvs|pserver|user@host|/cvs/root|module-name is equivalent to that listed above. This can be useful for Windows users who have : in their cvsroot parameter (eg. D:\cvsroot)

Where pserver is the protocol used to access CVS, user@host is the user name to log in to the specified cvs host, /cvs/root is the cvs root directory, and module-name is the name of the cvs module to be worked on

As an example, the settings for an Apache project are usually:

scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:module-name

Currently CVS, Starteam and SubVersion are the only supported scm's. Others will be added as soon as possible

Parameters:
connection -

setDeveloperConnection

public void setDeveloperConnection(java.lang.String developerConnection)
Set Just like connection, but for developers, i.e. this scm connection will not be read only.

Parameters:
developerConnection -

setUrl

public void setUrl(java.lang.String url)
Set The URL to the project's browsable CVS repository.

Parameters:
url -

setModelEncoding

public void setModelEncoding(java.lang.String modelEncoding)

getModelEncoding

public java.lang.String getModelEncoding()