2012-07-30 173 views

回答

1

如果你看一看到doc你可以看到這一點:

Why do I get java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher when I try to execute Maven?

This sometimes happens when $M2_HOME is not the same as your $PATH. That is, when 'which mvn' does not match $M2_HOME/bin/mvn.

+1

使用;%M2_HOME%\在路徑的值bin,以避免此類錯誤的... – 2012-07-30 20:06:59