Class AbstractModelloGeneratorMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.modello.maven.AbstractModelloGeneratorMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
AbstractModelloSourceGeneratorMojo, ModelloJsonSchemaGeneratorMojo, ModelloVelocityMojo, ModelloXdocMojo, ModelloXsdMojo

public abstract class AbstractModelloGeneratorMojo extends org.apache.maven.plugin.AbstractMojo
Author:
Trygve Laugstøl
  • Constructor Details

    • AbstractModelloGeneratorMojo

      public AbstractModelloGeneratorMojo()
  • Method Details

    • getGeneratorType

      protected abstract String getGeneratorType()
    • getOutputDirectory

      public abstract File getOutputDirectory()
    • producesCompilableResult

      protected boolean producesCompilableResult()
    • producesResources

      protected boolean producesResources()
    • createParameters

      protected Map<String,Object> createParameters()
      Creates a Properties objects.
      The abstract mojo will override the output directory, the version and the package with version flag.
      Returns:
      the parameters
    • customizeParameters

      protected void customizeParameters(Map<String,Object> parameters)
      Override this method to customize the values in the properties set.

      This method will be called after the parameters have been populated with the parameters in the abstract mojo.

      Parameters:
      parameters - the parameters to customize
    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • getBasedir

      public String getBasedir()
    • setBasedir

      public void setBasedir(String basedir)
    • getVersion

      public String getVersion()
    • setVersion

      public void setVersion(String version)
    • getPackageWithVersion

      public boolean getPackageWithVersion()
    • setPackageWithVersion

      public void setPackageWithVersion(boolean packageWithVersion)
    • getModelloCore

      public org.codehaus.modello.core.ModelloCore getModelloCore()
    • setModelloCore

      public void setModelloCore(org.codehaus.modello.core.ModelloCore modelloCore)
    • setBuildContext

      public void setBuildContext(org.codehaus.plexus.build.BuildContext context)
    • getProject

      public org.apache.maven.project.MavenProject getProject()
    • setProject

      public void setProject(org.apache.maven.project.MavenProject project)
    • setPackagedVersions

      public void setPackagedVersions(List<String> packagedVersions)
    • getModels

      public String[] getModels()
      Returns:
      Returns the paths to the models.
    • setModels

      public void setModels(String[] models)
      Parameters:
      models - Sets the paths to the models.