public class Main extends Object
The actual Maven execution will be started by the program sent through remoting.
| Constructor and Description |
|---|
Main() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addPlexusComponents(URL[] modules)
Called by the code in remoting to add more plexus components.
|
static int |
launch(String[] args)
Called by the code in remoting to launch.
|
static void |
main(File m2Home,
File remotingJar,
File interceptorJar,
int tcpPort,
File interceptorOverrideJar) |
static void |
main(String[] args) |
public static void main(File m2Home, File remotingJar, File interceptorJar, int tcpPort, File interceptorOverrideJar) throws Exception
m2Home - Maven2 installation. This is where we find Maven jars that we'll run.remotingJar - Hudson's remoting.jar that we'll load.interceptorJar - maven-interceptor.jar that we'll load.tcpPort - TCP socket that the launching Hudson will be listening to.
This is used for the remoting communication.interceptorOverrideJar - Possibly null override jar to be placed in front of maven-interceptor.jarExceptionpublic static void addPlexusComponents(URL[] modules)
public static int launch(String[] args) throws NoSuchMethodException, IllegalAccessException, org.codehaus.classworlds.NoSuchRealmException, InvocationTargetException, ClassNotFoundException
NoSuchMethodExceptionIllegalAccessExceptionorg.codehaus.classworlds.NoSuchRealmExceptionInvocationTargetExceptionClassNotFoundExceptionCopyright © 2004–2019. All rights reserved.