From 578b6b5f26d74882453c69ecbe62a7f7f56598c8 Mon Sep 17 00:00:00 2001 From: Todd Ginsberg Date: Sat, 21 Sep 2024 15:02:52 -0400 Subject: [PATCH] Feature/18 maven documentation fix (#19) * Fix #18 - Need `properties` goal on `maven-dependency-plugin` for `argLine` to work * Fix #18 - Need `properties` goal on `maven-dependency-plugin` for `argLine` to work --- README.md | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f105b92..8398795 100644 --- a/README.md +++ b/README.md @@ -80,8 +80,23 @@ test { #### 2. Enable the Java Agent -Add the following `` to your `pom.xml`. This should account for other Java Agents and run after any others -you may have, such as JaCoCo. +In `pom.xml`, add the `properties` goal to `maven-dependency-plugin`, in order to create properties for each dependency. + +```xml + + maven-dependency-plugin + + + + properties + + + + +``` + +Then add the following `` to `maven-surefire-plugin`, which references the property we just created for +this library. This should account for other Java Agents and run after any others you may have, such as JaCoCo. ```xml @@ -93,6 +108,8 @@ you may have, such as JaCoCo. ``` +And + ## Use Cases - Annotation-based **A Test that expects `System.exit()` to be called, with any status code:**