Package org.apache.maven.plugins.invoker
Class VerifyMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.invoker.VerifyMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="verify",
defaultPhase=VERIFY,
threadSafe=true)
public class VerifyMojo
extends org.apache.maven.plugin.AbstractMojo
Checks the results of maven-invoker-plugin based integration tests and fails the build if any tests failed.
- Since:
- 1.4
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Boolean
Set this totrue
to cause a failure if there are no projects to invoke.private boolean
A flag controlling whether failures of the sub builds should fail the main build, too.private File
Base directory where all build reports are read from.private boolean
Flag used to suppress certain invocations.private 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
Constructors -
Method Summary
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
skipInvocation
@Parameter(property="invoker.skip", defaultValue="false") private boolean skipInvocationFlag used to suppress certain invocations. This is useful in tailoring the build using profiles.- Since:
- 1.1
-
reportsDirectory
@Parameter(property="invoker.reportsDirectory", defaultValue="${project.build.directory}/invoker-reports") private File reportsDirectoryBase directory where all build reports are read from.- Since:
- 1.4
-
ignoreFailures
@Parameter(property="maven.test.failure.ignore", defaultValue="false") private boolean ignoreFailuresA flag controlling whether failures of the sub builds should fail the main build, too. If set totrue
, the main build will proceed even if one or more sub builds failed.- Since:
- 1.3
-
suppressSummaries
@Parameter(defaultValue="false") private 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). -
failIfNoProjects
Set this totrue
to cause a failure if there are no projects to invoke.- Since:
- 1.9
-
-
Constructor Details
-
VerifyMojo
public VerifyMojo()
-
-
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.
-