How to include a JAR file into benchmarks.jar

Henri Tremblay henri.tremblay at gmail.com
Wed Jan 5 04:00:05 UTC 2022


Can you add it with -cp when running the benchmark?

On Tue, 4 Jan 2022 at 16:47, Wei-Jun Wang <weijun.wang at oracle.com> wrote:

> My JMH project needs a 3rd-party JAR file (not in maven repo) and I can
> add it as a system scope dependency. It builds fine but the JAR file is not
> merged into the final benchmarks.jar output. The "Including xxx in the
> shaded jar" lines do not include it.
>
> Is there a way to include it?
>
> Thanks in advance,
> Weijun
>
>


More information about the jmh-dev mailing list