我已经在我的 POM 文件中添加了这个。
<dependency>
<groupId>com.aventstack</groupId>
<artifactId>extentreports</artifactId>
<version>3.0.5</version>
</dependency>
它不适用于我的项目。
尝试在 pom.xml 中更改此字符串:
<properties>
<selenium.version>3.0.5</selenium.version>
</properties>
<dependencies>
<dependency>
<groupId>com.aventstack</groupId>
<artifactId>selenium-java</artifactId>
<version>${selenium.version}</version>
</dependency>
</dependencies>
您的字符串<artifactId>extentreports</artifactId>
可能应该在另一个块中更早地写入 - 它不是依赖项,它是您的项目的名称。