Package hudson.maven
Class Maven3ProcessFactory
java.lang.Object
hudson.maven.AbstractMavenProcessFactory
hudson.maven.Maven3ProcessFactory
- Direct Known Subclasses:
Maven31ProcessFactory,Maven32ProcessFactory,Maven33ProcessFactory,Maven35ProcessFactory
AbstractMavenProcessFactory for Maven 3.- Author:
- Olivier Lamy
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static final classFinds classworlds.jarNested 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 voidapplyPlexusModuleContributor(hudson.remoting.Channel channel, AbstractMavenBuild<?, ?> context) Apply extension plexus modules to the newly launched Maven process.getJava(TaskListener listener) protected final Stringprotected StringReturns the name of the Maven main class.protected StringgetMavenAgentClassPath(Maven.MavenInstallation mvn, FilePath slaveRoot, BuildListener listener) Returns the classpath string for the maven-agent jar including classworldsgetMavenInstallation(TaskListener listener) protected StringgetMavenInterceptorClassPath(Maven.MavenInstallation mvn, FilePath slaveRoot, BuildListener listener) Returns the classpath string for the maven-interceptor jarprotected StringgetMavenInterceptorCommonClassPath(Maven.MavenInstallation mvn, FilePath slaveRoot, BuildListener listener) Returns the classpath string for the maven-interceptor jarprotected StringgetMavenInterceptorOverride(Maven.MavenInstallation mvn, FilePath slaveRoot, BuildListener listener) For Maven 2.1.x - 2.2.x we need an additional jar which overrides some classes in the other interceptor jar.newProcess(BuildListener listener, OutputStream out) Methods inherited from class hudson.maven.AbstractMavenProcessFactory
addRunHeadLessOption, buildMavenAgentCmdLine, classPathEntry, getCurrentNode, getEnvVars, getJava, getLauncher, getMavenInstallation, getMavenModuleSet, getMavenOpts, newProcess
-
Method Details
-
getMavenAgentClassPath
protected String getMavenAgentClassPath(Maven.MavenInstallation mvn, FilePath slaveRoot, BuildListener listener) throws IOException, InterruptedException Description copied from class:AbstractMavenProcessFactoryReturns the classpath string for the maven-agent jar including classworlds- Specified by:
getMavenAgentClassPathin classAbstractMavenProcessFactory- Throws:
IOExceptionInterruptedException
-
getMainClassName
Description copied from class:AbstractMavenProcessFactoryReturns the name of the Maven main class.- Specified by:
getMainClassNamein classAbstractMavenProcessFactory
-
getMavenInterceptorClassPath
protected String getMavenInterceptorClassPath(Maven.MavenInstallation mvn, FilePath slaveRoot, BuildListener listener) throws IOException, InterruptedException Description copied from class:AbstractMavenProcessFactoryReturns the classpath string for the maven-interceptor jar- Specified by:
getMavenInterceptorClassPathin classAbstractMavenProcessFactory- Throws:
IOExceptionInterruptedException
-
getMavenInterceptorCommonClassPath
protected String getMavenInterceptorCommonClassPath(Maven.MavenInstallation mvn, FilePath slaveRoot, BuildListener listener) throws IOException, InterruptedException Description copied from class:AbstractMavenProcessFactoryReturns the classpath string for the maven-interceptor jar- Overrides:
getMavenInterceptorCommonClassPathin classAbstractMavenProcessFactory- Throws:
IOExceptionInterruptedException
-
getMavenInterceptorOverride
protected String getMavenInterceptorOverride(Maven.MavenInstallation mvn, FilePath slaveRoot, BuildListener listener) throws IOException, InterruptedException Description copied from class:AbstractMavenProcessFactoryFor Maven 2.1.x - 2.2.x we need an additional jar which overrides some classes in the other interceptor jar.- Specified by:
getMavenInterceptorOverridein classAbstractMavenProcessFactory- Throws:
IOExceptionInterruptedException
-
applyPlexusModuleContributor
protected void applyPlexusModuleContributor(hudson.remoting.Channel channel, AbstractMavenBuild<?, ?> context) throws InterruptedException, IOExceptionDescription copied from class:AbstractMavenProcessFactoryApply extension plexus modules to the newly launched Maven process.- Specified by:
applyPlexusModuleContributorin classAbstractMavenProcessFactory- Parameters:
channel- Channel to the Maven process.context- Context thatPlexusModuleContributorneeds to figure out what it needs to do.- Throws:
InterruptedExceptionIOException
-
getLoggingPath
-
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:
IOExceptionInterruptedException
-
getMavenOpts
String getMavenOpts() -
getMavenInstallation
Maven.MavenInstallation getMavenInstallation(TaskListener listener) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
getJava
- Throws:
IOExceptionInterruptedException
-