【发布时间】:2016-11-28 14:02:52
【问题描述】:
我正在使用 Appium 测试自动化框架,我想将它上传到 AWS Device Farm。我已经更新了 pom.xml 和 zip.xml 文件。当我运行命令 'mvn clean package --DskipTests=true' 我得到以下错误。
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building 1 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.109 s
[INFO] Finished at: 2016-07-25T14:54:43+05:30
[INFO] Final Memory: 7M/77M
[INFO] ------------------------------------------------------------------------
[ERROR] Unknown lifecycle phase "?-DskipTests=true". You must specify a valid li
fecycle 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, 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]
谁能给我一个解决方案?以前我得到 mvn 不是内部或外部命令,所以我单独安装了 maven.. 请帮助
【问题讨论】:
-
hmmmmm in meven as I remember you must type command at last place 所以你的标志应该优先于它相关的命令
-
我没听懂你..
-
你必须在格式中指定一个有效的生命周期阶段或目标 意思是:--DskipTests=true不是一个目标(meven的命令) 对于 maven 这是一个标志,你应该把标志放在目标之前:)
-
但此命令在 AWS Device Farm 文档中给出,我遵循相同的程序
-
所以你可以争论更多:查看 mvn 手册页:'mvn [options] [
] [ ]' 和错误消息:Unknown生命周期阶段“?-DskipTests=true”
标签: testing intellij-idea automation appium aws-device-farm