Maven报错 解决方案。ERROR: No goals have been specified for this build. You must specify a valid lifecycle
2017-03-23 20:16
821 查看
http://www.cnblogs.com/haoliansheng/p/5866149.html(转载自)
报错:
[ERROR] No goals have been specified for this build. 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,
解决方式:
打开pom.xml 在build节点中 增加
<defaultGoal>compile</defaultGoal>
报错:
[ERROR] No goals have been specified for this build. 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,
解决方式:
打开pom.xml 在build节点中 增加
<defaultGoal>compile</defaultGoal>
相关文章推荐
- Maven报错 解决方案。ERROR: No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id
- Maven报错 解决方案。ERROR: No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id
- Maven报错 解决方案。ERROR: No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id
- Maven报错 解决方案。ERROR: No goals have been specified for this build. You must specify a valid lifecycle
- Maven工程报错:No goals have been specified for this build. You must specify a valid lifecycle phase or a
- No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in t
- Maven不让编译: No goals have been specified for this build. You must specify a valid lifecy
- 解决运行Maven是报错:No goals have been specified for this build
- 使用myeclipse构建maven项目报错:No goals have been specified for this build
- 运行Maven是报错:No goals have been specified for this build
- Maven:No goals have been specified for this build
- 运行Maven是报错:No goals have been specified for this build
- No goals have been specified for this build 解决方案
- 运行Maven是报错:No goals have been specified for this build
- 运行Maven工程总是报错:No goals have been specified for this build
- 运行Maven是报错:No goals have been specified for this build(转)
- Maven错误:“No goals have been specified for this build...”问题解决
- Maven项目报错:“No goals have been specified for this build”解决办法
- 运行Maven是报错:No goals have been specified for this build
- 运行Maven是报错:No goals have been specified for this build