From 5621a2f5b86eda743601ba8374f2d6a2b9730e23 Mon Sep 17 00:00:00 2001 From: old-tom <892955278@msn.cn> Date: Fri, 28 Feb 2025 15:20:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 问题排查/maven 相关问题.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 问题排查/maven 相关问题.md diff --git a/问题排查/maven 相关问题.md b/问题排查/maven 相关问题.md new file mode 100644 index 0000000..437c758 --- /dev/null +++ b/问题排查/maven 相关问题.md @@ -0,0 +1,11 @@ +### 1. 找不到主类 +```text +系统找不到文件 D:\project\.mvn\wrapper\maven-wrapper.properties。 +错误: 找不到或无法加载主类 org.apache.maven.wrapper.MavenWrapperMain +原因: java.lang.ClassNotFoundException: org.apache.maven.wrapper.MavenWrapperMain +``` + +说明缺少.mvn 文件夹,执行以下命令 +```shell +mvn -N io.takari:maven:wrapper +```