Package org.apache.camel.maven.packaging
Class PackageJaxbMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.camel.maven.packaging.AbstractGeneratorMojo
org.apache.camel.maven.packaging.PackageJaxbMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="generate-jaxb-list",
threadSafe=true,
defaultPhase=PROCESS_CLASSES)
public class PackageJaxbMojo
extends AbstractGeneratorMojo
Analyses the Camel plugins in a project and generates extra descriptor information for easier auto-discovery in
Camel.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FileThe name of the index file.protected FileThe output directory for the generated component filesFields 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
ConstructorsConstructorDescriptionPackageJaxbMojo(org.apache.maven.project.MavenProjectHelper projectHelper, org.codehaus.plexus.build.BuildContext buildContext) -
Method Summary
Methods inherited from class org.apache.camel.maven.packaging.AbstractGeneratorMojo
addResourceDirectory, cache, canonicalClassName, createProperties, createProperties, execute, 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
-
index
The name of the index file. Default's to 'target/classes/META-INF/jandex.idx' -
jaxbIndexOutDir
@Parameter(defaultValue="${project.basedir}/src/generated/resources") protected File jaxbIndexOutDirThe output directory for the generated component files
-
-
Constructor Details
-
PackageJaxbMojo
@Inject public PackageJaxbMojo(org.apache.maven.project.MavenProjectHelper projectHelper, org.codehaus.plexus.build.BuildContext buildContext)
-
-
Method Details
-
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...
-