@Mojo(name="run", defaultPhase=INTEGRATION_TEST, requiresDependencyResolution=TEST, threadSafe=true) public class InvokerMojo extends AbstractInvokerMojo
AbstractInvokerMojo.ToolchainPrivateManager
Modifier and Type | Field and Description |
---|---|
private java.lang.Boolean |
failIfNoProjects
Set this to
true to cause a failure if there are no projects to invoke. |
private boolean |
ignoreFailures
A flag controlling whether failures of the sub builds should fail the main build, too.
|
suppressSummaries
Constructor and Description |
---|
InvokerMojo() |
Modifier and Type | Method and Description |
---|---|
protected void |
doFailIfNoProjects() |
(package private) void |
processResults(InvokerSession invokerSession)
Processes the results of invoking the build jobs.
|
alreadyCloned, buildInterpolatedFile, execute, getBuildJobs, getGoals, getProfiles, isParallelRun
@Parameter(property="maven.test.failure.ignore", defaultValue="false") private boolean ignoreFailures
true
, the main build will proceed even if one or more sub builds failed.@Parameter(property="invoker.failIfNoProjects") private java.lang.Boolean failIfNoProjects
true
to cause a failure if there are no projects to invoke.void processResults(InvokerSession invokerSession) throws org.apache.maven.plugin.MojoFailureException
AbstractInvokerMojo
processResults
in class AbstractInvokerMojo
invokerSession
- The session with the build jobs, must not be null
.org.apache.maven.plugin.MojoFailureException
- If the mojo had failed as a result of invoking the build jobs.protected void doFailIfNoProjects() throws org.apache.maven.plugin.MojoFailureException
doFailIfNoProjects
in class AbstractInvokerMojo
org.apache.maven.plugin.MojoFailureException