Unable to create project from archetype

缺乏、安全感 2022-07-13 07:52 286阅读 0赞

Unable to create project from archetype [org.apache.maven.archetypes:maven-archetype-quickstart:1.1]
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文件
另外3.0下不支持archetype:create,只支持archetype:generate

发表评论

表情:
评论列表 (有 0 条评论,286人围观)

还没有评论,来说两句吧...

相关阅读