Skip to content

Conversation

@hadryyassine
Copy link
Contributor

Context

Part of our RPMs QA process, When running the binary-tree benchmark demo for our RPM release for newer GraalVM versions , the benchmark demo fails with:
Exception in thread "main" java.lang.RuntimeException: ERROR: Unable to find the resource: /META-INF/BenchmarkList

This occurs because the JMH annotation processor isn't explicitly configured in the Maven build, leading to missing metadata generation required for JMH benchmarks to run.

Root Cause

The current pom.xml relies on implicit annotation processing, which can be unreliable across different build environments and JDK versions. While it might work in some environments where Maven picks up the processor automatically, it fails in other environments.

Solution

Added explicit configuration for the JMH annotation processor in the maven-compiler-plugin:

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Nov 11, 2024
@olyagpl olyagpl self-requested a review November 11, 2024 15:19
Copy link
Member

@olyagpl olyagpl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we don't need the duplicated org.openjdk.jmh in the dependency block.

@olyagpl olyagpl merged commit eb19543 into graalvm:master Nov 11, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants