Package org.apache.maven.model
Class Scm
java.lang.Object
org.apache.maven.model.Scm
- All Implemented Interfaces:
Serializable
,Cloneable
,InputLocationTracker
The
<scm>
element contains
informations required to the SCM
(Source Control Management) of the project.- Version:
- $Revision$ $Date$
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Method clone.Get when children inherit from scm connection, append path or not? Note: While the type of this field isString
for technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1.Get when children inherit from scm developer connection, append path or not? Note: While the type of this field isString
for technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1.Get when children inherit from scm url, append path or not? Note: While the type of this field isString
for technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1.Get 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.getLocation
(Object key) Gets the location of the specified field in the input source.getTag()
Get the tag of current code.getUrl()
Get the URL to the project's browsable SCM repository, such as ViewVC or Fisheye.boolean
boolean
boolean
void
setChildScmConnectionInheritAppendPath
(boolean childScmConnectionInheritAppendPath) void
setChildScmConnectionInheritAppendPath
(String childScmConnectionInheritAppendPath) Set when children inherit from scm connection, append path or not? Note: While the type of this field isString
for technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1.void
setChildScmDeveloperConnectionInheritAppendPath
(boolean childScmDeveloperConnectionInheritAppendPath) void
setChildScmDeveloperConnectionInheritAppendPath
(String childScmDeveloperConnectionInheritAppendPath) Set when children inherit from scm developer connection, append path or not? Note: While the type of this field isString
for technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1.void
setChildScmUrlInheritAppendPath
(boolean childScmUrlInheritAppendPath) void
setChildScmUrlInheritAppendPath
(String childScmUrlInheritAppendPath) Set when children inherit from scm url, append path or not? Note: While the type of this field isString
for technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1.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
setLocation
(Object key, InputLocation location) Sets the location of the specified field.void
setOtherLocation
(Object key, InputLocation location) void
Set the tag of current code.void
Set the URL to the project's browsable SCM repository, such as ViewVC or Fisheye.toString()
-
Constructor Details
-
Scm
public Scm()
-
-
Method Details
-
clone
Method clone. -
getChildScmConnectionInheritAppendPath
Get when children inherit from scm connection, append path or not? Note: While the type of this field isString
for technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1.- Returns:
- String
-
getChildScmDeveloperConnectionInheritAppendPath
Get when children inherit from scm developer connection, append path or not? Note: While the type of this field isString
for technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1.- Returns:
- String
-
getChildScmUrlInheritAppendPath
Get when children inherit from scm url, append path or not? Note: While the type of this field isString
for technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1.- Returns:
- 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.
Default value is: parent value [+ path adjustment] + (artifactId or project.directory property), or just parent value if scm'schild.scm.connection.inherit.append.path="false"
- Returns:
- String
-
getDeveloperConnection
Get just likeconnection
, but for developers, i.e. this scm connection will not be read only.
Default value is: parent value [+ path adjustment] + (artifactId or project.directory property), or just parent value if scm'schild.scm.developerConnection.inherit.append.path="false"
- Returns:
- String
-
getLocation
Description copied from interface:InputLocationTracker
Gets the location of the specified field in the input source.- Specified by:
getLocation
in interfaceInputLocationTracker
- Parameters:
key
- a key object.- Returns:
- InputLocation
-
setLocation
Description copied from interface:InputLocationTracker
Sets the location of the specified field.- Specified by:
setLocation
in interfaceInputLocationTracker
- Parameters:
key
- a key object.location
- a location object.
-
setOtherLocation
- Parameters:
key
- a key object.location
- a location object.
-
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.
Default value is: parent value [+ path adjustment] + (artifactId or project.directory property), or just parent value if scm'schild.scm.url.inherit.append.path="false"
- Returns:
- String
-
setChildScmConnectionInheritAppendPath
Set when children inherit from scm connection, append path or not? Note: While the type of this field isString
for technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1.- Parameters:
childScmConnectionInheritAppendPath
- a childScmConnectionInheritAppendPath object.
-
setChildScmDeveloperConnectionInheritAppendPath
public void setChildScmDeveloperConnectionInheritAppendPath(String childScmDeveloperConnectionInheritAppendPath) Set when children inherit from scm developer connection, append path or not? Note: While the type of this field isString
for technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1.- Parameters:
childScmDeveloperConnectionInheritAppendPath
- a childScmDeveloperConnectionInheritAppendPath object.
-
setChildScmUrlInheritAppendPath
Set when children inherit from scm url, append path or not? Note: While the type of this field isString
for technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1.- Parameters:
childScmUrlInheritAppendPath
- a childScmUrlInheritAppendPath object.
-
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.
Default value is: parent value [+ path adjustment] + (artifactId or project.directory property), or just parent value if scm'schild.scm.connection.inherit.append.path="false"
- Parameters:
connection
- a connection object.
-
setDeveloperConnection
Set just likeconnection
, but for developers, i.e. this scm connection will not be read only.
Default value is: parent value [+ path adjustment] + (artifactId or project.directory property), or just parent value if scm'schild.scm.developerConnection.inherit.append.path="false"
- 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.
Default value is: parent value [+ path adjustment] + (artifactId or project.directory property), or just parent value if scm'schild.scm.url.inherit.append.path="false"
- Parameters:
url
- a url object.
-
isChildScmConnectionInheritAppendPath
public boolean isChildScmConnectionInheritAppendPath() -
setChildScmConnectionInheritAppendPath
public void setChildScmConnectionInheritAppendPath(boolean childScmConnectionInheritAppendPath) -
isChildScmDeveloperConnectionInheritAppendPath
public boolean isChildScmDeveloperConnectionInheritAppendPath() -
setChildScmDeveloperConnectionInheritAppendPath
public void setChildScmDeveloperConnectionInheritAppendPath(boolean childScmDeveloperConnectionInheritAppendPath) -
isChildScmUrlInheritAppendPath
public boolean isChildScmUrlInheritAppendPath() -
setChildScmUrlInheritAppendPath
public void setChildScmUrlInheritAppendPath(boolean childScmUrlInheritAppendPath) -
toString
-