Class GenerateConfigurerMojo

  • 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 @Configuer annotated classes for main sources.
    • Field Detail

      • 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 to map source class to target class to generate the source code using a different classname.
    • Constructor Detail

      • GenerateConfigurerMojo

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