如何解决VSCode 中的错误“文件名、目录名或卷标语法不正确”
当我在 VSCode 中尝试“创建 Maven 项目”时,出现以下错误消息。
> Executing task: "c:\Users\devin\.vscode\extensions\vscjava.vscode-maven-0.30.0\resources\maven-wrapper\mvnw.cmd" org.apache.maven.plugins:maven-archetype-plugin:3.1.2:generate -DarchetypeArtifactId="spring-boot-blank-archetype" -DarchetypeGroupId="am.ik.archetype" -DarchetypeVersion="1.0.0" -DgroupId="io.javabrains.springbootquickstart" -DartifactId="course-api" -DoutputDirectory="d:\Projects\Springboot" <
The filename,directory name,or volume label syntax is incorrect.
The terminal process "cmd.exe /c "c:\Users\devin\.vscode\extensions\vscjava.vscode-maven-0.30.0\resources\maven-wrapper\mvnw.cmd" org.apache.maven.plugins:maven-archetype-plugin:3.1.2:generate -DarchetypeArtifactId="spring-boot-blank-archetype" -DarchetypeGroupId="am.ik.archetype" -DarchetypeVersion="1.0.0" -DgroupId="io.javabrains.springbootquickstart" -DartifactId="course-api" -DoutputDirectory="d:\Projects\Springboot"" failed to launch (exit code: 1).
Terminal will be reused by tasks,press any key to close it.
解决方法
您遇到的错误应该与 Naming Files,Paths,and Namespaces 有关。请尝试以下方式创建maven项目:
-
使用扩展Spring Initializer Java Support到create project
-
将 Maven 添加到路径并按照教程 create maven project
请再试一次,看看错误是否消失。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。