Package org.apache.camel.maven
Class ValidateMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.codehaus.mojo.exec.AbstractExecMojo
-
- org.apache.camel.maven.ValidateMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="validate", threadSafe=true) public class ValidateMojo extends org.codehaus.mojo.exec.AbstractExecMojo
Parses the source code and validates the Camel routes has valid endpoint uris and simple expressions, and validates configuration files such as application.properties.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.maven.project.MavenProject
project
The maven project.
-
Constructor Summary
Constructors Constructor Description ValidateMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doExecuteConfigurationFiles(org.apache.camel.catalog.CamelCatalog catalog)
protected void
doExecuteRoutes(org.apache.camel.catalog.CamelCatalog catalog)
void
execute()
-
Methods inherited from class org.codehaus.mojo.exec.AbstractExecMojo
collectProjectArtifactsAndClasspath, findExecutableArtifact, hasCommandlineArgs, isSkip, parseCommandlineArgs, registerSourceRoots
-
-
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
doExecuteConfigurationFiles
protected void doExecuteConfigurationFiles(org.apache.camel.catalog.CamelCatalog catalog) throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
doExecuteRoutes
protected void doExecuteRoutes(org.apache.camel.catalog.CamelCatalog catalog) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
-