Class AbstractSpringBootGenerator
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.camel.springboot.maven.AbstractSpringBootGenerator
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
PrepareCatalogSpringBootMojo,SpringBootAutoConfigurationMojo,SpringBootStarterMojo
public abstract class AbstractSpringBootGenerator
extends org.apache.maven.plugin.AbstractMojo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.maven.project.MavenProjectThe maven project.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static <T> Supplier<T> voidexecute()Execute goal.protected abstract voidfindComponentNames(JarFile componentJar) findDataFormatNames(JarFile componentJar) findLanguageNames(JarFile componentJar) protected JarFileprotected JarFilegetJarFile(String groupId, String artifactId) getJSonFiles(JarFile componentJar) protected org.apache.maven.artifact.Artifactprotected Stringprotected Stringprotected Stringprotected booleanprotected Stringprotected Stringprotected static Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected voidwriteIfChanged(String content, File file) Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
project
@Parameter(property="project", required=true, readonly=true) protected org.apache.maven.project.MavenProject projectThe maven project.
-
-
Constructor Details
-
AbstractSpringBootGenerator
public AbstractSpringBootGenerator()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionExecute goal.- Throws:
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...
-
isIgnore
-
getMainDepArtifactId
-
getMainDepGroupId
-
getMainDep
protected org.apache.maven.artifact.Artifact getMainDep() -
getMainDepVersion
-
executeAll
protected abstract void executeAll() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException, IOException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionIOException
-
getJarFile
- Throws:
IOException
-
getJarFile
- Throws:
IOException
-
getJSonFiles
-
findComponentNames
-
findDataFormatNames
-
findLanguageNames
-
findNames
-
loadJson
-
cache
-
loadModelJson
-
loadComponentJson
-
loadDataFormatJson
-
loadLanguageJson
-
loadOtherJson
-
loadJsonOfType
-
writeIfChanged
- Throws:
IOException
-