Class GenerateTestConfigurerMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="generate-test-configurer",
          threadSafe=true,
          defaultPhase=PROCESS_CLASSES,
          requiresDependencyCollection=COMPILE,
          requiresDependencyResolution=COMPILE)
    public class GenerateTestConfigurerMojo
    extends AbstractGenerateConfigurerMojo
    Generate configurer classes from @Configuer annotated classes for test sources.
    • Field Detail

      • sourcesOutputDir

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

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

        @Parameter
        protected List<String> classes
        To generate configurer for these test 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

      • GenerateTestConfigurerMojo

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