Class 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.
      • 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
      ValidateMojo()  
    • Field Detail

      • project

        @Parameter(property="project",
                   required=true,
                   readonly=true)
        protected org.apache.maven.project.MavenProject project
        The maven project.
    • Constructor Detail

      • ValidateMojo

        public ValidateMojo()
    • 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