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
FieldsModifier and TypeFieldDescriptionprotected org.apache.maven.project.MavenProjectThe maven project.Fields inherited from class org.codehaus.mojo.exec.AbstractExecMojo
classpathScope, executableDependencyFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecuteConfigurationFiles(org.apache.camel.catalog.CamelCatalog catalog) protected voiddoExecuteRoutes(org.apache.camel.catalog.CamelCatalog catalog) voidexecute()Methods inherited from class org.codehaus.mojo.exec.AbstractExecMojo
collectProjectArtifactsAndClasspath, findExecutableArtifact, getPluginDependencies, getSession, hasCommandlineArgs, isSkip, parseCommandlineArgs, registerSourceRootsMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
project
@Parameter(property="project", required=true, readonly=true) protected org.apache.maven.project.MavenProject projectThe maven project.
-
-
Constructor Details
-
ValidateMojo
public ValidateMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.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 - Throws:
org.apache.maven.plugin.MojoExecutionException
-