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
    The maven project.

    Fields inherited from class org.codehaus.mojo.exec.AbstractExecMojo

    classpathScope, executableDependency

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    doExecuteConfigurationFiles(org.apache.camel.catalog.CamelCatalog catalog)
     
    protected void
    doExecuteRoutes(org.apache.camel.catalog.CamelCatalog catalog)
     
    void
     

    Methods inherited from class org.codehaus.mojo.exec.AbstractExecMojo

    collectProjectArtifactsAndClasspath, findExecutableArtifact, getPluginDependencies, getSession, hasCommandlineArgs, isSkip, parseCommandlineArgs, registerSourceRoots

    Methods inherited from class org.apache.maven.plugin.AbstractMojo

    getLog, getPluginContext, setLog, setPluginContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • project

      @Parameter(property="project", required=true, readonly=true) protected org.apache.maven.project.MavenProject project
      The 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.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
      Throws:
      org.apache.maven.plugin.MojoExecutionException