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:
LocalRepositoryLocatorDescriptor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description LocalRepositoryLocator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description LocalRepositoryLocatorDescriptor
getDescriptor()
abstract FilePath
locate(AbstractMavenBuild build)
Called during the build on the controller to determine the location of the local Maven repository.
-
-
-
Method Detail
-
locate
public abstract FilePath locate(AbstractMavenBuild build)
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
public LocalRepositoryLocatorDescriptor getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<LocalRepositoryLocator>
- Overrides:
getDescriptor
in classAbstractDescribableImpl<LocalRepositoryLocator>
-
-