@Mojo(name="compile",
configurator="include-project-dependencies",
requiresDependencyResolution=COMPILE_PLUS_RUNTIME)
public class ProtoCompilerMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected File |
baseDir
Maven module base directory
|
static String |
GENERATE_TEST_SOURCES_PHASE |
protected File |
modulesFile
The properties file that contains the modules
|
protected File |
outputBaseDir
If not specified, the directory where the file is located will be used as its base dir.
|
protected org.apache.maven.project.MavenProject |
project
The current Maven project.
|
protected Properties |
properties
Plugin properties that are passed to the compiler
|
protected ProtoModule[] |
protoModules
The modules to generate code from
|
protected File |
sourceBaseDir
If not specified, the directory where the file is located will be used as its base dir.
|
| Constructor and Description |
|---|
ProtoCompilerMojo() |
public static final String GENERATE_TEST_SOURCES_PHASE
@Parameter(property="project",
required=true,
readonly=true)
protected org.apache.maven.project.MavenProject project
@Parameter protected File modulesFile
@Parameter protected File sourceBaseDir
This is only relevent when is provided.
@Parameter protected File outputBaseDir
This is only relevent when is provided.
@Parameter protected ProtoModule[] protoModules
@Parameter(property="project.basedir",
required=true)
protected File baseDir
@Parameter protected Properties properties
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected boolean skipMojo()
Determine if the mojo execution should get skipped.
This is the case if:skip is trueforceMojoExecution is
falsetrue if the mojo execution should be skipped.Copyright © 2009–2016. All rights reserved.