public class RunMojo
extends org.codehaus.mojo.exec.AbstractExecMojo
META-INF/spring/*.xml
, and OSGI-INF/blueprint/*.xml
,
and camel-*.xml
and starting up the context.Modifier and Type | Field and Description |
---|---|
protected String |
duration
Sets the time duration (seconds) that the application will run for before terminating.
|
protected String |
durationIdle
Sets the idle time duration (seconds) duration that the application can be idle before terminating.
|
protected String |
durationMaxMessages
Sets the duration of maximum number of messages that the application will process before terminating.
|
protected String |
extendedPluginDependencyArtifactId |
protected boolean |
logClasspath
Whether to log the classpath when starting
|
protected org.apache.maven.project.MavenProject |
project
The maven project.
|
protected Boolean |
useBlueprint
Whether to use Blueprint when running, instead of Spring
|
protected Boolean |
useCDI
Whether to use CDI when running, instead of Spring
|
Constructor and Description |
---|
RunMojo() |
Modifier and Type | Method and Description |
---|---|
protected void |
afterBootstrapCamel()
Allows plugin extensions to do custom logic after bootstrapping Camel.
|
protected void |
beforeBootstrapCamel()
Allows plugin extensions to do custom logic before bootstrapping Camel.
|
void |
execute()
Execute goal.
|
protected org.apache.maven.artifact.Artifact |
findExecutableArtifact()
Examine the plugin dependencies to find the executable artifact.
|
collectProjectArtifactsAndClasspath, hasCommandlineArgs, isSkip, parseCommandlineArgs, registerSourceRoots
protected org.apache.maven.project.MavenProject project
protected String duration
protected String durationIdle
protected String durationMaxMessages
protected boolean logClasspath
protected Boolean useBlueprint
protected Boolean useCDI
protected String extendedPluginDependencyArtifactId
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 void beforeBootstrapCamel() throws Exception
Exception
protected void afterBootstrapCamel() throws Exception
Exception
protected org.apache.maven.artifact.Artifact findExecutableArtifact() throws org.apache.maven.plugin.MojoExecutionException
findExecutableArtifact
in class org.codehaus.mojo.exec.AbstractExecMojo
org.apache.maven.plugin.MojoExecutionException
Apache Camel