@Mojo(name="verify",
defaultPhase=VERIFY,
threadSafe=true)
public class VerifyMojo
extends org.apache.maven.plugin.AbstractMojo
| 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.
|
private java.io.File |
reportsDirectory
Base directory where all build reports are read from.
|
private boolean |
skipInvocation
Flag used to suppress certain invocations.
|
private boolean |
suppressSummaries
Flag used to suppress the summary output notifying of successes and failures.
|
| Constructor and Description |
|---|
VerifyMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Invokes Maven on the configured test projects.
|
@Parameter(property="invoker.skip",
defaultValue="false")
private boolean skipInvocation
@Parameter(property="invoker.reportsDirectory",
defaultValue="${project.build.directory}/invoker-reports")
private java.io.File reportsDirectory
@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(defaultValue="false") private boolean suppressSummaries
true, 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).@Parameter(property="invoker.failIfNoProjects") private java.lang.Boolean failIfNoProjects
true to cause a failure if there are no projects to invoke.public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException - If the goal encountered severe errors.org.apache.maven.plugin.MojoFailureException - If any of the Maven builds failed.