Get NoClassDefFoundError for commons-lang StringUtils creating archetype

Henri Tremblay henri.tremblay at gmail.com
Sat May 23 01:23:24 UTC 2020


It should work.

We need some details.

Maven version? 3.6.3?
Archetype? jmh-java-benchmark-archetype:1.23
Java 8?


On Fri, 22 May 2020 at 18:58, David Karr <davidmichaelkarr at gmail.com> wrote:

> I've used JMH in the past, and I've always started by creating an
> archetype.  Today I tried it, only changing the artifact id from the
> command line in the docs.  It ran for quite a while, downloading artifacts,
> and then I saw this:
>
> [WARNING] Error initializing:
> org.codehaus.plexus.velocity.DefaultVelocityComponent at 57d0fc89
> java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils
>     at org.apache.velocity.runtime.resource.ResourceManagerImpl.initialize
> (ResourceManagerImpl.java:161)
>
> followed by just about the longest stack trace I've ever seen.  This was
> followed by many copies of the same trace.
>
> I also checked my local .m2 repository, and I don't have this jar installed
> (I have lang3). I searched in the maven output for a reference to that
> library. It showed attempts to download other commons libraries, but not
> commons-lang.
>


More information about the jmh-dev mailing list