Package hudson.maven
Class PlexusModuleContributorFactory
java.lang.Object
hudson.maven.PlexusModuleContributorFactory
- All Implemented Interfaces:
ExtensionPoint
Contributes additional code into Plexus container when we run Maven.
Injecting custom plexus components, such as AbstractMavenLifecycleParticipant
, allows plugins to
participate into the Maven internals more deeply.
Lifecycle
PlexusModuleContributorFactory
s are instantiated as singletons on the controller, and whenever a new Maven
process starts, its createFor(AbstractBuild)
method is called to instantiate PlexusModuleContributor
,
which gets serialized on the controller, then deserialized inside the Maven process, and then its
PlexusModuleContributor.getPlexusComponentJars()
will be invoked to determine the additional classpaths.
and then run.
- Since:
- 1.521
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PlexusModuleContributor
aggregate
(AbstractBuild<?, ?> context) Returns a singlePlexusModuleContributor
that aggregates all the registeredPlexusModuleContributor
s in the system.all()
Returns all the registeredPlexusModuleContributor
s.abstract PlexusModuleContributor
createFor
(AbstractBuild<?, ?> context)
-
Constructor Details
-
PlexusModuleContributorFactory
public PlexusModuleContributorFactory()
-
-
Method Details
-
createFor
public abstract PlexusModuleContributor createFor(AbstractBuild<?, ?> context) throws IOException, InterruptedException- Throws:
IOException
InterruptedException
-
all
Returns all the registeredPlexusModuleContributor
s. -
aggregate
public static PlexusModuleContributor aggregate(AbstractBuild<?, ?> context) throws IOException, InterruptedExceptionReturns a singlePlexusModuleContributor
that aggregates all the registeredPlexusModuleContributor
s in the system. The instance is remoting portable.- Throws:
IOException
InterruptedException
-