Package org.codehaus.mojo.exec
Class ExecJavaMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.codehaus.mojo.exec.AbstractExecMojo
-
- org.codehaus.mojo.exec.AbstractExecJavaBase
-
- org.codehaus.mojo.exec.ExecJavaMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="java", threadSafe=true, requiresDependencyResolution=TEST) public class ExecJavaMojo extends AbstractExecJavaBaseExecutes the supplied java class in the current VM with the enclosing project's dependencies as classpath. This is the Java 8 base implementation.- Since:
- 1.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.codehaus.mojo.exec.AbstractExecJavaBase
AbstractExecJavaBase.IsolatedThreadGroup
-
-
Field Summary
-
Fields inherited from class org.codehaus.mojo.exec.AbstractExecJavaBase
additionalClasspathElements, arguments, blockSystemExit, classpathFilenameExclusions, cleanupDaemonThreads, container, daemonThreadJoinTimeout, excludedJvmPackages, forcedJvmPackages, includeProjectDependencies, keepAlive, mainClass, originalSystemProperties, preloadCommonPool, stopUnresponsiveDaemonThreads, systemProperties, THREAD_STOP_UNAVAILABLE
-
Fields inherited from class org.codehaus.mojo.exec.AbstractExecMojo
classpathScope, executableDependency, includePluginDependencies, project, repositorySystem
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedExecJavaMojo(org.eclipse.aether.RepositorySystem repositorySystem, org.codehaus.plexus.PlexusContainer container)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoExecModulePath(java.lang.String moduleName, java.lang.String bootClassName)Execute using module path (Java 9+ JPMS).-
Methods inherited from class org.codehaus.mojo.exec.AbstractExecJavaBase
addAdditionalClasspathElements, addRelevantPluginDependenciesToClasspath, addRelevantProjectDependenciesToClasspath, doExecClassLoader, doRun, execute, executeMainMethod, findMethod, getActiveThreads, getClassLoader, joinNonDaemonThreads, joinThread, lookup, lookupParam, newInstance, preloadCommonPool, propertiesUpdater, resolveVersion, setSystemProperties, terminateThreads, waitFor
-
Methods inherited from class org.codehaus.mojo.exec.AbstractExecMojo
collectProjectArtifactsAndClasspath, determineRelevantPluginDependencies, findExecutableArtifact, getPluginDependencies, getSession, hasCommandlineArgs, isSkip, parseCommandlineArgs, registerSourceRoots
-
-
-
-
Method Detail
-
doExecModulePath
protected void doExecModulePath(java.lang.String moduleName, java.lang.String bootClassName) throws java.lang.ThrowableExecute using module path (Java 9+ JPMS). This base implementation (Java 8) does not support JPMS and will throw an error. The Java 9+ version overrides this method with full JPMS support.- Specified by:
doExecModulePathin classAbstractExecJavaBase- Parameters:
moduleName- the module namebootClassName- the fully qualified class name- Throws:
java.lang.Throwable- if execution fails
-
-