Class SchemaGeneratorMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- io.debezium.schemagenerator.maven.SchemaGeneratorMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="generate-api-spec", defaultPhase=PREPARE_PACKAGE) public class SchemaGeneratorMojo extends org.apache.maven.plugin.AbstractMojoGenerates the API spec for the connector(s) in a project.
-
-
Field Summary
Fields Modifier and Type Field Description private Stringformatprivate FileoutputDirectoryprivate org.apache.maven.project.MavenProjectprojectGives access to the Maven project information.
-
Constructor Summary
Constructors Constructor Description SchemaGeneratorMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private StringclassPathEntryFor(Class<?> clazz)private intexec(String className, String classPath, List<String> jvmArgs, List<String> args)voidexecute()private StringgetClassPath()
-
-
-
Field Detail
-
format
@Parameter(defaultValue="openapi", property="schema.format") private String format
-
outputDirectory
@Parameter(defaultValue="${project.build.directory}/generated-sources", required=true) private File outputDirectory
-
project
@Parameter(defaultValue="${project}", required=true, readonly=true) private org.apache.maven.project.MavenProject projectGives access to the Maven project information.
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
exec
private int exec(String className, String classPath, List<String> jvmArgs, List<String> args) throws IOException, InterruptedException
- Throws:
IOExceptionInterruptedException
-
getClassPath
private String getClassPath()
-
-