Class GeneratorPlugin

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

    @Mojo(name="generate",
          defaultPhase=GENERATE_SOURCES,
          requiresDependencyResolution=COMPILE)
    public class GeneratorPlugin
    extends org.apache.maven.plugin.AbstractMojo
    Maven plugin to generate REST client. It allows to scan packages by reflections. It looks for Jakarta EE Path annotations.
    Author:
    maxence
    • Constructor Detail

      • GeneratorPlugin

        public GeneratorPlugin()
        Default constructor.
    • 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
      • main

        public static void main​(String... args)
                         throws org.apache.maven.plugin.MojoExecutionException,
                                org.apache.maven.plugin.MojoFailureException
        Simple app to test the generator.it will not generate any files but will print output
        Parameters:
        args - unused yet
        Throws:
        org.apache.maven.plugin.MojoExecutionException - if ...
        org.apache.maven.plugin.MojoFailureException - if ...