RFR: Specify explicitly jmh-generator-annprocess as an annotation processor in jmh-samples pom.xml
Fabrice Bibonne
duke at openjdk.org
Wed Feb 18 08:43:54 UTC 2026
On Tue, 23 Dec 2025 18:39:07 GMT, Fabrice Bibonne <duke at openjdk.org> wrote:
> When building **with maven** jmh-samples with a jdk version 22+ , the annotation processor jmh-generator-annprocess is not executed and files and classes generated by jmh are not included in the jar. Then there is an error at runtime when trying to execute samples with command line such as `java -jar target/benchmarks.jar JMHSample_01` : `Exception in thread "main" java.lang.RuntimeException: ERROR: Unable to find the resource: /META-INF/BenchmarkList`
>
> This error happens because the jmh-sample pom.xml does not explicitly set jmh-generator-annprocess as an annotation processor path. This PR aims to correct this issue like the PR #125
My OCA has been processed so you can review this PR. 🙏
-------------
PR Comment: https://git.openjdk.org/jmh/pull/165#issuecomment-3919450324
More information about the jmh-dev
mailing list