新建Maven项目时遇到这个错误:
Unable to create project from archetype [org.apache.maven.archetypes:maven-archetype-webapp:1.0]
Unable to add module to the current project as it is not of packaging type ‘pom’
解决:
Are you running the command from a directory that has an existing pom.xml file in it? I think that may be confusing Maven, as it thinks you’re trying to add your new project as a sub-module of the project in the working directory.
原来是因为我在Workspace下放了个POM文件,造成了M2eclipse插件的误解,删掉就OK了。
本文解决了在Maven中创建项目时出现的错误提示:Unable to create project from archetype和Unable to add module to the current project as it is not of packaging type ‘pom’。错误原因是工作目录中存在的POM文件导致M2eclipse插件的误解。
1463

被折叠的 条评论
为什么被折叠?



