Class PrepareCatalogSpringBootMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.camel.springboot.maven.AbstractSpringBootGenerator
org.apache.camel.springboot.maven.PrepareCatalogSpringBootMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="prepare-catalog-springboot",
threadSafe=true,
requiresDependencyCollection=COMPILE_PLUS_RUNTIME,
requiresDependencyResolution=COMPILE_PLUS_RUNTIME,
defaultPhase=GENERATE_RESOURCES)
public class PrepareCatalogSpringBootMojo
extends AbstractSpringBootGenerator
Prepares the Spring Boot provider camel catalog to include component it supports
-
Field Summary
FieldsFields inherited from class org.apache.camel.springboot.maven.AbstractSpringBootGenerator
projectFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidprotected voidprotected voidprotected voidprotected booleanMethods inherited from class org.apache.camel.springboot.maven.AbstractSpringBootGenerator
cache, execute, findComponentNames, findDataFormatNames, findLanguageNames, findNames, getJarFile, getJarFile, getJSonFiles, getMainDep, getMainDepArtifactId, getMainDepGroupId, getMainDepVersion, loadComponentJson, loadDataFormatJson, loadJson, loadJsonOfType, loadLanguageJson, loadModelJson, loadOtherJson, writeIfChangedMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
catalogDir
@Parameter(defaultValue="${basedir}/../../catalog/camel-catalog-provider-springboot") protected File catalogDirThe catalog directory
-
-
Constructor Details
-
PrepareCatalogSpringBootMojo
public PrepareCatalogSpringBootMojo()
-
-
Method Details
-
executeAll
protected void executeAll() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException, IOException- Specified by:
executeAllin classAbstractSpringBootGenerator- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionIOException
-
isIgnore
- Overrides:
isIgnorein classAbstractSpringBootGenerator
-
executeComponents
protected void executeComponents(JarFile componentJar, Map<String, Supplier<String>> jsonFiles) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException, IOException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionIOException
-
executeDataFormats
protected void executeDataFormats(JarFile componentJar, Map<String, Supplier<String>> jsonFiles) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException, IOException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionIOException
-
executeLanguages
protected void executeLanguages(JarFile componentJar, Map<String, Supplier<String>> jsonFiles) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException, IOException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionIOException
-
executeOthers
protected void executeOthers(JarFile componentJar, Map<String, Supplier<String>> jsonFiles) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException, IOException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionIOException
-