为了账号安全,请及时绑定邮箱和手机立即绑定

pom.xml出错?

D:\IDE\Code\Maven01>mvn -compile

[INFO] Scanning for projects...

[WARNING]

[WARNING] Some problems were encountered while building the effective model for com.imooc.maven01:maven01-model:jar:0.0.1*-SNAPSHOT

[WARNING] 'version' must not contain any of these characters \/:"<>|?* but found * @ line 8, column 11

[WARNING]

[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.

[WARNING]

[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.

[WARNING]

[INFO]

[INFO] ------------------------------------------------------------------------

[INFO] Building maven01-model 0.0.1*-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 0.086 s

[INFO] Finished at: 2016-04-28T09:59:46+08:00

[INFO] Final Memory: 6M/77M

[INFO] ------------------------------------------------------------------------

[ERROR] Unknown lifecycle phase "ompile". 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]

[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


正在回答

2 回答

0.0.1*-SNAPSHOT,version上用了通配符,去掉*

[WARNING] 'version' must not contain any of these characters \/:"<>|?* but found * @ line 8, column 11

0 回复 有任何疑惑可以回复我~

 Unknown lifecycle phase "ompile",是不是写错了,代码贴看看

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
项目管理利器——maven
  • 参与学习       173090    人
  • 解答问题       742    个

使用maven来构建和管理Java项目,从环境配置,到maven核心知识

进入课程

pom.xml出错?

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信