@Singleton @Named public class DefaultScmRepositoryConfigurator extends Object implements ScmRepositoryConfigurator
Constructor and Description |
---|
DefaultScmRepositoryConfigurator(org.apache.maven.scm.manager.ScmManager scmManager,
MavenCrypto mavenCrypto) |
Modifier and Type | Method and Description |
---|---|
org.apache.maven.scm.repository.ScmRepository |
getConfiguredRepository(ReleaseDescriptor releaseDescriptor,
org.apache.maven.settings.Settings settings)
Construct a configured SCM repository from a release configuration.
|
org.apache.maven.scm.repository.ScmRepository |
getConfiguredRepository(String url,
ReleaseDescriptor releaseDescriptor,
org.apache.maven.settings.Settings settings)
Construct a configured SCM repository from a release configuration with an overridden base SCM URL.
|
org.apache.maven.scm.provider.ScmProvider |
getRepositoryProvider(org.apache.maven.scm.repository.ScmRepository repository)
Get the SCM provider used for the given SCM repository.
|
void |
setScmManager(org.apache.maven.scm.manager.ScmManager scmManager)
For testing purposes only!
|
@Inject public DefaultScmRepositoryConfigurator(org.apache.maven.scm.manager.ScmManager scmManager, MavenCrypto mavenCrypto)
public void setScmManager(org.apache.maven.scm.manager.ScmManager scmManager)
public org.apache.maven.scm.repository.ScmRepository getConfiguredRepository(ReleaseDescriptor releaseDescriptor, org.apache.maven.settings.Settings settings) throws org.apache.maven.scm.repository.ScmRepositoryException, org.apache.maven.scm.manager.NoSuchScmProviderException
ScmRepositoryConfigurator
getConfiguredRepository
in interface ScmRepositoryConfigurator
releaseDescriptor
- the configuration to insert into the repositorysettings
- the settings.xml configuraitonorg.apache.maven.scm.repository.ScmRepositoryException
- if it is not possible to create a suitable
SCM repositoryorg.apache.maven.scm.manager.NoSuchScmProviderException
- if the requested SCM provider is not availablepublic org.apache.maven.scm.repository.ScmRepository getConfiguredRepository(String url, ReleaseDescriptor releaseDescriptor, org.apache.maven.settings.Settings settings) throws org.apache.maven.scm.repository.ScmRepositoryException, org.apache.maven.scm.manager.NoSuchScmProviderException
ScmRepositoryConfigurator
getConfiguredRepository
in interface ScmRepositoryConfigurator
url
- the SCM URL to use instead of the one from the release descriptorreleaseDescriptor
- the configuration to insert into the repositorysettings
- the settings.xml configuraitonorg.apache.maven.scm.repository.ScmRepositoryException
- if it is not possible to create a suitable
SCM repositoryorg.apache.maven.scm.manager.NoSuchScmProviderException
- if the requested SCM provider is not availablepublic org.apache.maven.scm.provider.ScmProvider getRepositoryProvider(org.apache.maven.scm.repository.ScmRepository repository) throws org.apache.maven.scm.manager.NoSuchScmProviderException
ScmRepositoryConfigurator
getRepositoryProvider
in interface ScmRepositoryConfigurator
repository
- the SCM repositoryorg.apache.maven.scm.manager.NoSuchScmProviderException
- if the requested SCM provider is not availableCopyright © 2002–2024 The Apache Software Foundation. All rights reserved.