Class ValidateMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- io.wcm.devops.conga.tooling.maven.plugin.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.AbstractMojoValidates 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 Summary
Fields Modifier and Type Field Description protected org.apache.maven.project.MavenProjectHelperprojectHelper
-
Constructor Summary
Constructors Constructor Description ValidateMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbuildDefinitionsJarFile()Builds a JAR file with all CONGA definitions and resources.voidexecute()protected Map<String,String>getArtifactTypeMappings()protected FilegetEnvironmentDir()protected ModelExportgetModelExport()protected Map<String,Map<String,Object>>getPluginConfig()protected org.apache.maven.project.MavenProjectgetProject()protected FilegetRoleDir()protected FilegetTargetDir()protected FilegetTemplateDir()protected Map<String,Map<String,Object>>getValueProviderConfig()
-
-
-
Method Detail
-
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
-
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()
-
buildDefinitionsJarFile
protected void buildDefinitionsJarFile() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionBuilds a JAR file with all CONGA definitions and resources. This is the main output artefact.- Throws:
org.apache.maven.plugin.MojoExecutionException- MOJO execution exceptionorg.apache.maven.plugin.MojoFailureException- MOJO failure exception
-
-