Package hudson.maven.local_repo
Class LocalRepositoryLocator
java.lang.Object
hudson.model.AbstractDescribableImpl<LocalRepositoryLocator>
hudson.maven.local_repo.LocalRepositoryLocator
- All Implemented Interfaces:
ExtensionPoint
,Describable<LocalRepositoryLocator>
- Direct Known Subclasses:
DefaultLocalRepositoryLocator
,PerExecutorLocalRepositoryLocator
,PerJobLocalRepositoryLocator
public abstract class LocalRepositoryLocator
extends AbstractDescribableImpl<LocalRepositoryLocator>
implements ExtensionPoint
Strategy pattern that decides the location of the Maven local repository for a build.
- Since:
- 1.448
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract FilePath
locate
(AbstractMavenBuild build) Called during the build on the controller to determine the location of the local Maven repository.
-
Constructor Details
-
LocalRepositoryLocator
public LocalRepositoryLocator()
-
-
Method Details
-
locate
Called during the build on the controller to determine the location of the local Maven repository.- Returns:
- null to let Maven uses its default location. Otherwise this must be located on the same
node as
AbstractBuild.getWorkspace()
does.
-
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<LocalRepositoryLocator>
- Overrides:
getDescriptor
in classAbstractDescribableImpl<LocalRepositoryLocator>
-