Package org.apache.camel.maven.packaging
Class PackageComponentMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.camel.maven.packaging.AbstractGeneratorMojo
-
- org.apache.camel.maven.packaging.PackageComponentMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="generate-components-list", threadSafe=true) public class PackageComponentMojo extends AbstractGeneratorMojo
Analyses the Camel plugins in a project and generates extra descriptor information for easier auto-discovery in Camel.
-
-
Field Summary
Fields Modifier and Type Field Description protected File
buildDir
The project build directoryprotected File
componentOutDir
The output directory for generated components file-
Fields inherited from class org.apache.camel.maven.packaging.AbstractGeneratorMojo
buildContext, GENERATED_MSG, NL, project, projectHelper
-
-
Constructor Summary
Constructors Constructor Description PackageComponentMojo()
PackageComponentMojo(org.apache.maven.plugin.logging.Log log, org.apache.maven.project.MavenProject project, org.apache.maven.project.MavenProjectHelper projectHelper, File buildDir, File componentOutDir, org.sonatype.plexus.build.incremental.BuildContext buildContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
Execute goal.int
prepareComponent()
-
Methods inherited from class org.apache.camel.maven.packaging.AbstractGeneratorMojo
addResourceDirectory, cache, createProperties, createProperties, execute, getProjectClassLoader, haveResourcesChanged, loadClass, refresh, refresh, updateResource, updateResource
-
-
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
Execute 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...
-
prepareComponent
public int prepareComponent() throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-