An Error When Setting Up the Benchmarking Project

tq 494369894 at qq.com
Fri Apr 7 06:30:25 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/418b13bd/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: apple-touch-icon-180x180.png
Type: image/png
Size: 21128 bytes
Desc: not available
URL: <https://mail.openjdk.org/pipermail/jmh-dev/attachments/20230407/418b13bd/apple-touch-icon-180x180-0001.png>


More information about the jmh-dev mailing list