Skip to content

Conversation

@hadryyassine
Copy link
Contributor

##Context
Part of our RPMs QA process, When running the java-simple-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 PR addresses the issue encountered during the build and execution of the java-simple-stream-benchmark project, where the JMH-generated resource file META-INF/BenchmarkList was missing, leading to runtime errors. The root cause was identified as incorrect Maven configuration and outdated plugin versions that didn't properly support annotation processing for JMH.

##Changes

  1. Updated Maven Plugin Versions:

Upgraded the maven-compiler-plugin to version 3.8.1 to ensure compatibility with current Maven configurations and better support for annotation processing.

  1. Corrected Element

  2. Enabled Annotation Processing

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Nov 13, 2024
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.

LGMT

@olyagpl olyagpl merged commit cfc4fc6 into graalvm:master Nov 13, 2024
3 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