Package org.apache.maven.model
Class Scm
- java.lang.Object
-
- org.apache.maven.model.Scm
-
- All Implemented Interfaces:
Serializable
public class Scm extends Object implements Serializable
The<scm>element contains informations required to the SCM (Source Control Management) of the project.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Scm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetConnection()Get the source control management system URL that describes the repository and how to connect to the repository.StringgetDeveloperConnection()Get just likeconnection, but for developers, i.e.StringgetTag()Get the tag of current code.StringgetUrl()Get the URL to the project's browsable SCM repository, such as ViewVC or Fisheye.voidsetConnection(String connection)Set the source control management system URL that describes the repository and how to connect to the repository.voidsetDeveloperConnection(String developerConnection)Set just likeconnection, but for developers, i.e.voidsetTag(String tag)Set the tag of current code.voidsetUrl(String url)Set the URL to the project's browsable SCM repository, such as ViewVC or Fisheye.
-
-
-
Method Detail
-
getConnection
public String getConnection()
Get the source control management system URL that describes the repository and how to connect to the repository. For more information, see the URL format and list of supported SCMs. This connection is read-only.- Returns:
- String
-
getDeveloperConnection
public String getDeveloperConnection()
Get just likeconnection, but for developers, i.e. this scm connection will not be read only.- Returns:
- String
-
getTag
public String getTag()
Get the tag of current code. By default, it's set to HEAD during development.- Returns:
- String
-
getUrl
public String getUrl()
Get the URL to the project's browsable SCM repository, such as ViewVC or Fisheye.- Returns:
- String
-
setConnection
public void setConnection(String connection)
Set the source control management system URL that describes the repository and how to connect to the repository. For more information, see the URL format and list of supported SCMs. This connection is read-only.- Parameters:
connection-
-
setDeveloperConnection
public void setDeveloperConnection(String developerConnection)
Set just likeconnection, but for developers, i.e. this scm connection will not be read only.- Parameters:
developerConnection-
-
setTag
public void setTag(String tag)
Set the tag of current code. By default, it's set to HEAD during development.- Parameters:
tag-
-
setUrl
public void setUrl(String url)
Set the URL to the project's browsable SCM repository, such as ViewVC or Fisheye.- Parameters:
url-
-
-