An Error When Setting Up the Benchmarking Project

Aleksey Shipilev shipilev at amazon.de
Tue Apr 11 11:14:09 UTC 2023


On 07.04.23 09:07, tq wrote:
>
> When I set up my benchmarking project using this step:
>
> 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?

Where did you get `@Generated` generated? Can you show the part of the 
.java file that JMH annotation processor produced? Or even better, 
provide the MCVE?

Because I remember removing that part from JMH generators:
https://github.com/openjdk/jmh/commit/d99176b705ffc222efa4ae2c063a9d9a477c51e2

Thanks,

-Aleksey



Amazon Development Center Germany GmbH
Krausenstr. 38
10117 Berlin
Geschaeftsfuehrung: Christian Schlaeger, Jonathan Weiss
Eingetragen am Amtsgericht Charlottenburg unter HRB 149173 B
Sitz: Berlin
Ust-ID: DE 289 237 879


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/jmh-dev/attachments/20230411/792908e3/attachment.htm>


More information about the jmh-dev mailing list