Class AbstractGenerationPlugin

java.lang.Object
org.apache.maven.plugin.AbstractMojo
gov.nasa.pds.model.plugin.AbstractGenerationPlugin
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
DocumentationGenerationPlugin

public abstract class AbstractGenerationPlugin extends org.apache.maven.plugin.AbstractMojo
Base class for Maven-plugin-based artifact generators from PDS ontology data, which itself comes from Protégé.
  • Field Details

    • ontologySrc

      @Parameter(property="ontologySrc", defaultValue="${basedir}/src/main/ontology", required=true) protected String ontologySrc
    • target

      @Parameter(property="target", defaultValue="${project.build.outputDirectory}/ontology", required=true) protected String target
  • Constructor Details

    • AbstractGenerationPlugin

      public AbstractGenerationPlugin()
  • Method Details

    • generateArtifacts

      protected abstract void generateArtifacts() throws org.apache.maven.plugin.MojoExecutionException
      Subclasses must override this.
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException
      Execute this plugin. The exeuction of this plugin uses the Template Method design pattern.
      Throws:
      org.apache.maven.plugin.MojoExecutionException - If the center does not hold.