public void execute() throws MojoExecutionException {
        generateCode(C2jModels.builder()
                             .codeGenConfig(loadCodeGenConfig())
                             .customizationConfig(loadCustomizationConfig())
                             .serviceModel(loadServiceModel())
                             // Maven plugin doesn't support Waiters
                             .waitersModel(Waiters.NONE)
                             .examplesModel(loadExamplesModel())
                             .build());
        project.addCompileSourceRoot(outputDirectory);
    }
The Maven mojo to generate Java client code using aws-java-sdk-code-generator.
aws-java-sdk-codegen-maven-plugin/src/main/java/com/amazonaws/codegen/maven/plugin/GenerationMojo.java