错误LifecyclePhaseNotFoundException,Unknown lifecycle phase "mvn". You must specify a valid lifecycle
2017-12-30 17:01
543 查看
原因1:
使用Eclipse Maven插件[Run As]-[Maven build]时并未为其指定goal或phase
解决方法:
在pom.xml中找到 节点,在里面加上compile即可
原因2:
使用Eclipse Maven插件[Run As]-[Maven build]时多输入了mvn命令
,因为Eclipse Maven插件已经帮你加上了mvn的命令前缀,再手动输出mvn clean install之类的 命令就会变成mvn mvn clean install
因为Eclipse Maven插件已经帮你加上了mvn的命令前缀,如果加了mvn就会报上面的错误
使用Eclipse Maven插件[Run As]-[Maven build]时并未为其指定goal或phase
解决方法:
在pom.xml中找到 节点,在里面加上compile即可
原因2:
使用Eclipse Maven插件[Run As]-[Maven build]时多输入了mvn命令
,因为Eclipse Maven插件已经帮你加上了mvn的命令前缀,再手动输出mvn clean install之类的 命令就会变成mvn mvn clean install
因为Eclipse Maven插件已经帮你加上了mvn的命令前缀,如果加了mvn就会报上面的错误
相关文章推荐
- 错误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 phase or a goal
- Eclipse集成Maven打包时报错:Unknown lifecycle phase "mvn". You must specify a valid lifecycle phase or a goa
- 异常: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 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>
- 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
- 访问Storm ui界面,出现org.apache.storm.utils.NimbusLeaderNotFoundException: Could not find leader nimbus from seed hosts ["master" "slave1"]. Did you specify a valid list of nimbus hosts for confi的问题解决(图文详解)
- Maven工程报错:No goals have been specified for this build. You must specify a valid lifecycle phase or a
- 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
- 访问Storm ui界面,出现org.apache.storm.utils.NimbusLeaderNotFoundException: Could not find leader nimbus from seed hosts ["master"]. Did you specify a valid list of nimbus hosts for confi的问题解决(图文详解)
- maven工程里编译运行main函数出错:“ You must specify a valid lifecycle phase or a goal in the format”
- No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in t
- Maven异常_06_ Unknown lifecycle phase "mvn"
- LifecyclePhaseNotFoundException(run goal with eclipse)
- Maven报错 解决方案。ERROR: No goals have been specified for this build. You must specify a valid lifecycle