@Mojo(name="fromApis",
requiresDependencyResolution=COMPILE_PLUS_RUNTIME,
requiresProject=true,
defaultPhase=GENERATE_SOURCES,
threadSafe=true)
public class ApiComponentGeneratorMojo
extends AbstractApiMethodBaseMojo
| Modifier and Type | Field and Description |
|---|---|
protected ApiProxy[] |
apis
List of API names, proxies and code generation settings.
|
protected static String |
DEFAULT_EXCLUDE_PACKAGES |
protected FromJavasource |
fromJavasource
Common Javasource code generation settings.
|
excludeConfigNames, excludeConfigTypes, extraOptions, substitutionsaddCompileSourceRoots, generatedSrcDir, generatedTestDirCOMPONENT_PACKAGE, componentName, componentPackage, log, OUT_PACKAGE, outPackage, PREFIX, project, scheme| Constructor and Description |
|---|
ApiComponentGeneratorMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
executeInternal()
Template Method which assumes
AbstractGeneratorMojo.projectClassLoader is set. |
static String |
getApiMethod(String proxyClass,
String classPrefix) |
static String |
getEndpointConfig(String proxyClass,
String classPrefix) |
static String |
getEnumConstant(String enumValue) |
static String |
getNullableOptionValues(String[] nullableOptions) |
setCompileSourceRootsexecute, getCanonicalName, getEngine, getProjectClassLoader, mergeTemplate, refresh, setProjectClassLoader, updateResourceprotected static final String DEFAULT_EXCLUDE_PACKAGES
@Parameter(required=true) protected ApiProxy[] apis
@Parameter protected FromJavasource fromJavasource
public void executeInternal()
throws org.apache.maven.plugin.MojoExecutionException
AbstractGeneratorMojoAbstractGeneratorMojo.projectClassLoader is set.executeInternal in class AbstractGeneratorMojoorg.apache.maven.plugin.MojoExecutionExceptionApache Camel