JFR Maven Extension
This Maven extension generates JFR events for a Maven build.
Usage
<build>
<extensions>
<extension>
<groupId>com.github.marschall</groupId>
<artifactId>jfr-maven-extension</artifactId>
<version>0.1.1</version>
</extension>
</extensions>
</build>
To create a recording you need the following or similar options
export MAVEN_OPTS="-XX:StartFlightRecording:filename=recording.jfr -XX:FlightRecorderOptions:stackdepth=256"
If you want to have the unit test execution in the same recording you need to set
<forkCount>0</forkCount>
in the configuration of the maven-surefire-plugin