Package org.apache.maven.model
Class Scm
- java.lang.Object
-
- org.apache.maven.model.Scm
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,InputLocationTracker
public class Scm extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable, InputLocationTracker
The<scm>element contains informations required to the SCM (Source Control Management) of the project.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringchildScmConnectionInheritAppendPathWhen children inherit from scm connection, append path or not? Note: While the type of this field isStringfor technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1 .private InputLocationchildScmConnectionInheritAppendPathLocationField childScmConnectionInheritAppendPathLocation.private java.lang.StringchildScmDeveloperConnectionInheritAppendPathWhen children inherit from scm developer connection, append path or not? Note: While the type of this field isStringfor technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1 .private InputLocationchildScmDeveloperConnectionInheritAppendPathLocationField childScmDeveloperConnectionInheritAppendPathLocation.private java.lang.StringchildScmUrlInheritAppendPathWhen children inherit from scm url, append path or not? Note: While the type of this field isStringfor technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1 .private InputLocationchildScmUrlInheritAppendPathLocationField childScmUrlInheritAppendPathLocation.private java.lang.StringconnectionThe source control management system URL that describes the repository and how to connect to the repository.private InputLocationconnectionLocationField connectionLocation.private java.lang.StringdeveloperConnectionJust likeconnection, but for developers, i.e.private InputLocationdeveloperConnectionLocationField developerConnectionLocation.private InputLocationlocationField location.private java.util.Map<java.lang.Object,InputLocation>locationsField locations.private java.lang.StringtagThe tag of current code.private InputLocationtagLocationField tagLocation.private java.lang.StringurlThe URL to the project's browsable SCM repository, such as ViewVC or Fisheye.private InputLocationurlLocationField urlLocation.
-
Constructor Summary
Constructors Constructor Description Scm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Scmclone()Method clone.java.lang.StringgetChildScmConnectionInheritAppendPath()Get when children inherit from scm connection, append path or not? Note: While the type of this field isStringfor technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1.java.lang.StringgetChildScmDeveloperConnectionInheritAppendPath()Get when children inherit from scm developer connection, append path or not? Note: While the type of this field isStringfor technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1.java.lang.StringgetChildScmUrlInheritAppendPath()Get when children inherit from scm url, append path or not? Note: While the type of this field isStringfor technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1.java.lang.StringgetConnection()Get the source control management system URL that describes the repository and how to connect to the repository.java.lang.StringgetDeveloperConnection()Get just likeconnection, but for developers, i.e.InputLocationgetLocation(java.lang.Object key)Gets the location of the specified field in the input source.private InputLocationgetOtherLocation(java.lang.Object key)java.lang.StringgetTag()Get the tag of current code.java.lang.StringgetUrl()Get the URL to the project's browsable SCM repository, such as ViewVC or Fisheye.booleanisChildScmConnectionInheritAppendPath()booleanisChildScmDeveloperConnectionInheritAppendPath()booleanisChildScmUrlInheritAppendPath()voidsetChildScmConnectionInheritAppendPath(boolean childScmConnectionInheritAppendPath)voidsetChildScmConnectionInheritAppendPath(java.lang.String childScmConnectionInheritAppendPath)Set when children inherit from scm connection, append path or not? Note: While the type of this field isStringfor technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1.voidsetChildScmDeveloperConnectionInheritAppendPath(boolean childScmDeveloperConnectionInheritAppendPath)voidsetChildScmDeveloperConnectionInheritAppendPath(java.lang.String childScmDeveloperConnectionInheritAppendPath)Set when children inherit from scm developer connection, append path or not? Note: While the type of this field isStringfor technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1.voidsetChildScmUrlInheritAppendPath(boolean childScmUrlInheritAppendPath)voidsetChildScmUrlInheritAppendPath(java.lang.String childScmUrlInheritAppendPath)Set when children inherit from scm url, append path or not? Note: While the type of this field isStringfor technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1.voidsetConnection(java.lang.String connection)Set the source control management system URL that describes the repository and how to connect to the repository.voidsetDeveloperConnection(java.lang.String developerConnection)Set just likeconnection, but for developers, i.e.voidsetLocation(java.lang.Object key, InputLocation location)Sets the location of the specified field.voidsetOtherLocation(java.lang.Object key, InputLocation location)voidsetTag(java.lang.String tag)Set the tag of current code.voidsetUrl(java.lang.String url)Set the URL to the project's browsable SCM repository, such as ViewVC or Fisheye.
-
-
-
Field Detail
-
connection
private java.lang.String connection
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"
-
developerConnection
private java.lang.String developerConnection
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"
-
tag
private java.lang.String tag
The tag of current code. By default, it's set to HEAD during development.
-
url
private java.lang.String url
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"
-
childScmConnectionInheritAppendPath
private java.lang.String childScmConnectionInheritAppendPath
When children inherit from scm connection, append path or not? Note: While the type of this field isStringfor technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1 .
-
childScmDeveloperConnectionInheritAppendPath
private java.lang.String childScmDeveloperConnectionInheritAppendPath
When children inherit from scm developer connection, append path or not? Note: While the type of this field isStringfor technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1 .
-
childScmUrlInheritAppendPath
private java.lang.String childScmUrlInheritAppendPath
When children inherit from scm url, append path or not? Note: While the type of this field isStringfor technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1 .
-
locations
private java.util.Map<java.lang.Object,InputLocation> locations
Field locations.
-
location
private InputLocation location
Field location.
-
connectionLocation
private InputLocation connectionLocation
Field connectionLocation.
-
developerConnectionLocation
private InputLocation developerConnectionLocation
Field developerConnectionLocation.
-
tagLocation
private InputLocation tagLocation
Field tagLocation.
-
urlLocation
private InputLocation urlLocation
Field urlLocation.
-
childScmConnectionInheritAppendPathLocation
private InputLocation childScmConnectionInheritAppendPathLocation
Field childScmConnectionInheritAppendPathLocation.
-
childScmDeveloperConnectionInheritAppendPathLocation
private InputLocation childScmDeveloperConnectionInheritAppendPathLocation
Field childScmDeveloperConnectionInheritAppendPathLocation.
-
childScmUrlInheritAppendPathLocation
private InputLocation childScmUrlInheritAppendPathLocation
Field childScmUrlInheritAppendPathLocation.
-
-
Method Detail
-
clone
public Scm clone()
Method clone.- Overrides:
clonein classjava.lang.Object- Returns:
- Scm
-
getChildScmConnectionInheritAppendPath
public java.lang.String getChildScmConnectionInheritAppendPath()
Get when children inherit from scm connection, append path or not? Note: While the type of this field isStringfor technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1.- Returns:
- String
-
getChildScmDeveloperConnectionInheritAppendPath
public java.lang.String getChildScmDeveloperConnectionInheritAppendPath()
Get when children inherit from scm developer connection, append path or not? Note: While the type of this field isStringfor technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1.- Returns:
- String
-
getChildScmUrlInheritAppendPath
public java.lang.String getChildScmUrlInheritAppendPath()
Get when children inherit from scm url, append path or not? Note: While the type of this field isStringfor technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1.- Returns:
- String
-
getConnection
public java.lang.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
public java.lang.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
public InputLocation getLocation(java.lang.Object key)
Description copied from interface:InputLocationTrackerGets the location of the specified field in the input source.- Specified by:
getLocationin interfaceInputLocationTracker- Parameters:
key-- Returns:
- InputLocation
-
setLocation
public void setLocation(java.lang.Object key, InputLocation location)Description copied from interface:InputLocationTrackerSets the location of the specified field.- Specified by:
setLocationin interfaceInputLocationTracker- Parameters:
key-location-
-
setOtherLocation
public void setOtherLocation(java.lang.Object key, InputLocation location)- Parameters:
key-location-
-
getOtherLocation
private InputLocation getOtherLocation(java.lang.Object key)
- Parameters:
key-- Returns:
- InputLocation
-
getTag
public java.lang.String getTag()
Get the tag of current code. By default, it's set to HEAD during development.- Returns:
- String
-
getUrl
public java.lang.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
public void setChildScmConnectionInheritAppendPath(java.lang.String childScmConnectionInheritAppendPath)
Set when children inherit from scm connection, append path or not? Note: While the type of this field isStringfor technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1.- Parameters:
childScmConnectionInheritAppendPath-
-
setChildScmDeveloperConnectionInheritAppendPath
public void setChildScmDeveloperConnectionInheritAppendPath(java.lang.String childScmDeveloperConnectionInheritAppendPath)
Set when children inherit from scm developer connection, append path or not? Note: While the type of this field isStringfor technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1.- Parameters:
childScmDeveloperConnectionInheritAppendPath-
-
setChildScmUrlInheritAppendPath
public void setChildScmUrlInheritAppendPath(java.lang.String childScmUrlInheritAppendPath)
Set when children inherit from scm url, append path or not? Note: While the type of this field isStringfor technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1.- Parameters:
childScmUrlInheritAppendPath-
-
setConnection
public void setConnection(java.lang.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.
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-
-
setDeveloperConnection
public void setDeveloperConnection(java.lang.String developerConnection)
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-
-
setTag
public void setTag(java.lang.String tag)
Set the tag of current code. By default, it's set to HEAD during development.- Parameters:
tag-
-
setUrl
public void setUrl(java.lang.String url)
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-
-
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)
-
-