Package org.apache.maven.model
Class Scm
java.lang.Object
org.apache.maven.model.Scm
- All Implemented Interfaces:
Serializable
The
<scm>
element contains
informations required to the SCM
(Source Control Management) of the project.- Version:
- $Revision$ $Date$
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the source control management system URL that describes the repository and how to connect to the repository.Get just likeconnection
, but for developers, i.e.getTag()
Get the tag of current code.getUrl()
Get the URL to the project's browsable SCM repository, such as ViewVC or Fisheye.void
setConnection
(String connection) Set the source control management system URL that describes the repository and how to connect to the repository.void
setDeveloperConnection
(String developerConnection) Set just likeconnection
, but for developers, i.e.void
Set the tag of current code.void
Set the URL to the project's browsable SCM repository, such as ViewVC or Fisheye.
-
Constructor Details
-
Scm
public Scm()
-
-
Method Details
-
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
Get just likeconnection
, but for developers, i.e. this scm connection will not be read only.- Returns:
- String
-
getTag
Get the tag of current code. By default, it's set to HEAD during development.- Returns:
- String
-
getUrl
Get the URL to the project's browsable SCM repository, such as ViewVC or Fisheye.- Returns:
- String
-
setConnection
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
- a connection object.
-
setDeveloperConnection
Set just likeconnection
, but for developers, i.e. this scm connection will not be read only.- Parameters:
developerConnection
- a developerConnection object.
-
setTag
Set the tag of current code. By default, it's set to HEAD during development.- Parameters:
tag
- a tag object.
-
setUrl
Set the URL to the project's browsable SCM repository, such as ViewVC or Fisheye.- Parameters:
url
- a url object.
-