Package hudson.maven
Class Maven33ProcessFactory
java.lang.Object
hudson.maven.AbstractMavenProcessFactory
hudson.maven.Maven3ProcessFactory
hudson.maven.Maven33ProcessFactory
AbstractMavenProcessFactory
for Maven 3.3.x- Author:
- Olivier Lamy
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.maven.Maven3ProcessFactory
Maven3ProcessFactory.GetClassWorldsJar
Nested classes/interfaces inherited from class hudson.maven.AbstractMavenProcessFactory
AbstractMavenProcessFactory.GetRemotingJar, AbstractMavenProcessFactory.UserInetTcpSocketHostLocator
-
Field Summary
Fields inherited from class hudson.maven.AbstractMavenProcessFactory
debugPort, MAVEN_REMOTE_USEINET_ENV_VAR_NAME, mavenRemoteUseInet, yjp
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
applyPlexusModuleContributor
(hudson.remoting.Channel channel, AbstractMavenBuild<?, ?> context) Apply extension plexus modules to the newly launched Maven process.getJava
(TaskListener listener) protected String
Returns the name of the Maven main class.protected String
getMavenAgentClassPath
(Maven.MavenInstallation mvn, FilePath slaveRoot, BuildListener listener) Returns the classpath string for the maven-agent jar including classworldsgetMavenInstallation
(TaskListener listener) protected String
getMavenInterceptorClassPath
(Maven.MavenInstallation mvn, FilePath slaveRoot, BuildListener listener) Returns the classpath string for the maven-interceptor jarprotected String
getMavenInterceptorCommonClassPath
(Maven.MavenInstallation mvn, FilePath slaveRoot, BuildListener listener) Returns the classpath string for the maven-interceptor jarnewProcess
(BuildListener listener, OutputStream out) Methods inherited from class hudson.maven.Maven3ProcessFactory
getLoggingPath, getMavenInterceptorOverride
Methods inherited from class hudson.maven.AbstractMavenProcessFactory
addRunHeadLessOption, buildMavenAgentCmdLine, classPathEntry, getCurrentNode, getEnvVars, getJava, getLauncher, getMavenInstallation, getMavenModuleSet, getMavenOpts, newProcess
-
Method Details
-
getMainClassName
Description copied from class:AbstractMavenProcessFactory
Returns the name of the Maven main class.- Overrides:
getMainClassName
in classMaven3ProcessFactory
-
getMavenAgentClassPath
protected String getMavenAgentClassPath(Maven.MavenInstallation mvn, FilePath slaveRoot, BuildListener listener) throws IOException, InterruptedException Description copied from class:AbstractMavenProcessFactory
Returns the classpath string for the maven-agent jar including classworlds- Overrides:
getMavenAgentClassPath
in classMaven3ProcessFactory
- Throws:
IOException
InterruptedException
-
applyPlexusModuleContributor
protected void applyPlexusModuleContributor(hudson.remoting.Channel channel, AbstractMavenBuild<?, ?> context) throws InterruptedException, IOExceptionDescription copied from class:AbstractMavenProcessFactory
Apply extension plexus modules to the newly launched Maven process.- Overrides:
applyPlexusModuleContributor
in classMaven3ProcessFactory
- Parameters:
channel
- Channel to the Maven process.context
- Context thatPlexusModuleContributor
needs to figure out what it needs to do.- Throws:
InterruptedException
IOException
-
getMavenInterceptorClassPath
protected String getMavenInterceptorClassPath(Maven.MavenInstallation mvn, FilePath slaveRoot, BuildListener listener) throws IOException, InterruptedException Description copied from class:AbstractMavenProcessFactory
Returns the classpath string for the maven-interceptor jar- Overrides:
getMavenInterceptorClassPath
in classMaven3ProcessFactory
- Throws:
IOException
InterruptedException
-
getMavenInterceptorCommonClassPath
protected String getMavenInterceptorCommonClassPath(Maven.MavenInstallation mvn, FilePath slaveRoot, BuildListener listener) throws IOException, InterruptedException Description copied from class:AbstractMavenProcessFactory
Returns the classpath string for the maven-interceptor jar- Overrides:
getMavenInterceptorCommonClassPath
in classMaven3ProcessFactory
- Throws:
IOException
InterruptedException
-
newProcess
ProcessCache.NewProcess newProcess(BuildListener listener, OutputStream out) throws IOException, InterruptedException - Parameters:
out
- The output from the process should be sent to this output stream.- Throws:
IOException
InterruptedException
-
getMavenOpts
String getMavenOpts() -
getMavenInstallation
Maven.MavenInstallation getMavenInstallation(TaskListener listener) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
getJava
- Throws:
IOException
InterruptedException
-