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
PlexusModuleContributorFactorys 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PlexusModuleContributoraggregate(AbstractBuild<?, ?> context) Returns a singlePlexusModuleContributorthat aggregates all the registeredPlexusModuleContributors in the system.all()Returns all the registeredPlexusModuleContributors.abstract PlexusModuleContributorcreateFor(AbstractBuild<?, ?> context)
-
Constructor Details
-
PlexusModuleContributorFactory
public PlexusModuleContributorFactory()
-
-
Method Details
-
createFor
public abstract PlexusModuleContributor createFor(AbstractBuild<?, ?> context) throws IOException, InterruptedException- Throws:
IOExceptionInterruptedException
-
all
Returns all the registeredPlexusModuleContributors. -
aggregate
public static PlexusModuleContributor aggregate(AbstractBuild<?, ?> context) throws IOException, InterruptedExceptionReturns a singlePlexusModuleContributorthat aggregates all the registeredPlexusModuleContributors in the system. The instance is remoting portable.- Throws:
IOExceptionInterruptedException
-