<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div dir="auto" style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div dir="auto" style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Hi jmh-dev team,<div><br></div><div>When I set up my benchmarking project using this step:</div><div><div style="display: block;"><div style="-webkit-user-select: all; -webkit-user-drag: element; display: inline-block;" class="apple-rich-link" draggable="true" role="link" data-url="https://github.com/openjdk/jmh#preferred-usage-command-line"><a style="border-radius:10px;font-family:-apple-system, Helvetica, Arial, sans-serif;display:block;-webkit-user-select:none;width:300px;user-select:none;-webkit-user-modify:read-only;user-modify:read-only;overflow:hidden;text-decoration:none;" class="lp-rich-link" rel="nofollow" href="https://github.com/openjdk/jmh#preferred-usage-command-line" dir="ltr" role="button" draggable="false" width="300"><table style="table-layout:fixed;border-collapse:collapse;width:300px;background-color:#E5E6E9;font-family:-apple-system, Helvetica, Arial, sans-serif;" class="lp-rich-link-emailBaseTable" cellpadding="0" cellspacing="0" border="0" width="300"><tbody><tr><td vertical-align="center"><table bgcolor="#E5E6E9" cellpadding="0" cellspacing="0" width="300" style="font-family:-apple-system, Helvetica, Arial, sans-serif;table-layout:fixed;background-color:rgba(229, 230, 233, 1);" class="lp-rich-link-captionBar"><tbody><tr><td style="padding:8px 0px 8px 0px;" class="lp-rich-link-captionBar-textStackItem"><div style="max-width:100%;margin:0px 16px 0px 16px;overflow:hidden;" class="lp-rich-link-captionBar-textStack"><div style="word-wrap:break-word;font-weight:500;font-size:12px;overflow:hidden;text-overflow:ellipsis;text-align:left;" class="lp-rich-link-captionBar-textStack-topCaption-leading"><a rel="nofollow" href="https://github.com/openjdk/jmh#preferred-usage-command-line" style="text-decoration: none" draggable="false"><font color="#272727" style="color: rgba(0, 0, 0, 0.847059);">openjdk/jmh: https://openjdk.org/projects/code-tools/jmh</font></a></div><div style="word-wrap:break-word;font-weight:400;font-size:11px;overflow:hidden;text-overflow:ellipsis;text-align:left;" class="lp-rich-link-captionBar-textStack-bottomCaption-leading"><a rel="nofollow" href="https://github.com/openjdk/jmh#preferred-usage-command-line" style="text-decoration: none" draggable="false"><font color="#808080" style="color: rgba(0, 0, 0, 0.498039);">github.com</font></a></div></div></td><td style="padding:6px 12px 6px 0px;" class="lp-rich-link-captionBar-rightIconItem" width="36"><a rel="nofollow" href="https://github.com/openjdk/jmh#preferred-usage-command-line" draggable="false"><img style="pointer-events:none !important;display:inline-block;width:36px;height:36px;border-radius:3px;" height="36" draggable="false" class="lp-rich-link-captionBar-rightIcon" alt="apple-touch-icon-180x180.png" src="cid:CD1CA6E4-D7FA-44DA-BBCB-E5079BF821A8"></a></td></tr></tbody></table></td></tr></tbody></table></a></div></div><div style="display: block;"><br></div><div>I get an error saying “Annotation generator had thrown the exception. java.lang.NoClassDefFoundError: javax/annotation/Generated</div><div>“. Seems I need to add this dependency in pom.xml:</div></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div><span style="background-color: rgb(214, 214, 214);"><dependency></span></div></div><div><div><span style="background-color: rgb(214, 214, 214);"> <groupId>javax.annotation</groupId></span></div></div><div><div><span style="background-color: rgb(214, 214, 214);"> <artifactId>javax.annotation-api</artifactId></span></div></div><div><div><span style="background-color: rgb(214, 214, 214);"> <version>1.3.2</version></span></div></div><div><div><span style="background-color: rgb(214, 214, 214);"></dependency></span></div></div></blockquote>Could you add this dependency <font face=".AppleSystemUIFont">in Maven <span style="orphans: 2; widows: 2;">archetype?</span></font></div><div dir="auto" style="text-align: left; overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><font face=".AppleSystemUIFont"><span style="orphans: 2; widows: 2;"><br></span></font></div><div dir="auto" style="text-align: left; overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><span style="caret-color: rgb(43, 46, 47); color: rgb(43, 46, 47);">Best regards,</span></div><div dir="auto" style="text-align: left; overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><span style="caret-color: rgb(43, 46, 47); color: rgb(43, 46, 47);">Qiao</span></div></div></body></html>