Class 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 Detail

      • projectHelper

        @Component
        protected org.apache.maven.project.MavenProjectHelper projectHelper
    • Constructor Detail

      • DefinitionPackageMojo

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