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>
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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlocate
(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
-
Constructor Details
-
DefaultLocalRepositoryLocator
@DataBoundConstructor public DefaultLocalRepositoryLocator()
-
-
Method Details
-
locate
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.
-