Package hudson.maven
Class PlexusModuleContributor
- java.lang.Object
-
- hudson.maven.PlexusModuleContributor
-
- All Implemented Interfaces:
Serializable
public abstract class PlexusModuleContributor extends Object implements Serializable
Contributes additional code into Plexus container when we run Maven.This object gets serialized and is sent to Maven JVM to run.
- Since:
- 1.521
- Author:
- Kohsuke Kawaguchi
- See Also:
PlexusModuleContributorFactory
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected hudson.remoting.Channel
channel
WhengetPlexusComponentJars()
is called, this field is set to the channel that represents the connection to the controller.
-
Constructor Summary
Constructors Constructor Description PlexusModuleContributor()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract List<URL>
getPlexusComponentJars()
Designates the list of URLs to be added to the classpath of the core plexus components that constitute Maven.static PlexusModuleContributor
of(FilePath... jars)
static PlexusModuleContributor
of(List<FilePath> jars)
Convenience method that creates aPlexusModuleContributor
object that adds the given files as classpaths.protected Object
readResolve()
-
-
-
Field Detail
-
channel
protected transient hudson.remoting.Channel channel
WhengetPlexusComponentJars()
is called, this field is set to the channel that represents the connection to the controller.
-
-
Method Detail
-
getPlexusComponentJars
public abstract List<URL> getPlexusComponentJars()
Designates the list of URLs to be added to the classpath of the core plexus components that constitute Maven.
-
readResolve
protected Object readResolve()
-
of
public static PlexusModuleContributor of(FilePath... jars)
-
of
public static PlexusModuleContributor of(List<FilePath> jars)
Convenience method that creates aPlexusModuleContributor
object that adds the given files as classpaths. These jar files must represent the files on the computer on which Maven process is running.
-
-