[WARNING] Error initializing: org.codehaus.plexus.velocity.DefaultVelocityComponent@28348c6
java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils
添加下面内容到文件~/.m2/repository/org/apache/maven/plugins/maven-archetype-plugin/{version}/maven-archetype-plugin-{version}.pom:
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.6</version>
</dependency>
来源:oschina
链接:https://my.oschina.net/u/4343506/blog/4547299