Interface MavenResolver
- All Superinterfaces:
ArtifactRepository, PomFilterContainer
- All Known Subinterfaces:
GroovyMavenDeployer, MavenDeployer
An
ArtifactRepository which can be used to publish artifacts to Maven repositories.-
Field Summary
Fields inherited from interface PomFilterContainer
DEFAULT_ARTIFACT_POM_NAME -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeDeployment(Closure action) Adds a closure to be executed immediately before a deployment to this resolver.voidbeforeDeployment(Action<? super MavenDeployment> action) Adds an action to be executed immediately before a deployment to this resolver.Returns a Maven settings object.Methods inherited from interface ArtifactRepository
getName, setName
-
Method Details
-
getSettings
Object getSettings()Returns a Maven settings object. This can be used for example to figure out where the local repository is located. This property is populated on demand. -
beforeDeployment
Adds an action to be executed immediately before a deployment to this resolver. The action is executed after all artifacts have been build, including generation of the POM. The action can modify the set of artifacts to be deployed.- Parameters:
action- The action to execute.
-
beforeDeployment
Adds a closure to be executed immediately before a deployment to this resolver. The closure is passed aMavenDeploymentas a parameter. The closure is executed after all artifacts have been build, including generation of the POM. The closure can modify the set of artifacts to be deployed.- Parameters:
action- The closure to execute.
-