使用IDEA运行普通的maven项目,非web项目时,编译不成功,报错如下:
Unknown lifecycle phase “”. You must specify a valid lifecycle phase or a goal in the format : or :[:]:. Available lifecycle phases are: validate, initialize, generate-sources,
process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test,
修改IDEA的设置:
这里不用再填写mvn,因为IDEA的已经每次加上了mvn了,再写mvn相当于mvn mvn package了。