@Mojo(name="generate",
inheritByDefault=false,
defaultPhase=GENERATE_SOURCES,
requiresDependencyResolution=COMPILE,
threadSafe=true)
public class GenerateMojo
extends org.apache.maven.plugin.AbstractMojo
Modifier and Type | Field and Description |
---|---|
static String[] |
DEFAULT_REST_CONSUMER_COMPONENTS |
Constructor and Description |
---|
GenerateMojo() |
Modifier and Type | Method and Description |
---|---|
protected String |
detectCamelVersionFromClasspath() |
protected String |
detectRestComponentFromClasspath() |
protected boolean |
detectSpringBootFromClasspath() |
protected String |
detectSpringBootMainPackage() |
void |
execute() |
protected String |
findSpringSpringBootPackage(File dir) |
protected static String |
grabPackageName(String content) |
public static final String[] DEFAULT_REST_CONSUMER_COMPONENTS
public void execute() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected String detectCamelVersionFromClasspath()
protected String detectRestComponentFromClasspath()
protected boolean detectSpringBootFromClasspath()
protected String detectSpringBootMainPackage() throws IOException
IOException
protected String findSpringSpringBootPackage(File dir) throws IOException
IOException
Apache Camel