gpt4 book ai didi

java - Maven 包时 Amazon Device Farm 的未知生命周期阶段 "–-DskipTests=true"

转载 作者:行者123 更新时间:2023-11-29 04:40:58 26 4
gpt4 key购买 nike

我正在尝试从 AWS Github 打包 sample-appium-test 代码。 https://github.com/awslabs/aws-device-farm-appium-tests-for-sample-app

根据document亚马逊,我必须用这个命令打包它:

mvn clean package --DskipTests=true

之后,我得到了这个错误

[INFO] BUILD FAILURE

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

[INFO] Total time: 0.214 s

[INFO] Finished at: 2016-08-30T09:02:33+08:00

[INFO] Final Memory: 7M/155M

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

[ERROR] Unknown lifecycle phase "–-DskipTests=true". You must specify a valid lifecycle phase or a goal in the format : or :[:]:. 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.

我应该怎么做才能解决这个问题?谢谢你

最佳答案

尝试 mvn clean package –DskipTests=true,使用单个“-”。

我相信它在 OS X 上是一个“-”,在 Linux 上是“--”。

关于java - Maven 包时 Amazon Device Farm 的未知生命周期阶段 "–-DskipTests=true",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39217397/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com