Package org.apache.camel.maven.packaging
Class PrepareComponentMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.camel.maven.packaging.AbstractGeneratorMojo
org.apache.camel.maven.packaging.PrepareComponentMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="prepare-components",
threadSafe=true)
public class PrepareComponentMojo
extends AbstractGeneratorMojo
Prepares a Camel component analyzing if the maven module contains Camel
- components
- dataformats
- languages
- others
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FileThe base directoryprotected FileThe project build directoryprotected FileThe output directory for generated components fileprotected FileThe output directory for generated components fileprotected FileThe output directory for generated components fileprotected FileThe output directory for generated dataformats fileprotected FileThe output directory for generated languages fileprotected FileThe output directory for generated others fileprotected booleanprotected FileThe output directory for generated schema fileFields inherited from class org.apache.camel.maven.packaging.AbstractGeneratorMojo
buildContext, GENERATED_MSG, NL, project, projectHelperFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.camel.maven.packaging.AbstractGeneratorMojo
addResourceDirectory, cache, canonicalClassName, createProperties, createProperties, findConfigurations, format, getProjectClassLoader, haveResourcesChanged, isJsonFile, loadClass, newTreeSet, refresh, refresh, updateResource, updateResource, velocityMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
baseDir
The base directory -
configurerSourceOutDir
@Parameter(defaultValue="${project.basedir}/src/generated/java") protected File configurerSourceOutDirThe output directory for generated components file -
configurerResourceOutDir
@Parameter(defaultValue="${project.basedir}/src/generated/resources") protected File configurerResourceOutDirThe output directory for generated components file -
componentOutDir
@Parameter(defaultValue="${project.basedir}/src/generated/resources") protected File componentOutDirThe output directory for generated components file -
dataFormatOutDir
@Parameter(defaultValue="${project.basedir}/src/generated/resources") protected File dataFormatOutDirThe output directory for generated dataformats file -
languageOutDir
The output directory for generated languages file -
otherOutDir
The output directory for generated others file -
schemaOutDir
The output directory for generated schema file -
buildDir
The project build directory -
prepareComponent
@Parameter(defaultValue="${camel-prepare-component}") protected boolean prepareComponent
-
-
Constructor Details
-
PrepareComponentMojo
public PrepareComponentMojo()
-
-
Method Details
-
execute
public void execute(org.apache.maven.project.MavenProject project, org.apache.maven.project.MavenProjectHelper projectHelper, org.codehaus.plexus.build.BuildContext buildContext) throws org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException - Overrides:
executein classAbstractGeneratorMojo- Throws:
org.apache.maven.plugin.MojoFailureExceptionorg.apache.maven.plugin.MojoExecutionException
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionExecute goal.- Throws:
org.apache.maven.plugin.MojoExecutionException- execution of the main class or one of the threads it generated failed.org.apache.maven.plugin.MojoFailureException- something bad happened...
-