Package org.apache.maven.plugins.invoker
Class AbstractInvokerMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.invoker.AbstractInvokerMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
IntegrationTestMojo
,InvokerMojo
public abstract class AbstractInvokerMojo
extends org.apache.maven.plugin.AbstractMojo
Provides common code for mojos invoking sub builds.
- Since:
- 15-Aug-2009 09:09:29
- Author:
- Stephen Connolly
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
Flag used to suppress the summary output notifying of successes and failures.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
execute()
Invokes Maven on the configured test projects.Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
suppressSummaries
@Parameter(defaultValue="false") protected boolean suppressSummariesFlag used to suppress the summary output notifying of successes and failures. If set totrue
, the only indication of the build's success or failure will be the effect it has on the main build (if it fails, the main build should fail as well). IfstreamLogs
is enabled, the sub-build summary will also provide an indication.- Since:
- 1.0
-
-
Constructor Details
-
AbstractInvokerMojo
public AbstractInvokerMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionInvokes Maven on the configured test projects.- Throws:
org.apache.maven.plugin.MojoExecutionException
- If the goal encountered severe errors.org.apache.maven.plugin.MojoFailureException
- If any of the Maven builds failed.
-
doFailIfNoProjects
protected void doFailIfNoProjects() throws org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoFailureException
-