无法在 aws device farm 中上传项目
unable to upload project in aws device farm
当我尝试上传我的 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 文件定位到根文件夹下,但仍然遇到同样的问题
您是否按照 TestNG or for JUnit 的 AWS Device Farm 说明打包了您的测试?请确保您 运行 mvn clean package –-DskipTests=true
构建上传的包。
您上传了错误的 zip 文件。您刚刚尝试上传您的 MAVEN 项目吗?
不,它应该是一个名为 zip-with-dependencies.zip
的 zip 文件,位于您的 Maven 项目的 target
文件夹下。例如,\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。
当我尝试上传我的 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 文件定位到根文件夹下,但仍然遇到同样的问题
您是否按照 TestNG or for JUnit 的 AWS Device Farm 说明打包了您的测试?请确保您 运行 mvn clean package –-DskipTests=true
构建上传的包。
您上传了错误的 zip 文件。您刚刚尝试上传您的 MAVEN 项目吗?
不,它应该是一个名为 zip-with-dependencies.zip
的 zip 文件,位于您的 Maven 项目的 target
文件夹下。例如,\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。