@Mojo(name="dev",
defaultPhase=PREPARE_PACKAGE,
requiresDependencyResolution=COMPILE_PLUS_RUNTIME)
public class DevMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
DevMojo.OS
Enum to classify the os.name system property
|
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.maven.project.MavenProject |
project |
| Constructor and Description |
|---|
DevMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
protected String |
findJavaTool()
Search for the java command in the order:
1.
|
org.apache.maven.execution.MavenSession |
getSession() |
org.apache.maven.toolchain.ToolchainManager |
getToolchainManager() |
@Parameter(defaultValue="${project}",
readonly=true,
required=true)
protected org.apache.maven.project.MavenProject project
public org.apache.maven.toolchain.ToolchainManager getToolchainManager()
public org.apache.maven.execution.MavenSession getSession()
public void execute()
throws org.apache.maven.plugin.MojoFailureException,
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureExceptionorg.apache.maven.plugin.MojoExecutionExceptionprotected String findJavaTool()
Copyright © 2019 JBoss by Red Hat. All rights reserved.