org.jvnet.hudson.maven3.agent
Class Maven3Main

java.lang.Object
  extended by org.jvnet.hudson.maven3.agent.Maven3Main

public class Maven3Main
extends Object

Entry point for launching Maven 3 and Hudson remoting in the same VM, in the classloader layout that Maven expects.

The actual Maven execution will be started by the program sent through remoting.

Author:
Kohsuke Kawaguchi, Olivier Lamy

Constructor Summary
Maven3Main()
           
 
Method Summary
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, File interceptorCommonJar, int tcpPort)
           
static void main(String... args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Maven3Main

public Maven3Main()
Method Detail

main

public static void main(String... args)
                 throws Exception
Throws:
Exception

main

public static void main(File m2Home,
                        File remotingJar,
                        File interceptorJar,
                        File interceptorCommonJar,
                        int tcpPort)
                 throws Exception
Parameters:
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-listener.jar that we'll load.
interceptorCommonJar - maven3-interceptor-commons.jar we'll load
tcpPort - TCP socket that the launching Hudson will be listening to. This is used for the remoting communication.
Throws:
Exception

addPlexusComponents

public static void addPlexusComponents(URL[] modules)
Called by the code in remoting to add more plexus components.

Since:
1.3

launch

public static int launch(String[] args)
                  throws Exception
Called by the code in remoting to launch.

Throws:
Exception


Copyright © 2004-2013. All Rights Reserved.