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
2018-02-02 22:11
4311 查看
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
报错:[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
- 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>
- No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in t
- Maven报错 解决方案。ERROR: No goals have been specified for this build. You must specify a valid lifecycle
- 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
- Maven不让编译: No goals have been specified for this build. You must specify a valid lifecy
- maven工程里编译运行main函数出错:“ You must specify a valid lifecycle phase or a goal in the format”
- No goals have been specified for this build 解决方案
- maven在myeclipse下运行mvn出现 No goals have been specified for this build.
- 使用myeclipse构建maven项目报错:No goals have been specified for this build
- isis simple 运行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: mvn -X 执行报错:No goals have been specified for this build.
- 运行Maven是报错:No goals have been specified for this build(转)
- Unknown lifecycle phase "mvn". You must specify a valid lifecycle phase or a goal