Package org.apache.camel.maven.packaging
Class PrepareKameletMainMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.camel.maven.packaging.PrepareKameletMainMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="prepare-kamelet-main",
threadSafe=true)
public class PrepareKameletMainMojo
extends org.apache.maven.plugin.AbstractMojo
Prepares camel-kamelet-main
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.codehaus.plexus.build.BuildContextbuild context to check changed files and mark them for refresh (used for m2e compatibility)protected FileThe camel-catalog directoryprotected Fileprotected org.apache.maven.project.MavenProjectThe maven project.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Execute goal.static voidprotected voidstatic booleanupdateResource(org.codehaus.plexus.build.BuildContext buildContext, Path out, String data) protected booleanwriteSourceIfChanged(String source, String filePath, String fileName, File outputDir) 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. -
buildContext
protected final org.codehaus.plexus.build.BuildContext buildContextbuild context to check changed files and mark them for refresh (used for m2e compatibility) -
catalogDir
@Parameter(defaultValue="${project.directory}/../../../catalog/camel-catalog") protected File catalogDirThe camel-catalog directory -
genDir
-
-
Constructor Details
-
PrepareKameletMainMojo
@Inject public PrepareKameletMainMojo(org.codehaus.plexus.build.BuildContext buildContext)
-
-
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...
-
updateKnownDependencies
- Throws:
Exception
-
writeSourceIfChanged
protected boolean writeSourceIfChanged(String source, String filePath, String fileName, File outputDir) throws org.apache.maven.plugin.MojoFailureException - Throws:
org.apache.maven.plugin.MojoFailureException
-
updateResource
-
refresh
-