Class JCasGenMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.uima.tools.jcasgen.maven.JCasGenMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="generate", defaultPhase=PROCESS_RESOURCES, requiresDependencyResolution=COMPILE) public class JCasGenMojo extends org.apache.maven.plugin.AbstractMojoApplies JCasGen to create Java files from XML type system descriptions. Note that by default this runs at the process-resources phase because it requires the XML descriptor files to already be at the appropriate places on the classpath, and the generate-resources phase runs before resources are copied.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classJCasGenMojo.JCasGenErrorsprivate static classJCasGenMojo.JCasGenExceptionprivate classJCasGenMojo.JCasGenProgressMonitor
-
Field Summary
Fields Modifier and Type Field Description private org.sonatype.plexus.build.incremental.BuildContextbuildContextprivate booleanlimitToProjectGenerate JCas wrappers only for current project.private java.io.FileoutputDirectoryThe directory where the generated sources will be written.private org.apache.maven.project.MavenProjectprojectprivate java.lang.String[]typeSystemExcludesType system descriptors to be excluded in JCas generation.private java.lang.String[]typeSystemIncludesType system descriptors to be included in JCas generation.
-
Constructor Summary
Constructors Constructor Description JCasGenMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()private booleanhasDelta(TypeSystemDescription typeSystemDescription, java.lang.String classpath)
-
-
-
Field Detail
-
project
@Parameter(defaultValue="${project}", readonly=true) private org.apache.maven.project.MavenProject project
-
buildContext
@Component private org.sonatype.plexus.build.incremental.BuildContext buildContext
-
typeSystemIncludes
@Parameter(required=true) private java.lang.String[] typeSystemIncludes
Type system descriptors to be included in JCas generation.
-
typeSystemExcludes
@Parameter(required=false) private java.lang.String[] typeSystemExcludes
Type system descriptors to be excluded in JCas generation.
-
outputDirectory
@Parameter(defaultValue="${project.build.directory}/generated-sources/jcasgen", required=true) private java.io.File outputDirectoryThe directory where the generated sources will be written.
-
limitToProject
@Parameter(defaultValue="false", required=true) private boolean limitToProjectGenerate JCas wrappers only for current project.
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
hasDelta
private boolean hasDelta(TypeSystemDescription typeSystemDescription, java.lang.String classpath)
-
-