From aa0ca31519770c6ba1d524d3ad2099bfc90834bc Mon Sep 17 00:00:00 2001 From: "Marc R. Hoffmann" Date: Wed, 7 Jan 2015 20:26:13 +0100 Subject: Fix documentation issue #243. --- .../src/org/jacoco/maven/AgentMojo.java | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'jacoco-maven-plugin') 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; * * *

- * 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: *

* *
- *   <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>
  * 
* + * *

* Resulting coverage information is collected during execution and by default * written to a file when the process terminates. -- cgit v1.2.3