Unknown lifecycle phase "mvn". You must specify a valid lifecycle

最近在使用eclipse遍历flowable时,出现如下错误

[ERROR] Unknown lifecycle phase "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>. 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, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1]

这是因为我们在run Configurations里面填写mvn命令时,mvn命令时多余的

如下命令

mvn clean package -DskipTests -Pdeploy -Dmaven.javadoc.skip=true

我们只需要将mvn去掉即可,因我的eclipse已经集成了maven,他会自动在前面加上mvn命令,因此重复了


如果您觉得本文章对您有用,也为了更好的运营博客,您可以点击这里捐助

评论 抢沙发

昵称 (必填) 邮箱 (必填)
表情