Class GenerateSourcesMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- net.morimekta.providence.maven.plugin.BaseGenerateSourcesMojo
-
- net.morimekta.providence.maven.plugin.GenerateSourcesMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="generate", defaultPhase=GENERATE_SOURCES, instantiationStrategy=PER_LOOKUP) public class GenerateSourcesMojo extends BaseGenerateSourcesMojo
Generate providence sources from thrift definitions.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.codehaus.plexus.components.io.fileselectors.IncludeExcludeFileSelector
input
Files to compile.protected java.io.File
output
Location of the output java source.protected boolean
skipGenerate
Skip the providence compile step for this module.-
Fields inherited from class net.morimekta.providence.maven.plugin.BaseGenerateSourcesMojo
allow_language_reserved_names, buildDir, compileOutput, generate_providence_core_types, generated_annotation_date, generated_annotation_version, hazelcast_portable, jackson, print_debug, project, require_enum_value, require_field_id, rw_binary, serializable, skipIfMissingNamespace
-
-
Constructor Summary
Constructors Constructor Description GenerateSourcesMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
-
-
-
Field Detail
-
skipGenerate
@Parameter(alias="skip", property="providence.skip", defaultValue="false") protected boolean skipGenerate
Skip the providence compile step for this module.
-
output
@Parameter(defaultValue="${project.build.directory}/generated-sources/providence", property="providence.main.output", alias="outputDir") protected java.io.File output
Location of the output java source.
-
input
@Parameter(alias="inputFiles") protected org.codehaus.plexus.components.io.fileselectors.IncludeExcludeFileSelector input
Files to compile. By default will select all '.thrift' files in 'src/main/providence/' and subdirectories. Simple includes can be specified by propertyprovidence.main.input
.
-
-