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 Link icon

    • channel Link icon

      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 Link icon

    • PlexusModuleContributor Link icon

      public PlexusModuleContributor()
  • Method Details Link icon

    • getPlexusComponentJars Link icon

      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 Link icon

      protected Object readResolve()
    • of Link icon

      public static PlexusModuleContributor of(FilePath... jars)
    • of Link icon

      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.