Class DefinitionPackageMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- io.wcm.devops.conga.tooling.maven.plugin.DefinitionPackageMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="definition-package", defaultPhase=PACKAGE, requiresProject=true, threadSafe=true) public class DefinitionPackageMojo extends org.apache.maven.plugin.AbstractMojo
Packages the definitions in a JAR file.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.maven.project.MavenProjectHelper
projectHelper
-
Constructor Summary
Constructors Constructor Description DefinitionPackageMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
buildDefinitionsJarFile()
Builds a JAR file with all CONGA definitions and resources.void
execute()
protected Map<String,String>
getArtifactTypeMappings()
protected File
getEnvironmentDir()
protected ModelExport
getModelExport()
protected Map<String,Map<String,Object>>
getPluginConfig()
protected org.apache.maven.project.MavenProject
getProject()
protected File
getRoleDir()
protected File
getTargetDir()
protected File
getTemplateDir()
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.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()
-
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 exceptionorg.apache.maven.plugin.MojoFailureException
- MOJO failure exception
-
-