Using maven shade plugin with JMH
Aleksey Shipilev
aleksey.shipilev at oracle.com
Mon Jun 23 11:38:07 UTC 2014
Hi Sergey,
On 06/22/2014 09:26 PM, Сергей Целовальников wrote:
> Why it was decided to use maven-shade-plugin to build microbenhmarks.jar?
Convenience.
> Maven-shade-plugin has a lot of problems, which it used to pack big
> application to uber-jar, because it very hard pack a lot of dependencies to
> one jar. Often he doesn't even run.
So the issue is with producing large JARs?
> I think, it may prevent use JMH to benchmark big applications.
> Maybe it would be better to use maven-jar-plugin
> with maven-dependency-plugin ?
You can use it now, JMH does not force you to use maven-shade-plugin. In
fact, non-Maven JMH usages are uberjar-ing with their own facilities.
Moreover, you are not required to have an uberjar to begin with --
however that is simpler because the classpath, resources, etc. are
bundled together and deployable together.
-Aleksey.
More information about the jmh-dev
mailing list