@Mojo(name="generate",
threadSafe=true,
requiresDependencyResolution=COMPILE_PLUS_RUNTIME,
defaultPhase=GENERATE_SOURCES)
public class GenerateMojo
extends org.codehaus.mojo.exec.AbstractExecMojo
| Modifier and Type | Field and Description |
|---|---|
static String |
GENERATED_MSG |
protected File |
outputDir
The output directory for generated source files
|
protected File |
outputResourceDir
The output directory for generated resources files
|
protected org.apache.maven.project.MavenProject |
project
The maven project.
|
static String |
RESOURCE_FILE |
protected File |
resourceDir
The resources directory for configuration files
|
| Constructor and Description |
|---|
GenerateMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecuteRoutes(org.apache.camel.language.csimple.CSimpleCodeGenerator generator) |
void |
execute() |
static boolean |
updateResource(Path out,
String data) |
collectProjectArtifactsAndClasspath, findExecutableArtifact, hasCommandlineArgs, isSkip, parseCommandlineArgs, registerSourceRootspublic static final String GENERATED_MSG
public static final String RESOURCE_FILE
@Parameter(property="project",
required=true,
readonly=true)
protected org.apache.maven.project.MavenProject project
@Parameter(defaultValue="${project.basedir}/src/generated/java")
protected File outputDir
@Parameter(defaultValue="${project.basedir}/src/generated/resources")
protected File outputResourceDir
@Parameter(defaultValue="${project.basedir}/src/main/resources")
protected File resourceDir
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected void doExecuteRoutes(org.apache.camel.language.csimple.CSimpleCodeGenerator generator)
Apache Camel