当我尝试上传我的 Maven 项目时,出现类似
的异常There was a problem processing your file. We could not find a *-tests.jar file in the root of your test package. Please unzip your test package, verify that at least one *-tests.jar file is in the root of your package, and try again.
但我已经创建了我的 Clubcard-1.0-SNAPSHOT-tests.jar 并存储在目标文件夹下。
还尝试在根文件夹下找到 jar 文件,但仍然遇到相同的问题
最佳答案
您上传了错误的 zip 文件。您是否刚刚尝试上传您的 MAVEN 项目?
不,它应该是一个名为 zip-with-dependencies.zip
的 zip 文件下target
你的 Maven 项目的文件夹。例如,\Desktop\Appium-myApp\target\zip-with-dependencies.zip
.
如果您没有找到您的zip-with-dependencies.zip
,你必须使用maven命令打包
- 阅读 the document of Amazon Device Farm ,你必须先设置你的pom.xml
-
cd
到终端或命令提示符中的 maven 目录 -
mvn clean package –-DskipTests=true
打包成*-tests.jar
和zip-with-dependencies.zip
最后,上传这个zip-with-dependencies.zip
到 Amazon Device Farm。
关于java - 无法上传 aws 设备场中的项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39015656/