diff options
author | Marc R. Hoffmann <hoffmann@mountainminds.com> | 2015-01-07 20:26:13 +0100 |
---|---|---|
committer | Marc R. Hoffmann <hoffmann@mountainminds.com> | 2015-01-07 20:55:21 +0100 |
commit | aa0ca31519770c6ba1d524d3ad2099bfc90834bc (patch) | |
tree | 309bc65a50a82875bedd4b1b6f84b9e76644794d /jacoco-maven-plugin | |
parent | 9c65ebadcf9c493806cd799c50bae9dc20cf53c9 (diff) | |
download | jacoco-aa0ca31519770c6ba1d524d3ad2099bfc90834bc.tar.gz |
Fix documentation issue #243.
Diffstat (limited to 'jacoco-maven-plugin')
-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. |