Package com.atlassian.bamboo.plugins.git
Class GitMavenPomAccessor
java.lang.Object
com.atlassian.bamboo.repository.MavenPomAccessorAbstract<GitRepository>
com.atlassian.bamboo.plugins.git.GitMavenPomAccessor
- All Implemented Interfaces:
MavenPomAccessor
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
GitMavenPomAccessor
(GitRepository repository, @NotNull SshProxyService sshProxyService, @NotNull com.atlassian.sal.api.message.I18nResolver i18nResolver, @Nullable String gitCapability, TrustedKeyHelper trustedKeyHelper) -
Method Summary
Modifier and TypeMethodDescription@NotNull File
checkoutMavenPom
(@NotNull File destinationPath) Checkout Maven POM and return File pointing to the project file@NotNull String
Return Maven's SCM provider key for this repository type.void
parseMavenScmUrl
(@NotNull String mavenScmUrl) Parse and setup internal structures from Maven's SCM URL provider specific part.Methods inherited from class com.atlassian.bamboo.repository.MavenPomAccessorAbstract
addDefaultValues, getMavenPomCheckoutAccessEditHtml
-
Field Details
-
POM_XML
- See Also:
-
-
Constructor Details
-
GitMavenPomAccessor
protected GitMavenPomAccessor(GitRepository repository, @NotNull @NotNull SshProxyService sshProxyService, @NotNull @NotNull com.atlassian.sal.api.message.I18nResolver i18nResolver, @Nullable @Nullable String gitCapability, TrustedKeyHelper trustedKeyHelper)
-
-
Method Details
-
getMavenScmProviderKey
Description copied from interface:MavenPomAccessor
Return Maven's SCM provider key for this repository type.- Returns:
- Maven's SCM provider key
-
parseMavenScmUrl
Description copied from interface:MavenPomAccessor
Parse and setup internal structures from Maven's SCM URL provider specific part. Maven SCM URL format is defined in http://maven.apache.org/scm/scm-url-format.html- Parameters:
mavenScmUrl
- Provider specific part of Maven SCM URL- Throws:
IllegalArgumentException
- When SCM URL string cannot be parsed
-
checkoutMavenPom
@NotNull public @NotNull File checkoutMavenPom(@NotNull @NotNull File destinationPath) throws RepositoryException Description copied from interface:MavenPomAccessor
Checkout Maven POM and return File pointing to the project file- Parameters:
destinationPath
- Checkout destination- Returns:
- File object referencing Maven project file
- Throws:
RepositoryException
- In case of repository access problems
-