Eclipse集成Maven打包时报错:Unknown lifecycle phase "mvn". You must specify a valid lifecycle phase or a goa
2017-08-03 20:43
776 查看
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Hello Maven 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 51.755 s
[INFO] Finished at: 2017-08-03T19:15:28+08:00
[INFO] Final Memory: 39M/142M
[INFO] ------------------------------------------------------------------------
[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> -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhaseNotFoundException
使用Eclipse集成Maven后,在Eclipse里打包解决方案如下:
选中项目------>右键----->Run As------>Manven bulid-->填写Name:XXX; Goals:clean package -Dmaven.test.skip=true;User setting:setting文件存放目录------>Run
错误做法是:Goals:mvn clean package -Dmaven.test.skip=true,所以导致报错 Unknown lifecycle phase "mvn". You must specify a valid lifecycle phase or a goal in the format。。。。
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Hello Maven 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 51.755 s
[INFO] Finished at: 2017-08-03T19:15:28+08:00
[INFO] Final Memory: 39M/142M
[INFO] ------------------------------------------------------------------------
[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> -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhaseNotFoundException
使用Eclipse集成Maven后,在Eclipse里打包解决方案如下:
选中项目------>右键----->Run As------>Manven bulid-->填写Name:XXX; Goals:clean package -Dmaven.test.skip=true;User setting:setting文件存放目录------>Run
错误做法是:Goals:mvn clean package -Dmaven.test.skip=true,所以导致报错 Unknown lifecycle phase "mvn". You must specify a valid lifecycle phase or a goal in the format。。。。
相关文章推荐
- Unknown lifecycle phase "mvn". You must specify a valid lifecycle phase or a goal
- Unknown lifecycle phase "mvn". You must specify a valid lifecycle phase or a goal
- 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>
- 错误LifecyclePhaseNotFoundException,Unknown lifecycle phase "mvn". You must specify a valid lifecycle
- 错误LifecyclePhaseNotFoundException,Unknown lifecycle phase "mvn". You must specify a valid lifecycle
- LifecyclePhaseNotFoundException,Unknown lifecycle phase "mvn". You must specify a valid lifecycle
- 错误LifecyclePhaseNotFoundException,Unknown lifecycle phase "mvn". You must specify a valid lifecycle
- 异常:Unknown lifecycle phase "mvn". You must specify a valid lifecycle
- 错误LifecyclePhaseNotFoundException,Unknown lifecycle phase "mvn". You must specify a valid lifecycle
- 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
- No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in t
- Jar包冲突解决方法 Unknown lifecycle phase "mvn" Eclipse中执行maven命令
- maven工程里编译运行main函数出错:“ You must specify a valid lifecycle phase or a goal in the format”
- Maven工程报错:No goals have been specified for this build. You must specify a valid lifecycle phase or a
- Maven编译报错 Unknown lifecycle phase "mvn" 解决办法
- Maven报错 解决方案。ERROR: No goals have been specified for this build. You must specify a valid lifecycle
- Maven异常_06_ Unknown lifecycle phase "mvn"
- maven 系列- Unknown lifecycle phase "mvn".