JFR Maven Extension

Generates JFR Events for a Maven build.

License

License

MIT
Categories

Categories

Maven Build Tools
GroupId

GroupId

com.github.marschall
ArtifactId

ArtifactId

jfr-maven-extension
Last Version

Last Version

0.1.1
Release Date

Release Date

Type

Type

jar
Description

Description

JFR Maven Extension
Generates JFR Events for a Maven build.
Project URL

Project URL

https://github.com/marschall/jfr-maven-extension/
Source Code Management

Source Code Management

https://github.com/marschall/jfr-maven-extension/

Download jfr-maven-extension

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.marschall/jfr-maven-extension/ -->
<dependency>
    <groupId>com.github.marschall</groupId>
    <artifactId>jfr-maven-extension</artifactId>
    <version>0.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.marschall/jfr-maven-extension/
implementation 'com.github.marschall:jfr-maven-extension:0.1.1'
// https://jarcasting.com/artifacts/com.github.marschall/jfr-maven-extension/
implementation ("com.github.marschall:jfr-maven-extension:0.1.1")
'com.github.marschall:jfr-maven-extension:jar:0.1.1'
<dependency org="com.github.marschall" name="jfr-maven-extension" rev="0.1.1">
  <artifact name="jfr-maven-extension" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.marschall', module='jfr-maven-extension', version='0.1.1')
)
libraryDependencies += "com.github.marschall" % "jfr-maven-extension" % "0.1.1"
[com.github.marschall/jfr-maven-extension "0.1.1"]

Dependencies

compile (1)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 3.6.0

provided (1)

Group / Artifact Type Version
org.apache.maven : maven-core jar 3.6.0

test (2)

Group / Artifact Type Version
io.takari.maven.plugins : takari-plugin-integration-testing pom 2.9.2
io.takari.maven.plugins : takari-plugin-testing jar 2.9.2

Project Modules

There are no modules declared in this project.

JFR Maven Extension Maven Central

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

Screenshot

Sample Screenshot

Versions

Version
0.1.1
0.1.0