Class AbstractGeneratorMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
ca.uhn.fhir.tinder.AbstractGeneratorMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
TinderResourceGeneratorMojo, TinderSourcesGeneratorMojo

public abstract class AbstractGeneratorMojo extends org.apache.maven.plugin.AbstractMojo
Base class for mojo generatorss.
  • Field Details

    • ourLog

      protected final org.slf4j.Logger ourLog
    • baseDir

      @Parameter(required=true, defaultValue="${project.build.directory}/..") protected String baseDir
    • packageBase

      @Parameter protected String packageBase
    • baseResourceNames

      @Parameter protected List<String> baseResourceNames
    • excludeResourceNames

      @Parameter protected List<String> excludeResourceNames
    • templateName

      @Parameter protected String templateName
    • version

      @Parameter(required=true) protected String version
    • myProject

      @Component protected org.apache.maven.project.MavenProject myProject
  • Constructor Details

    • AbstractGeneratorMojo

      public AbstractGeneratorMojo()
  • Method Details

    • execute

      public final void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException
    • doExecute

      protected abstract void doExecute(Configuration mavenGeneratorConfiguration) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException
    • getTargetDirectory

      protected abstract File getTargetDirectory()