Class CodeGenMojo

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

    @Mojo(name="generate",
          defaultPhase=GENERATE_SOURCES,
          threadSafe=true)
    public class CodeGenMojo
    extends org.apache.maven.plugin.AbstractMojo
    Goal which generates client/server code from a swagger json/yaml definition.
    • Field Detail

      • environmentVariables

        @Parameter
        protected Map<String,​String> environmentVariables
      • originalEnvironmentVariables

        @Parameter
        protected Map<String,​String> originalEnvironmentVariables
    • Constructor Detail

      • CodeGenMojo

        public CodeGenMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • execute_

        protected void execute_()
                         throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException