我正试图将带有依赖项的zip加载到带有Selenium的AWS device farmforjavatestng项目。
每当我将.zip上传到AWS设备场时,我都会收到一条消息:“处理您的文件时出现问题。在中找不到依赖项jars目录
根
你的测试包。请解压缩测试包,验证依赖项jars目录是否在包的根目录中,然后重试。“
我用“tree”检查了目标文件夹中的树,得到:
.
âââ TestngCucumberBoilerPlate-0.0.1-SNAPSHOT-tests.jar
âââ TestngCucumberBoilerPlate-0.0.1-SNAPSHOT.jar
âââ archive-tmp
âââ classes
âââ dependency-jars
â  âââ aether-api-1.7.jar
â  âââ aether-impl-1.7.jar
â  âââ aether-spi-1.7.jar
â  âââ aether-util-1.7.jar
â  âââ animal-sniffer-annotations-1.14.jar
â  âââ ant-1.10.3.jar
â  âââ ant-launcher-1.10.3.jar
â  âââ asm-6.2.1.jar
â  âââ aspectjweaver-1.9.1.jar
â  âââ bridj-0.6.2.jar
â  âââ bsh-2.0b6.jar
â  âââ byte-buddy-1.8.15.jar
â  âââ cglib-3.2.8.jar
â  âââ checker-compat-qual-2.0.0.jar
â  âââ commons-beanutils-1.9.2.jar
â  âââ commons-cli-1.2.jar
â  âââ commons-codec-1.10.jar
â  âââ commons-collections-3.2.2.jar
â  âââ commons-compress-1.18.jar
â  âââ commons-digester-1.8.1.jar
â  âââ commons-exec-1.3.jar
â  âââ commons-io-2.6.jar
â  âââ commons-lang3-3.8.jar
â  âââ commons-logging-1.2.jar
â  âââ commons-validator-1.6.jar
â  âââ cucumber-core-1.2.5.jar
â  âââ cucumber-html-0.2.3.jar
â  âââ cucumber-java-1.2.5.jar
â  âââ cucumber-jvm-deps-1.0.5.jar
â  âââ cucumber-testng-1.2.5.jar
â  âââ error_prone_annotations-2.1.3.jar
â  âââ gherkin-2.12.2.jar
â  âââ gson-2.8.5.jar
â  âââ guava-25.0-jre.jar
â  âââ httpclient-4.5.6.jar
â  âââ httpcore-4.4.10.jar
â  âââ j2objc-annotations-1.1.jar
â  âââ java-client-7.0.0.jar
â  âââ jcommander-1.72.jar
â  âââ jintellitype-1.3.7.jar
â  âââ jsr305-1.3.9.jar
â  âââ jxgrabkey-1.0.jar
â  âââ maven-aether-provider-3.0.jar
â  âââ maven-archiver-3.3.0.jar
â  âââ maven-artifact-3.0.jar
â  âââ maven-core-3.0.jar
â  âââ maven-jar-plugin-3.1.1.jar
â  âââ maven-model-3.0.jar
â  âââ maven-model-builder-3.0.jar
â  âââ maven-plugin-api-3.0.jar
â  âââ maven-repository-metadata-3.0.jar
â  âââ maven-settings-3.0.jar
â  âââ maven-settings-builder-3.0.jar
â  âââ maven-shared-utils-3.2.1.jar
â  âââ okhttp-3.11.0.jar
â  âââ okio-1.14.0.jar
â  âââ plexus-archiver-3.7.0.jar
â  âââ plexus-cipher-1.4.jar
â  âââ plexus-classworlds-2.2.3.jar
â  âââ plexus-component-annotations-1.5.5.jar
â  âââ plexus-interpolation-1.14.jar
â  âââ plexus-io-3.1.0.jar
â  âââ plexus-sec-dispatcher-1.3.jar
â  âââ plexus-utils-3.1.0.jar
â  âââ selenium-api-3.141.59.jar
â  âââ selenium-chrome-driver-3.141.59.jar
â  âââ selenium-edge-driver-3.141.59.jar
â  âââ selenium-firefox-driver-3.141.59.jar
â  âââ selenium-ie-driver-3.141.59.jar
â  âââ selenium-java-3.141.59.jar
â  âââ selenium-opera-driver-3.141.59.jar
â  âââ selenium-remote-driver-3.141.59.jar
â  âââ selenium-safari-driver-3.141.59.jar
â  âââ selenium-support-3.141.59.jar
â  âââ sikulixapi-1.1.0.jar
â  âââ sikulixlibsmac-1.1.0.jar
â  âââ sisu-guice-2.1.7-noaop.jar
â  âââ sisu-inject-bean-1.4.2.jar
â  âââ sisu-inject-plexus-1.4.2.jar
â  âââ slf4j-api-1.7.25.jar
â  âââ snappy-0.4.jar
â  âââ spring-aop-5.1.0.RELEASE.jar
â  âââ spring-beans-5.1.0.RELEASE.jar
â  âââ spring-context-5.1.0.RELEASE.jar
â  âââ spring-core-5.1.0.RELEASE.jar
â  âââ spring-expression-5.1.0.RELEASE.jar
â  âââ spring-jcl-5.1.0.RELEASE.jar
â  âââ swing-layout-1.0.3.jar
â  âââ testng-6.14.3.jar
â  âââ xz-1.8.jar
âââ generated-test-sources
â  âââ test-annotations
âââ maven-archiver
â  âââ pom.properties
âââ maven-status
â  âââ maven-compiler-plugin
â  âââ compile
â  â  âââ default-compile
â  â  âââ inputFiles.lst
â  âââ testCompile
â  âââ default-testCompile
â  âââ createdFiles.lst
â  âââ inputFiles.lst
âââ test-classes
â  âââ Locators
â  â  âââ AdvisorAEPOhio.class
â  â  âââ AdvisorBlueprint.class
â  â  âââ AdvisorDTE.class
â  â  âââ DemandResponseCardBlueprint.class
â  â  âââ DemandResponseNotificationBlueprint.class
â  â  âââ DevicesBlueprint.class
â  â  âââ HamburgerAEPOhio.class
â  â  âââ HamburgerBlueprint.class
â  â  âââ HamburgerDTE.class
â  â  âââ HomeAEPOhio.class
â  â  âââ HomeBlueprint.class
â  â  âââ HomeCardsAEPOhio.class
â  â  âââ HomeCardsBlueprint.class
â  â  âââ HomeCardsDTE.class
â  â  âââ HomeDTE.class
â  â  âââ LightBlueprint.class
â  â  âââ LoginAEPOhio.class
â  â  âââ LoginBlueprint.class
â  â  âââ LoginDTE.class
â  â  âââ MyPlanBlueprint.class
â  â  âââ MyPlanDTE.class
â  â  âââ ParentDeviceBlueprint.class
â  â  âââ PlugBlueprint.class
â  â  âââ PortalBlueprint.class
â  â  âââ PortalDemandResponseBlueprint.class
â  â  âââ PushApp.class
â  â  âââ TstatBlueprint.class
â  âââ config
â  â  âââ config.properties
â  âââ drivers
â  â  âââ chromedriver
â  âââ features
â  â  âââ DemandResponse.feature
â  â  âââ EnergyTabNavigation.feature
â  â  âââ EnergyUseComparison.feature
â  â  âââ Hamburger.feature
â  â  âââ HomeAdvisor.feature
â  â  âââ Light.feature
â  â  âââ PayModel.feature
â  â  âââ Switch.feature
â  â  âââ Tstat.feature
â  â  âââ loginSingle.feature
â  âââ main
â  â  âââ CucumberRunner.class
â  âââ samplefeatures
â  â  âââ loginMulti.feature
â  âââ stepdefinition
â  â  âââ AdvisorPage.class
â  â  âââ DemandResponseCard$1.class
â  â  âââ DemandResponseCard.class
â  â  âââ DevicesPage.class
â  â  âââ HamburgerPage.class
â  â  âââ HomeCardsPage.class
â  â  âââ HomePage.class
â  â  âââ LightPage.class
â  â  âââ LoginPage.class
â  â  âââ MyPlanPage.class
â  â  âââ ParentDevicePage.class
â  â  âââ PlugPage.class
â  â  âââ PortalDemandResponsePage.class
â  â  âââ PortalWebPage.class
â  â  âââ PushAppPage.class
â  â  âââ TstatPage.class
â  âââ utilities
â  âââ AppiumServer.class
â  âââ ByWrapper.class
â  âââ ByWrapperPortal.class
â  âââ DemandResponse.class
â  âââ MyUtils.class
â  âââ TstatDemandResponse.class
âââ zip-with-dependencies.zip
每当我将带有依赖项的zip移动到另一个目录并尝试相同的命令时,我得到:
.
âââ TestngCucumberBoilerPlate-0.0.1-SNAPSHOT-tests.jar
âââ TestngCucumberBoilerPlate-0.0.1-SNAPSHOT.jar
âââ zip-with-dependencies.zip
这就是我最初运行mvn clean package-DskipTests=true构建.zip时得到的结果
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building TestngCucumberBoilerPlate 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ TestngCucumberBoilerPlate ---
[INFO] Deleting /Users/cbellard/Documents/PowerleyAppiumCucumber/target
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ TestngCucumberBoilerPlate ---
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /Users/cbellard/Documents/PowerleyAppiumCucumber/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ TestngCucumberBoilerPlate ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ TestngCucumberBoilerPlate ---
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 13 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) @ TestngCucumberBoilerPlate ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 49 source files to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/test-classes
[INFO] /Users/cbellard/Documents/PowerleyAppiumCucumber/src/test/java/main/CucumberRunner.java: Some input files use unchecked or unsafe operations.
[INFO] /Users/cbellard/Documents/PowerleyAppiumCucumber/src/test/java/main/CucumberRunner.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ TestngCucumberBoilerPlate ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ TestngCucumberBoilerPlate ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: /Users/cbellard/Documents/PowerleyAppiumCucumber/target/TestngCucumberBoilerPlate-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] --- maven-jar-plugin:2.6:test-jar (default) @ TestngCucumberBoilerPlate ---
[INFO] Building jar: /Users/cbellard/Documents/PowerleyAppiumCucumber/target/TestngCucumberBoilerPlate-0.0.1-SNAPSHOT-tests.jar
[INFO]
[INFO] --- maven-assembly-plugin:2.5.4:single (default) @ TestngCucumberBoilerPlate ---
[INFO] Reading assembly descriptor: src/main/assembly/zip.xml
[INFO] Building zip: /Users/cbellard/Documents/PowerleyAppiumCucumber/target/zip-with-dependencies.zip
[INFO]
[INFO] --- maven-dependency-plugin:2.10:copy-dependencies (copy-dependencies) @ TestngCucumberBoilerPlate ---
[INFO] Copying java-client-7.0.0.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/java-client-7.0.0.jar
[INFO] Copying byte-buddy-1.8.15.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/byte-buddy-1.8.15.jar
[INFO] Copying maven-settings-builder-3.0.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/maven-settings-builder-3.0.jar
[INFO] Copying httpcore-4.4.10.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/httpcore-4.4.10.jar
[INFO] Copying aether-util-1.7.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/aether-util-1.7.jar
[INFO] Copying cglib-3.2.8.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/cglib-3.2.8.jar
[INFO] Copying maven-core-3.0.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/maven-core-3.0.jar
[INFO] Copying maven-model-3.0.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/maven-model-3.0.jar
[INFO] Copying commons-validator-1.6.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/commons-validator-1.6.jar
[INFO] Copying animal-sniffer-annotations-1.14.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/animal-sniffer-annotations-1.14.jar
[INFO] Copying maven-artifact-3.0.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/maven-artifact-3.0.jar
[INFO] Copying jcommander-1.72.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/jcommander-1.72.jar
[INFO] Copying selenium-chrome-driver-3.141.59.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/selenium-chrome-driver-3.141.59.jar
[INFO] Copying selenium-opera-driver-3.141.59.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/selenium-opera-driver-3.141.59.jar
[INFO] Copying commons-io-2.6.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/commons-io-2.6.jar
[INFO] Copying maven-model-builder-3.0.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/maven-model-builder-3.0.jar
[INFO] Copying plexus-component-annotations-1.5.5.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/plexus-component-annotations-1.5.5.jar
[INFO] Copying maven-jar-plugin-3.1.1.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/maven-jar-plugin-3.1.1.jar
[INFO] Copying maven-repository-metadata-3.0.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/maven-repository-metadata-3.0.jar
[INFO] Copying ant-launcher-1.10.3.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/ant-launcher-1.10.3.jar
[INFO] Copying okio-1.14.0.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/okio-1.14.0.jar
[INFO] Copying spring-beans-5.1.0.RELEASE.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/spring-beans-5.1.0.RELEASE.jar
[INFO] Copying ant-1.10.3.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/ant-1.10.3.jar
[INFO] Copying commons-beanutils-1.9.2.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/commons-beanutils-1.9.2.jar
[INFO] Copying gson-2.8.5.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/gson-2.8.5.jar
[INFO] Copying selenium-support-3.141.59.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/selenium-support-3.141.59.jar
[INFO] Copying aether-api-1.7.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/aether-api-1.7.jar
[INFO] Copying plexus-archiver-3.7.0.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/plexus-archiver-3.7.0.jar
[INFO] Copying bridj-0.6.2.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/bridj-0.6.2.jar
[INFO] Copying commons-logging-1.2.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/commons-logging-1.2.jar
[INFO] Copying jxgrabkey-1.0.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/jxgrabkey-1.0.jar
[INFO] Copying sisu-guice-2.1.7-noaop.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/sisu-guice-2.1.7-noaop.jar
[INFO] Copying plexus-utils-3.1.0.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/plexus-utils-3.1.0.jar
[INFO] Copying cucumber-html-0.2.3.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/cucumber-html-0.2.3.jar
[INFO] Copying plexus-io-3.1.0.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/plexus-io-3.1.0.jar
[INFO] Copying asm-6.2.1.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/asm-6.2.1.jar
[INFO] Copying bsh-2.0b6.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/bsh-2.0b6.jar
[INFO] Copying plexus-cipher-1.4.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/plexus-cipher-1.4.jar
[INFO] Copying maven-shared-utils-3.2.1.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/maven-shared-utils-3.2.1.jar
[INFO] Copying okhttp-3.11.0.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/okhttp-3.11.0.jar
[INFO] Copying commons-lang3-3.8.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/commons-lang3-3.8.jar
[INFO] Copying maven-archiver-3.3.0.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/maven-archiver-3.3.0.jar
[INFO] Copying gherkin-2.12.2.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/gherkin-2.12.2.jar
[INFO] Copying snappy-0.4.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/snappy-0.4.jar
[INFO] Copying selenium-remote-driver-3.141.59.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/selenium-remote-driver-3.141.59.jar
[INFO] Copying maven-aether-provider-3.0.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/maven-aether-provider-3.0.jar
[INFO] Copying spring-jcl-5.1.0.RELEASE.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/spring-jcl-5.1.0.RELEASE.jar
[INFO] Copying jsr305-1.3.9.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/jsr305-1.3.9.jar
[INFO] Copying maven-settings-3.0.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/maven-settings-3.0.jar
[INFO] Copying checker-compat-qual-2.0.0.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/checker-compat-qual-2.0.0.jar
[INFO] Copying maven-plugin-api-3.0.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/maven-plugin-api-3.0.jar
[INFO] Copying sisu-inject-bean-1.4.2.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/sisu-inject-bean-1.4.2.jar
[INFO] Copying selenium-ie-driver-3.141.59.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/selenium-ie-driver-3.141.59.jar
[INFO] Copying testng-6.14.3.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/testng-6.14.3.jar
[INFO] Copying sisu-inject-plexus-1.4.2.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/sisu-inject-plexus-1.4.2.jar
[INFO] Copying plexus-interpolation-1.14.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/plexus-interpolation-1.14.jar
[INFO] Copying j2objc-annotations-1.1.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/j2objc-annotations-1.1.jar
[INFO] Copying commons-compress-1.18.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/commons-compress-1.18.jar
[INFO] Copying sikulixlibsmac-1.1.0.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/sikulixlibsmac-1.1.0.jar
[INFO] Copying cucumber-jvm-deps-1.0.5.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/cucumber-jvm-deps-1.0.5.jar
[INFO] Copying selenium-api-3.141.59.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/selenium-api-3.141.59.jar
[INFO] Copying spring-core-5.1.0.RELEASE.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/spring-core-5.1.0.RELEASE.jar
[INFO] Copying selenium-java-3.141.59.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/selenium-java-3.141.59.jar
[INFO] Copying selenium-edge-driver-3.141.59.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/selenium-edge-driver-3.141.59.jar
[INFO] Copying commons-exec-1.3.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/commons-exec-1.3.jar
[INFO] Copying plexus-classworlds-2.2.3.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/plexus-classworlds-2.2.3.jar
[INFO] Copying commons-cli-1.2.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/commons-cli-1.2.jar
[INFO] Copying commons-codec-1.10.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/commons-codec-1.10.jar
[INFO] Copying spring-aop-5.1.0.RELEASE.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/spring-aop-5.1.0.RELEASE.jar
[INFO] Copying error_prone_annotations-2.1.3.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/error_prone_annotations-2.1.3.jar
[INFO] Copying guava-25.0-jre.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/guava-25.0-jre.jar
[INFO] Copying cucumber-java-1.2.5.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/cucumber-java-1.2.5.jar
[INFO] Copying aether-spi-1.7.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/aether-spi-1.7.jar
[INFO] Copying plexus-sec-dispatcher-1.3.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/plexus-sec-dispatcher-1.3.jar
[INFO] Copying jintellitype-1.3.7.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/jintellitype-1.3.7.jar
[INFO] Copying cucumber-testng-1.2.5.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/cucumber-testng-1.2.5.jar
[INFO] Copying spring-expression-5.1.0.RELEASE.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/spring-expression-5.1.0.RELEASE.jar
[INFO] Copying commons-digester-1.8.1.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/commons-digester-1.8.1.jar
[INFO] Copying commons-collections-3.2.2.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/commons-collections-3.2.2.jar
[INFO] Copying cucumber-core-1.2.5.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/cucumber-core-1.2.5.jar
[INFO] Copying xz-1.8.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/xz-1.8.jar
[INFO] Copying selenium-firefox-driver-3.141.59.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/selenium-firefox-driver-3.141.59.jar
[INFO] Copying slf4j-api-1.7.25.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/slf4j-api-1.7.25.jar
[INFO] Copying swing-layout-1.0.3.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/swing-layout-1.0.3.jar
[INFO] Copying httpclient-4.5.6.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/httpclient-4.5.6.jar
[INFO] Copying sikulixapi-1.1.0.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/sikulixapi-1.1.0.jar
[INFO] Copying selenium-safari-driver-3.141.59.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/selenium-safari-driver-3.141.59.jar
[INFO] Copying spring-context-5.1.0.RELEASE.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/spring-context-5.1.0.RELEASE.jar
[INFO] Copying aether-impl-1.7.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/aether-impl-1.7.jar
[INFO] Copying aspectjweaver-1.9.1.jar to /Users/cbellard/Documents/PowerleyAppiumCucumber/target/dependency-jars/aspectjweaver-1.9.1.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.540 s
[INFO] Finished at: 2019-02-08T14:51:24-05:00
[INFO] Final Memory: 22M/90M
[INFO] ------------------------------------------------------------------------
这是我的pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<repositories>
<repository>
<id>TestNG-Cucumber</id>
<name>testng-cucumber</name>
<url>https://github.com/igniteram</url>
</repository>
</repositories>
<packaging>jar</packaging>
<modelVersion>4.0.0</modelVersion>
<groupId>TestngCucumber</groupId>
<artifactId>TestngCucumberBoilerPlate</artifactId>
<version>0.0.1-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.141.59</version>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-java</artifactId>
<version>1.2.5</version>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-testng</artifactId>
<version>1.2.5</version>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.14.3</version>
</dependency>
<dependency>
<groupId>io.appium</groupId>
<artifactId>java-client</artifactId>
<version>7.0.0</version>
</dependency>
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.1.1</version>
<type>maven-plugin</type>
</dependency>
<!-- Added for comparing screenshots -->
<!-- https://mvnrepository.com/artifact/com.sikulix/sikulixapi -->
<dependency>
<groupId>com.sikulix</groupId>
<artifactId>sikulixapi</artifactId>
<version>1.1.0</version>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<testResources>
<testResource>
<directory>src/test/resources</directory>
<filtering>true</filtering>
</testResource>
</testResources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.5.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<finalName>zip-with-dependencies</finalName>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
<descriptor>src/main/assembly/zip.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.10</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/dependency-jars/</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.7</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-filtering</artifactId>
<version>1.3</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>testng.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</build>
</project>