|
276 | 276 |
|
277 | 277 | <build>
|
278 | 278 | <plugins>
|
| 279 | + |
| 280 | + <!-- |
| 281 | + Jacoco plugin redeclared to make sure it's downloaded and |
| 282 | + the agents can be explicitly added to the test executions. |
| 283 | + --> |
| 284 | + <plugin> |
| 285 | + <groupId>org.jacoco</groupId> |
| 286 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 287 | + <version>${jacoco}</version> |
| 288 | + <configuration> |
| 289 | + <destFile>${jacoco.destfile}</destFile> |
| 290 | + </configuration> |
| 291 | + <executions> |
| 292 | + <execution> |
| 293 | + <id>jacoco-initialize</id> |
| 294 | + <goals> |
| 295 | + <goal>prepare-agent</goal> |
| 296 | + </goals> |
| 297 | + </execution> |
| 298 | + </executions> |
| 299 | + </plugin> |
| 300 | + |
279 | 301 | <plugin>
|
280 | 302 | <groupId>org.apache.maven.plugins</groupId>
|
281 | 303 | <artifactId>maven-surefire-plugin</artifactId>
|
|
337 | 359 | <exclude>**/OpenJpa*</exclude>
|
338 | 360 | <exclude>**/EclipseLink*</exclude>
|
339 | 361 | </excludes>
|
340 |
| - <argLine>-javaagent:${settings.localRepository}/org/springframework/spring-instrument/${spring}/spring-instrument-${spring}.jar</argLine> |
| 362 | + <argLine>-javaagent:${settings.localRepository}/org/springframework/spring-instrument/${spring}/spring-instrument-${spring}.jar -javaagent:${settings.localRepository}/org/jacoco/org.jacoco.agent/${jacoco}/org.jacoco.agent-${jacoco}-runtime.jar=destfile=${jacoco.destfile}</argLine> |
341 | 363 | </configuration>
|
342 | 364 | </execution>
|
343 | 365 | <execution>
|
|
350 | 372 | <includes>
|
351 | 373 | <include>**/EclipseLink*Tests.java</include>
|
352 | 374 | </includes>
|
353 |
| - <argLine>-javaagent:${settings.localRepository}/org/eclipse/persistence/org.eclipse.persistence.jpa/${eclipselink}/org.eclipse.persistence.jpa-${eclipselink}.jar -javaagent:${settings.localRepository}/org/springframework/spring-instrument/${spring}/spring-instrument-${spring}.jar</argLine> |
| 375 | + <argLine>-javaagent:${settings.localRepository}/org/jacoco/org.jacoco.agent/${jacoco}/org.jacoco.agent-${jacoco}-runtime.jar=destfile=${jacoco.destfile} -javaagent:${settings.localRepository}/org/eclipse/persistence/org.eclipse.persistence.jpa/${eclipselink}/org.eclipse.persistence.jpa-${eclipselink}.jar -javaagent:${settings.localRepository}/org/springframework/spring-instrument/${spring}/spring-instrument-${spring}.jar</argLine> |
354 | 376 | </configuration>
|
355 | 377 | </execution>
|
356 | 378 | <execution>
|
|
363 | 385 | <includes>
|
364 | 386 | <include>**/OpenJpa*Tests.java</include>
|
365 | 387 | </includes>
|
366 |
| - <argLine>-javaagent:${settings.localRepository}/org/apache/openjpa/openjpa/${openjpa}/openjpa-${openjpa}.jar</argLine> |
| 388 | + <argLine>-javaagent:${settings.localRepository}/org/jacoco/org.jacoco.agent/${jacoco}/org.jacoco.agent-${jacoco}-runtime.jar=destfile=${jacoco.destfile} -javaagent:${settings.localRepository}/org/apache/openjpa/openjpa/${openjpa}/openjpa-${openjpa}.jar</argLine> |
367 | 389 | <classpathDependencyExcludes>
|
368 | 390 | <classpathDepencyExclude>org.hsqldb:hsqldb</classpathDepencyExclude>
|
369 | 391 | </classpathDependencyExcludes>
|
|
0 commit comments