Appium 在使用 mvn -t E:\Workspace\project\pom.xml 报如下错

初痕 · 2017年07月25日 · 最后由 初痕 回复于 2017年07月28日 · 1884 次阅读

使用的是 maven+testng+appium+selenium-server+selenium-java,有高手能看下吗
[WARNING]
[WARNING] Some problems were encountered while building the effective toolchains

[WARNING] Expected root element 'toolchains' but found 'project' (position: STAR
T_TAG seen ...en.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
... @2:98) @ line 2, column 98
[WARNING]
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.177 s
[INFO] Finished at: 2017-07-25T14:44:41+08:00
[INFO] Final Memory: 6M/123M
[INFO] ------------------------------------------------------------------------
[ERROR] No goals have been specified for this build. You must specify a valid li
fecycle phase or a goal in the format : or <plugin-group-id

:[:]:. Available lifecycle phases are
: validate, initialize, generate-sources, process-sources, generate-resources, p
rocess-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-cle
an, 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 swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoGoalSpecifie
dException

共收到 2 条回复 时间 点赞

pom.xml 里有编译步骤?

2楼 已删除
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册