diff options
-rw-r--r-- | jacoco-maven-plugin/src/org/jacoco/maven/AgentMojo.java | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/jacoco-maven-plugin/src/org/jacoco/maven/AgentMojo.java b/jacoco-maven-plugin/src/org/jacoco/maven/AgentMojo.java index 4df96921..1ff9f248 100644 --- a/jacoco-maven-plugin/src/org/jacoco/maven/AgentMojo.java +++ b/jacoco-maven-plugin/src/org/jacoco/maven/AgentMojo.java @@ -26,15 +26,26 @@ import java.io.File; * </ul> * * <p> - * Note that these properties must not be overwritten by the test configuration, - * otherwise the JaCoCo agent cannot be attached. If you need custom parameters - * please append them. For example: + * If your project already uses the argLine to configure the + * surefire-maven-plugin, be sure that argLine defined as a property, rather + * than as part of the plugin configuration. For example: * </p> * * <pre> - * <argLine>${argLine} -your -extra -arguments</argLine> + * <properties> + * <argLine>-your -extra -arguments</argLine> + * </properties> + * ... + * <plugin> + * <groupId>org.apache.maven.plugins</groupId> + * <artifactId>maven-surefire-plugin</artifactId> + * <configuration> + * <!-- Do not define argLine here! --> + * </configuration> + * </plugin> * </pre> * + * * <p> * Resulting coverage information is collected during execution and by default * written to a file when the process terminates. |