diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java index ff65cdc61d..edad0ed68d 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java @@ -281,10 +281,11 @@ public abstract class AbstractSurefireMojo /** * The test source directory containing test class sources. + * Important only for TestNG HTML reports. * * @since 2.2 */ - @Parameter( defaultValue = "${project.build.testSourceDirectory}", required = true ) + @Parameter( defaultValue = "${project.build.testSourceDirectory}" ) private File testSourceDirectory; /** diff --git a/maven-surefire-plugin/src/site/apt/examples/inclusion-exclusion.apt.vm b/maven-surefire-plugin/src/site/apt/examples/inclusion-exclusion.apt.vm index 1a7916d60d..a66b7b385a 100644 --- a/maven-surefire-plugin/src/site/apt/examples/inclusion-exclusion.apt.vm +++ b/maven-surefire-plugin/src/site/apt/examples/inclusion-exclusion.apt.vm @@ -211,10 +211,10 @@ Inclusions and Exclusions of Tests * Tests from dependencies - By default, ${thisPlugin} will only scan for test classes to execute in the configured <<>>. To - have the plugin scan dependencies to find test classes to execute, use the <<>> configuration. - Dependencies can be specified using the <<>> format, and must already - be <<>> elements in scope. + In order to scan dependencies by the ${thisPlugin} plugin and find the test classes to execute in the dependencies, + use the MOJO parameter <<>> and configure it as necessary. + Dependencies can be specified using the <<>> format, and must + already be <<>> elements in scope. Support for version, type and classifier was introduced in version <<<3.0.0-M4>>>. When using earlier versions, ${thisPlugin} will fail with an <<>> if more than groupId and artifactId are specified.