public abstract class AbstractSpringBootGenerator
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.maven.project.MavenProject |
project
The maven project.
|
| Constructor and Description |
|---|
AbstractSpringBootGenerator() |
| Modifier and Type | Method and Description |
|---|---|
protected static <T> Supplier<T> |
cache(Supplier<T> supplier) |
void |
execute()
Execute goal.
|
protected abstract void |
executeAll() |
protected List<String> |
findComponentNames(JarFile componentJar) |
protected List<String> |
findDataFormatNames(JarFile componentJar) |
protected List<String> |
findLanguageNames(JarFile componentJar) |
protected List<String> |
findNames(JarFile componentJar,
String dir) |
protected JarFile |
getJarFile() |
protected JarFile |
getJarFile(String groupId,
String artifactId) |
protected Map<String,Supplier<String>> |
getJSonFiles(JarFile componentJar) |
protected org.apache.maven.artifact.Artifact |
getMainDep() |
protected String |
getMainDepArtifactId() |
protected String |
getMainDepGroupId() |
protected String |
getMainDepVersion() |
protected boolean |
isIgnore(String artifactId) |
protected String |
loadComponentJson(Map<String,Supplier<String>> jsonFiles,
String componentName) |
protected String |
loadDataFormatJson(Map<String,Supplier<String>> jsonFiles,
String dataFormatName) |
protected static String |
loadJson(JarFile jar,
JarEntry je) |
protected String |
loadJsonOfType(Map<String,Supplier<String>> jsonFiles,
String modelName,
String type) |
protected String |
loadLanguageJson(Map<String,Supplier<String>> jsonFiles,
String languageName) |
protected String |
loadModelJson(Map<String,Supplier<String>> jsonFiles,
String modelName) |
protected String |
loadOtherJson(Map<String,Supplier<String>> jsonFiles,
String otherName) |
protected void |
writeIfChanged(String content,
File file) |
@Parameter(property="project",
required=true,
readonly=true)
protected org.apache.maven.project.MavenProject project
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException - execution of the main class or one of the
threads it generated failed.org.apache.maven.plugin.MojoFailureException - something bad happened...protected boolean isIgnore(String artifactId)
protected String getMainDepArtifactId()
protected String getMainDepGroupId()
protected org.apache.maven.artifact.Artifact getMainDep()
protected String getMainDepVersion()
protected abstract void executeAll()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException,
IOException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionIOExceptionprotected JarFile getJarFile() throws IOException
IOExceptionprotected JarFile getJarFile(String groupId, String artifactId) throws IOException
IOExceptionprotected String loadModelJson(Map<String,Supplier<String>> jsonFiles, String modelName)
protected String loadComponentJson(Map<String,Supplier<String>> jsonFiles, String componentName)
protected String loadDataFormatJson(Map<String,Supplier<String>> jsonFiles, String dataFormatName)
protected String loadLanguageJson(Map<String,Supplier<String>> jsonFiles, String languageName)
protected String loadOtherJson(Map<String,Supplier<String>> jsonFiles, String otherName)
protected String loadJsonOfType(Map<String,Supplier<String>> jsonFiles, String modelName, String type)
protected void writeIfChanged(String content, File file) throws IOException
IOExceptionApache Camel