An Error When Setting Up the Benchmarking Project

tq 494369894 at qq.com
Fri Apr 7 07:07:49 UTC 2023


Hi  jmh-dev team,

When I set up my benchmarking project using this step:
https://github.com/openjdk/jmh#preferred-usage-command-line

I get an error saying “Annotation generator had thrown the exception. java.lang.NoClassDefFoundError: javax/annotation/Generated
“. Seems I need to add this dependency in pom.xml:
<dependency>
    <groupId>javax.annotation</groupId>
    <artifactId>javax.annotation-api</artifactId>
    <version>1.3.2</version>
</dependency>
Could you add this dependency in Maven archetype?

Best regards,
Qiao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/jmh-dev/attachments/20230407/b558ba47/attachment.htm>


More information about the jmh-dev mailing list