metlos / jmh-maven-plugin

A maven plugin capable or running the JMH benchmarks found in the test sources.
Apache License 2.0
21 stars 2 forks source link

jmh-core is a dependency of jmh-generator-annprocess #2

Open Marco-Sulla opened 1 year ago

Marco-Sulla commented 1 year ago

Hello. I was able to run jmh with Intellij. From command line, without your plugin, no.

I had to add also jmh-core as a dependency anyway:

[ERROR] Failed to execute goal pw.krejci:jmh-maven-plugin:0.2.2:benchmark (default-cli) on project xxx: Execution default-cli of goal pw.krejci:jmh-maven-plugin:0.2.2:benchmark failed: Could not find jmh-core in the list of dependencies. -> [Help 1]

In theory this is not needed, since jmh-core is a dependency of jmh-generator-annprocess (that is in my pom).

ivansenic commented 1 year ago

In addition to this, adding a plugin to parent pom and using only in one child pom, would not work, as in the other children modules than don't declare jmh-core as the dependency, the plugin complains with:

[ERROR] Failed to execute goal pw.krejci:jmh-maven-plugin:0.2.2:benchmark (default-cli) on project core: Execution default-cli of goal pw.krejci:jmh-maven-plugin:0.2.2:benchmark failed: Could not find jmh-core in the list of dependencies. -> [Help 1]