且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法找到或加载主类org.apache.maven.wrapper.MavenWrapperMain

更新时间:2022-06-09 08:27:15

您在git存储库中缺少 .mvn 文件夹.您应该有一个名为 .mvn 的文件夹,其中包含文件 wrapper/maven-wrapper.jar wrapper/maven-wrapper.properties 和 jvm.config .也许您错过了它,因为它是一个隐藏的文件夹.

You're missing the .mvn folder in your git repository. You should have a folder called .mvn which contains the files wrapper/maven-wrapper.jar, wrapper/maven-wrapper.properties and jvm.config. Perhaps you missed it because it's a hidden folder.

尝试从命令行执行 git add -f .mvn ,然后提交并推送.

Try doing git add -f .mvn from the command line then commit and push.