我正在尝试为自动化项目创建一个Maven项目。我复制了硒,睾丸和其他杂质。我在pom文件中看到以下错误。
从https://repo.maven.apache.org/maven2传输org.apache.maven.plugins:maven-surefire-plugin:pom:2.22.0的失败被缓存在 本地存储库,直到中心的更新间隔过去或强制执行更新后,才会重新尝试解析。原始错误:可以 不从/向中央(https://repo.maven.apache.org/maven2)传输工件org.apache.maven.plugins:maven-surefire-plugin:pom:2.22.0: 连接重置
我的POM文件如下:
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.chevron.app</groupId>
<artifactId>AEMSitesAutomation</artifactId>
<packaging>jar</packaging>
<version>1.0</version>
<name>AEMSitesAutomation</name>
<url>http://maven.apache.org</url>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.0</version>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>testng.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.13.0</version>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.8</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>