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 AbstractSpringBootGeneratorPrepares the Spring Boot provider camel catalog to include component it supports
-
-
Field Summary
Fields Modifier and Type Field Description protected FilecatalogDirThe catalog directory-
Fields inherited from class org.apache.camel.springboot.maven.AbstractSpringBootGenerator
project
-
-
Constructor Summary
Constructors Constructor Description PrepareCatalogSpringBootMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidexecuteAll()protected voidexecuteComponents(JarFile componentJar, Map<String,Supplier<String>> jsonFiles)protected voidexecuteDataFormats(JarFile componentJar, Map<String,Supplier<String>> jsonFiles)protected voidexecuteLanguages(JarFile componentJar, Map<String,Supplier<String>> jsonFiles)protected voidexecuteOthers(JarFile componentJar, Map<String,Supplier<String>> jsonFiles)protected booleanisIgnore(String artifactId)-
Methods 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, writeIfChanged
-
-
-
-
Field Detail
-
catalogDir
@Parameter(defaultValue="${basedir}/../../catalog/camel-catalog-provider-springboot") protected File catalogDirThe catalog directory
-
-
Method Detail
-
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
protected boolean isIgnore(String artifactId)
- 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
-
-