@Mojo(name="generate",
defaultPhase=GENERATE_SOURCES,
requiresDependencyResolution=COMPILE)
public class GenerateMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
cacheEagerly
Turns off library generation and verification in case when no change was detected in sources which supports
Cacheable (it does not have to mean no change was done). |
protected String |
charset |
protected List<String> |
classpathElements
Project classpath.
|
protected List<String> |
compileSourceRoots
The source directories containing the sources to be compiled.
|
protected org.apache.maven.model.FileSet[] |
facesConfigs
The list of JSF configuration files that will be processed by CDK.
|
protected boolean |
forceRecompile
Forces compiler to do not use cache and re-compile all sources from scratch
|
protected Library |
library |
protected String |
locale |
protected Map<String,String> |
options |
protected File |
outputDirectory
The directory for compiled classes.
|
protected File |
outputJavaDirectory
Directory where the output Java Files will be located.
|
protected File |
outputLibraryCache
Directory where serialized library will be cached
|
protected File |
outputResourcesDirectory
Directory where the output Java Files will be located.
|
protected File |
outputTestDirectory |
protected File |
outputTestResourcesDirectory
Directory where the output Java Files will be located.
|
protected org.apache.maven.project.MavenProject |
project
Top maven project.
|
protected String[] |
sourceExcludes
List of filename patterns that will be excluded from process by annotations processor.
|
protected String[] |
sourceIncludes
List of filename patterns that will be included to process by annotations processor.
|
protected org.apache.maven.model.FileSet[] |
templates
The list of JsfRenderer template files that will be processed by CDK.
|
protected Map<String,String> |
workers |
| Constructor and Description |
|---|
GenerateMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected CdkClassLoader |
createProjectClassLoader(org.apache.maven.project.MavenProject project) |
protected Collection<File> |
doScan(org.apache.maven.model.FileSet[] filesets)
Skan Array of filesets for selected resources.
|
protected String[] |
doScan(String[] includes,
String[] excludes,
File rootFolder) |
void |
execute() |
@Parameter(property="project.compileClasspathElements",
readonly=true,
required=true)
protected List<String> classpathElements
@Parameter(property="project.compileSourceRoots",
readonly=true,
required=true)
protected List<String> compileSourceRoots
@Parameter protected org.apache.maven.model.FileSet[] facesConfigs
src/main/config folder with "xml" extension.@Parameter protected Library library
@Parameter(property="project.build.outputDirectory",
readonly=true,
required=true)
protected File outputDirectory
@Parameter(defaultValue="${project.build.directory}/generated-sources/main/java")
protected File outputJavaDirectory
@Parameter(defaultValue="${project.build.directory}/generated-sources/main/resources")
protected File outputResourcesDirectory
@Parameter(defaultValue="${project.build.directory}/generated-sources/test/java")
protected File outputTestDirectory
@Parameter(defaultValue="${project.build.directory}/generated-sources/test/resources")
protected File outputTestResourcesDirectory
@Parameter(defaultValue="${project.build.directory}/library-cache")
protected File outputLibraryCache
@Parameter(property="cdk.recompile",
defaultValue="false")
protected boolean forceRecompile
@Parameter(property="cdk.cache.eagerly",
defaultValue="false")
protected boolean cacheEagerly
Cacheable (it does not have to mean no change was done). Warning: when getting undesired results, try to turn off
this option.@Parameter(defaultValue="${project}",
readonly=true)
protected org.apache.maven.project.MavenProject project
@Parameter protected String[] sourceExcludes
@Parameter protected String[] sourceIncludes
@Parameter protected org.apache.maven.model.FileSet[] templates
src/main/templates folder with "xml" extension.@Parameter protected String locale
@Parameter protected String charset
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected CdkClassLoader createProjectClassLoader(org.apache.maven.project.MavenProject project)
protected String[] doScan(String[] includes, String[] excludes, File rootFolder) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected Collection<File> doScan(org.apache.maven.model.FileSet[] filesets) throws org.apache.maven.plugin.MojoExecutionException
filesets - org.apache.maven.plugin.MojoExecutionExceptionCopyright © 2014 JBoss by Red Hat. All Rights Reserved.