【解决】Maven myeclipse出现Could not find the main class

maven报错:maven org/codehaus/plexus/classworlds/launcher/Launcher (Unsupported major.m...)

解决思路如下:

按照以往的经验,做如下检查:

  • 编译环境检查 window->preferences->installed JREs

  • 编译级别检查 右击工程名->properties->java compiler

  • 编译路径检查 右击工程名->build path->coufiguration build path

  • 执行clean     project->clean

我重新搞了一下 jres 就ok 了。

重新运行maven的命令就ok了。

原文地址:https://www.cnblogs.com/ae6623/p/4416455.html