Get NoClassDefFoundError for commons-lang StringUtils creating archetype

David Karr davidmichaelkarr at gmail.com
Fri May 22 22:57:38 UTC 2020


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