aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc R. Hoffmann <hoffmann@mountainminds.com>2015-01-07 20:26:13 +0100
committerMarc R. Hoffmann <hoffmann@mountainminds.com>2015-01-07 20:55:21 +0100
commitaa0ca31519770c6ba1d524d3ad2099bfc90834bc (patch)
tree309bc65a50a82875bedd4b1b6f84b9e76644794d
parent9c65ebadcf9c493806cd799c50bae9dc20cf53c9 (diff)
downloadjacoco-aa0ca31519770c6ba1d524d3ad2099bfc90834bc.tar.gz
Fix documentation issue #243.
-rw-r--r--jacoco-maven-plugin/src/org/jacoco/maven/AgentMojo.java19
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>
- * &lt;argLine&gt;${argLine} -your -extra -arguments&lt;/argLine&gt;
+ * &lt;properties&gt;
+ * &lt;argLine&gt;-your -extra -arguments&lt;/argLine&gt;
+ * &lt;/properties&gt;
+ * ...
+ * &lt;plugin&gt;
+ * &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
+ * &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
+ * &lt;configuration&gt;
+ * &lt;!-- Do not define argLine here! --&gt;
+ * &lt;/configuration&gt;
+ * &lt;/plugin&gt;
* </pre>
*
+ *
* <p>
* Resulting coverage information is collected during execution and by default
* written to a file when the process terminates.