Skip to content

Commit 2a80929

Browse files
authored
Update README.md
1 parent 72556f6 commit 2a80929

File tree

1 file changed

+27
-42
lines changed

1 file changed

+27
-42
lines changed

README.md

Lines changed: 27 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -100,43 +100,8 @@ The hooks that enable **JUnit Foundation** test lifecycle notifications are inst
100100
<groupId>org.apache.maven.plugins</groupId>
101101
<artifactId>maven-dependency-plugin</artifactId>
102102
<version>${dependency-plugin.version}</version>
103-
</plugins>
104-
</pluginManagement>
105-
<plugins>
106-
<plugin>
107-
<groupId>org.apache.maven.plugins</groupId>
108-
<artifactId>maven-dependency-plugin</artifactId>
109-
<version>${dependency-plugin.version}</version>
110-
<executions>
111-
<execution>
112-
<id>getClasspathFilenames</id>
113-
<goals>
114-
<goal>properties</goal>
115-
</goals>
116-
</execution>
117-
</executions>
118-
</plugin>
119-
<plugin>
120-
<groupId>org.apache.maven.plugins</groupId>
121-
<artifactId>maven-surefire-plugin</artifactId>
122-
<version>${surefire-plugin.version}</version>
123-
<configuration>
124-
<argLine>-javaagent:${com.nordstrom.tools:junit-foundation:jar}</argLine>
125-
</configuration>
126-
</plugin>
127-
</plugins>
128-
</build>
129-
</project>
130-
```
131-
132-
If you plan to import your project to Eclipse, add this as well:
133-
134-
```xml
135-
[...]
136-
137-
<build>
138-
<pluginManagement>
139-
<plugins>
103+
</plugin>
104+
<!-- Add this if you plan to import into Eclipse -->
140105
<plugin>
141106
<groupId>org.eclipse.m2e</groupId>
142107
<artifactId>lifecycle-mapping</artifactId>
@@ -161,14 +126,34 @@ If you plan to import your project to Eclipse, add this as well:
161126
</lifecycleMappingMetadata>
162127
</configuration>
163128
</plugin>
164-
165-
[...]
166-
167129
</plugins>
168130
</pluginManagement>
131+
<plugins>
132+
<!-- This provides the path to the Java agent -->
133+
<plugin>
134+
<groupId>org.apache.maven.plugins</groupId>
135+
<artifactId>maven-dependency-plugin</artifactId>
136+
<version>${dependency-plugin.version}</version>
137+
<executions>
138+
<execution>
139+
<id>getClasspathFilenames</id>
140+
<goals>
141+
<goal>properties</goal>
142+
</goals>
143+
</execution>
144+
</executions>
145+
</plugin>
146+
<plugin>
147+
<groupId>org.apache.maven.plugins</groupId>
148+
<artifactId>maven-surefire-plugin</artifactId>
149+
<version>${surefire-plugin.version}</version>
150+
<configuration>
151+
<argLine>-javaagent:${com.nordstrom.tools:junit-foundation:jar}</argLine>
152+
</configuration>
153+
</plugin>
154+
</plugins>
169155
</build>
170-
171-
[...]
156+
</project>
172157
```
173158

174159
#### Gradle Configuration for JUnit Foundation

0 commit comments

Comments
 (0)