I am trying to setup the very basic JMH test suite but I cannot get through to generate the jar with the tests... I have annotation processor on the classpath, with jmh core too, one simple class but when I run Main.main()
there are no jars being generated (running it from IntelliJ). Is there some parameter/option I am missing when running?
JMH - run without Maven
I think you cannot not generate benchmarks.jar
without maven-shade-plugin
.
If you still want to run from the command line but without benchmarks.jar
you can copy the command IDEA executes from the console and run it from terminal.
© 2022 - 2024 — McMap. All rights reserved.
Settings/Compiler/Annotation Processors
and JHM processor is endeed on the compilation classpath. The correct code will be generated during normal compilation process. – Moldaujmh-core
on your classpath you further needjmh-generator-annprocess
dependency – Malemute