Package hudson.maven.local_repo
Class DefaultLocalRepositoryLocator
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<LocalRepositoryLocator>
-
- hudson.maven.local_repo.LocalRepositoryLocator
-
- hudson.maven.local_repo.DefaultLocalRepositoryLocator
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<LocalRepositoryLocator>
public class DefaultLocalRepositoryLocator extends LocalRepositoryLocator
Uses Maven's default local repository, which is usually~/.m2/repository
, or the value of 'localRepository' in Maven's settings file, if defined.- Author:
- Kohsuke Kawaguchi
- See Also:
- https://maven.apache.org/settings.html#Settings_Details
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DefaultLocalRepositoryLocator.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description DefaultLocalRepositoryLocator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilePath
locate(AbstractMavenBuild build)
Called during the build on the controller to determine the location of the local Maven repository.-
Methods inherited from class hudson.maven.local_repo.LocalRepositoryLocator
getDescriptor
-
-
-
-
Method Detail
-
locate
public FilePath locate(AbstractMavenBuild build)
Description copied from class:LocalRepositoryLocator
Called during the build on the controller to determine the location of the local Maven repository.- Specified by:
locate
in classLocalRepositoryLocator
- Returns:
- null to let Maven uses its default location. Otherwise this must be located on the same
node as
AbstractBuild.getWorkspace()
does.
-
-