mvn命令格式: You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. 第一种格式:lifecycle phase Available lifecycle phases are:…
在使用mvn archetype:generate生成Maven实战03:HelloWorld中的HelloWorld的项目骨架时报了这个错,从字面上分析是可能与pom.xml文件有关,然后我看了一下我命令行的打开位置,果然在项目根目录下,里面刚好有个pom.xml,如果在这里构建骨架,又要用pom.xml文件,是会不成功的,就会报Unable to add module to the current project as it is not of packaging type 'pom'这个错…