Class ValidateMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="validate",
          defaultPhase=VALIDATE,
          requiresProject=true,
          threadSafe=true,
          requiresDependencyResolution=COMPILE)
    public class ValidateMojo
    extends org.apache.maven.plugin.AbstractMojo
    Validates definitions by trying to parse them with model reader or compile them via handlebars. Validates that the CONGA maven plugin version and CONGA plugin versions match or are newer than those versions used when generating the dependency artifacts.
    • Field Detail

      • projectHelper

        @Component
        protected org.apache.maven.project.MavenProjectHelper projectHelper
    • 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
      • getTemplateDir

        protected File getTemplateDir()
      • getRoleDir

        protected File getRoleDir()
      • getEnvironmentDir

        protected File getEnvironmentDir()
      • getTargetDir

        protected File getTargetDir()
      • getProject

        protected org.apache.maven.project.MavenProject getProject()
      • getModelExport

        protected ModelExport getModelExport()
      • getArtifactTypeMappings

        protected Map<String,​String> getArtifactTypeMappings()
      • buildDefinitionsJarFile

        protected void buildDefinitionsJarFile()
                                        throws org.apache.maven.plugin.MojoExecutionException,
                                               org.apache.maven.plugin.MojoFailureException
        Builds a JAR file with all CONGA definitions and resources. This is the main output artefact.
        Throws:
        org.apache.maven.plugin.MojoExecutionException - MOJO execution exception
        org.apache.maven.plugin.MojoFailureException - MOJO failure exception