public class Maven3ProcessFactory extends AbstractMavenProcessFactory
AbstractMavenProcessFactory for Maven 3.| Modifier and Type | Class and Description |
|---|---|
protected static class |
Maven3ProcessFactory.GetClassWorldsJar
Finds classworlds.jar
|
AbstractMavenProcessFactory.GetRemotingJar, AbstractMavenProcessFactory.UserInetTcpSocketHostLocatordebugPort, MAVEN_REMOTE_USEINET_ENV_VAR_NAME, mavenRemoteUseInet, yjp| Modifier and Type | Method and Description |
|---|---|
protected void |
applyPlexusModuleContributor(hudson.remoting.Channel channel,
AbstractMavenBuild<?,?> context)
Apply extension plexus modules to the newly launched Maven process.
|
hudson.model.JDK |
getJava(hudson.model.TaskListener listener) |
protected String |
getMainClassName()
Returns the name of the Maven main class.
|
protected String |
getMavenAgentClassPath(hudson.tasks.Maven.MavenInstallation mvn,
hudson.FilePath slaveRoot,
hudson.model.BuildListener listener)
Returns the classpath string for the maven-agent jar including classworlds
|
hudson.tasks.Maven.MavenInstallation |
getMavenInstallation(hudson.model.TaskListener listener) |
protected String |
getMavenInterceptorClassPath(hudson.tasks.Maven.MavenInstallation mvn,
hudson.FilePath slaveRoot,
hudson.model.BuildListener listener)
Returns the classpath string for the maven-interceptor jar
|
protected String |
getMavenInterceptorCommonClassPath(hudson.tasks.Maven.MavenInstallation mvn,
hudson.FilePath slaveRoot,
hudson.model.BuildListener listener)
Returns the classpath string for the maven-interceptor jar
|
protected String |
getMavenInterceptorOverride(hudson.tasks.Maven.MavenInstallation mvn,
hudson.FilePath slaveRoot,
hudson.model.BuildListener listener)
For Maven 2.1.x - 2.2.x we need an additional jar which overrides some classes in the other interceptor jar.
|
String |
getMavenOpts() |
ProcessCache.NewProcess |
newProcess(hudson.model.BuildListener listener,
OutputStream out) |
addRunHeadLessOption, buildMavenAgentCmdLine, classPathEntry, getCurrentNode, getEnvVars, getJava, getLauncher, getMavenInstallation, getMavenModuleSet, getMavenOpts, newProcessprotected String getMavenAgentClassPath(hudson.tasks.Maven.MavenInstallation mvn, hudson.FilePath slaveRoot, hudson.model.BuildListener listener) throws IOException, InterruptedException
AbstractMavenProcessFactorygetMavenAgentClassPath in class AbstractMavenProcessFactoryIOExceptionInterruptedExceptionprotected String getMainClassName()
AbstractMavenProcessFactorygetMainClassName in class AbstractMavenProcessFactoryprotected String getMavenInterceptorClassPath(hudson.tasks.Maven.MavenInstallation mvn, hudson.FilePath slaveRoot, hudson.model.BuildListener listener) throws IOException, InterruptedException
AbstractMavenProcessFactorygetMavenInterceptorClassPath in class AbstractMavenProcessFactoryIOExceptionInterruptedExceptionprotected String getMavenInterceptorCommonClassPath(hudson.tasks.Maven.MavenInstallation mvn, hudson.FilePath slaveRoot, hudson.model.BuildListener listener) throws IOException, InterruptedException
AbstractMavenProcessFactorygetMavenInterceptorCommonClassPath in class AbstractMavenProcessFactoryIOExceptionInterruptedExceptionprotected String getMavenInterceptorOverride(hudson.tasks.Maven.MavenInstallation mvn, hudson.FilePath slaveRoot, hudson.model.BuildListener listener) throws IOException, InterruptedException
AbstractMavenProcessFactorygetMavenInterceptorOverride in class AbstractMavenProcessFactoryIOExceptionInterruptedExceptionprotected void applyPlexusModuleContributor(hudson.remoting.Channel channel,
AbstractMavenBuild<?,?> context)
throws InterruptedException,
IOException
AbstractMavenProcessFactoryapplyPlexusModuleContributor in class AbstractMavenProcessFactorychannel - Channel to the Maven process.context - Context that PlexusModuleContributor needs to figure out what it needs to do.InterruptedExceptionIOExceptionpublic ProcessCache.NewProcess newProcess(hudson.model.BuildListener listener, OutputStream out) throws IOException, InterruptedException
out - The output from the process should be sent to this output stream.IOExceptionInterruptedExceptionpublic String getMavenOpts()
public hudson.tasks.Maven.MavenInstallation getMavenInstallation(hudson.model.TaskListener listener)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic hudson.model.JDK getJava(hudson.model.TaskListener listener)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionCopyright © 2016–2017. All rights reserved.