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:
  • Field Details

    • channel

      protected transient hudson.remoting.Channel channel
      When getPlexusComponentJars() is called, this field is set to the channel that represents the connection to the controller.
  • Constructor Details

    • PlexusModuleContributor

      public PlexusModuleContributor()
  • Method Details

    • 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 a PlexusModuleContributor object that adds the given files as classpaths. These jar files must represent the files on the computer on which Maven process is running.