@Mojo(name="dataql",
defaultPhase=GENERATE_SOURCES,
threadSafe=true,
requiresDependencyResolution=COMPILE)
public class QueryMojo
extends org.apache.maven.plugin.AbstractMojo
*.ql and transforms them into Java source files.| 限定符和类型 | 字段和说明 |
|---|---|
protected Set<String> |
excludes
A set of Ant-like exclusion patterns used to prevent certain files from
being processed.
|
protected Set<String> |
includes
Provides an explicit list of all the query that should be included in the generate phase of the plugin.
|
protected String |
inputEncoding
specify query file encoding; e.g., euc-jp
|
protected String |
outputEncoding
specify output file encoding; defaults to source encoding
|
protected org.apache.maven.project.MavenProject |
project
The current Maven project.
|
| 构造器和说明 |
|---|
QueryMojo() |
@Parameter(property="project.build.sourceEncoding") protected String inputEncoding
@Parameter(property="project.build.sourceEncoding") protected String outputEncoding
@Parameter protected Set<String> includes
A set of Ant-like inclusion patterns used to select files from the source
directory for processing. By default, the pattern **/*.ql is used to select query files.
@Parameter protected Set<String> excludes
@Parameter(property="project",
required=true,
readonly=true)
protected org.apache.maven.project.MavenProject project
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException - if a configuration or query error causes the code generation process to failCopyright © 2020. All rights reserved.