Class GenerateConfigurerMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="generate-configurer", threadSafe=true, defaultPhase=PROCESS_CLASSES, requiresDependencyCollection=COMPILE, requiresDependencyResolution=COMPILE) public class GenerateConfigurerMojo extends AbstractGenerateConfigurerMojo
Generate configurer classes from @Configurer annotated classes for main sources.
  • Field Details

    • sourcesOutputDir

      @Parameter(defaultValue="${project.basedir}/src/generated/java") protected File sourcesOutputDir
      The output directory for generated java source code
    • resourcesOutputDir

      @Parameter(defaultValue="${project.basedir}/src/generated/resources") protected File resourcesOutputDir
      The output directory for generated resource source code
    • classes

      @Parameter protected List<String> classes
      To generate configurer for these classes. The syntax is either fqn or fqn=targetFqn. This allows mapping source class to target class to generate the source code using a different classname.
  • Constructor Details

    • GenerateConfigurerMojo

      @Inject public GenerateConfigurerMojo(org.apache.maven.project.MavenProjectHelper projectHelper, org.codehaus.plexus.build.BuildContext buildContext)
  • Method Details

    • 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