pom.xml
<?xml version="1.0" encoding="UTF-8"?> <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"> <modelVersion>4.0.0</modelVersion>введите сюда код <groupId>appcenter</groupId> <artifactId>appcenter</artifactId> <version>1.0-SNAPSHOT</version> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> </properties> <repositories> <repository> <id>jcenter</id> <url>https://jcenter.bintray.com/</url> </repository> </repositories> <dependencies> <dependency> <groupId>com.microsoft.appcenter</groupId> <artifactId>appium-test-extension</artifactId> <version>1.5</version> </dependency> </dependencies> <profiles> <profile> <id>prepare-for-upload</id> <build> <plugins> <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}/upload/dependency-jars/</outputDirectory> <useRepositoryLayout>true</useRepositoryLayout> <copyPom>true</copyPom> <addParentPoms>true</addParentPoms> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-help-plugin</artifactId> <version>2.2</version> <executions> <execution> <id>generate-pom</id> <phase>package</phase> <goals> <goal>effective-pom</goal> </goals> <configuration> <output>${project.build.directory}/upload/pom.xml</output> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>2.7</version> <configuration> <encoding>${project.build.sourceEncoding}</encoding> </configuration> <executions> <execution> <id>copy-testclasses</id> <phase>package</phase> <goals> <goal>testResources</goal> </goals> <configuration> <outputDirectory>${project.build.directory}/upload/test-classes</outputDirectory> <resources> <resource> <directory> ${project.build.testOutputDirectory} </directory> </resource> </resources> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> </project>
After running the test, the following error appears:
[INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building run-test 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ run-test --- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, ie build is platform dependent! [INFO] skip non existing resourceDirectory src/main/resources [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ run-test --- [INFO] No sources to compile [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ run-test --- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, ie build is platform dependent! [INFO] skip non existing resourceDirectory src/test/resources [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ run-test --- [INFO] No sources to compile [INFO] [INFO] --- maven-surefire-plugin:2.20:test (default-test) @ run-test --- [INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ run-test --- [WARNING] JAR will be empty - no content was marked for inclusion! [INFO] Building jar: target/run-test-1.0-SNAPSHOT.jar [INFO] [INFO] --- maven-failsafe-plugin:2.20:integration-test (default) @ run-test --- [WARNING] File encoding has not been set, using platform encoding UTF-8, ie build is platform dependent! The file encoding for reports output files should be provided by the POM property ${project.reporting.outputEncoding}. [INFO] [INFO] --- maven-failsafe-plugin:2.20:verify (default) @ run-test --- [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.115 s [INFO] Finished at: 2019-03-15T09:40:25+01:00 [INFO] Final Memory: 16M/300M [INFO] ------------------------------------------------------------------------