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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionclone()Method clone.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.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.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.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.booleanbooleanbooleanvoidsetChildScmConnectionInheritAppendPath(boolean childScmConnectionInheritAppendPath) voidsetChildScmConnectionInheritAppendPath(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(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(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(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.voidsetLocation(Object key, InputLocation location) Sets the location of the specified field.voidsetOtherLocation(Object key, InputLocation location) voidSet the tag of current code.voidSet the URL to the project's browsable SCM repository, such as ViewVC or Fisheye.toString()
- 
Constructor Details- 
Scmpublic Scm()
 
- 
- 
Method Details- 
cloneMethod clone.
- 
getChildScmConnectionInheritAppendPathGet 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
 
- 
getChildScmDeveloperConnectionInheritAppendPathGet 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
 
- 
getChildScmUrlInheritAppendPathGet 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
 
- 
getConnectionGet 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
 
- 
getDeveloperConnectionGet 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
 
- 
getLocationDescription copied from interface:InputLocationTrackerGets the location of the specified field in the input source.- Specified by:
- getLocationin interface- InputLocationTracker
- Parameters:
- key- a key object.
- Returns:
- InputLocation
 
- 
setLocationDescription copied from interface:InputLocationTrackerSets the location of the specified field.- Specified by:
- setLocationin interface- InputLocationTracker
- Parameters:
- key- a key object.
- location- a location object.
 
- 
setOtherLocation- Parameters:
- key- a key object.
- location- a location object.
 
- 
getTagGet the tag of current code. By default, it's set to HEAD during development.- Returns:
- String
 
- 
getUrlGet 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
 
- 
setChildScmConnectionInheritAppendPathSet 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- a childScmConnectionInheritAppendPath object.
 
- 
setChildScmDeveloperConnectionInheritAppendPathpublic void setChildScmDeveloperConnectionInheritAppendPath(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- a childScmDeveloperConnectionInheritAppendPath object.
 
- 
setChildScmUrlInheritAppendPathSet 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- a childScmUrlInheritAppendPath object.
 
- 
setConnectionSet 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.
 
- 
setDeveloperConnectionSet 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.
 
- 
setTagSet the tag of current code. By default, it's set to HEAD during development.- Parameters:
- tag- a tag object.
 
- 
setUrlSet 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.
 
- 
isChildScmConnectionInheritAppendPathpublic boolean isChildScmConnectionInheritAppendPath()
- 
setChildScmConnectionInheritAppendPathpublic void setChildScmConnectionInheritAppendPath(boolean childScmConnectionInheritAppendPath) 
- 
isChildScmDeveloperConnectionInheritAppendPathpublic boolean isChildScmDeveloperConnectionInheritAppendPath()
- 
setChildScmDeveloperConnectionInheritAppendPathpublic void setChildScmDeveloperConnectionInheritAppendPath(boolean childScmDeveloperConnectionInheritAppendPath) 
- 
isChildScmUrlInheritAppendPathpublic boolean isChildScmUrlInheritAppendPath()
- 
setChildScmUrlInheritAppendPathpublic void setChildScmUrlInheritAppendPath(boolean childScmUrlInheritAppendPath) 
- 
toString
 
-