Have a look at how JaCoCo does it, as AFAICT it has exactly the same needs:
https://www.eclemma.org/jacoco/trunk/doc/maven.html (source code:
https://github.com/jacoco/jacoco/tree/master/jacoco-maven-plugin/src/org/jacoco/maven
)
TL;DR: prepare-agent goal sets a property that you can then use to
Hi,
I am currently trying to write a custom plugin that does two things
1. Attach a java agent to the JVM when the tests are running, causing
some instrumentation to be logged
2. Analyze the logged instrumentation and report back to the user
I have the second part working, but I'm