一、打开Eclipse,新建一个maven项目,打开pom.xml

 1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 2     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 3     <modelVersion>4.0.0</modelVersion>
 4 
 5 
 6     <groupId>Cucumber</groupId>
 7     <artifactId>Cucumber</artifactId>
 8     <version>0.0.1-SNAPSHOT</version>
 9     <packaging>jar</packaging>
10 
11     <name>Cucumber</name>
12     <url>http://maven.apache.org</url>
13     <repositories>
14         <repository>
15             <id>sonatype-snapshots</id>
16             <url>https://oss.sonatype.org/content/repositories/snapshots</url>
17             <snapshots>
18                 <enabled>true</enabled>
19             </snapshots>
20         </repository>
21     </repositories>
22 
23     <properties>
24         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
25     </properties>
26 
27     <dependencies>
28         <dependency>
29             <groupId>io.cucumber</groupId>
30             <artifactId>cucumber-junit</artifactId>
31             <version>2.3.1</version>
32             <scope>test</scope>
33         </dependency>
34         <dependency>
35             <groupId>junit</groupId>
36             <artifactId>junit</artifactId>
37             <version>4.12</version>
38             <scope>test</scope>
39         </dependency>
40         <dependency>
41             <groupId>io.cucumber</groupId>
42             <artifactId>cucumber-java</artifactId>
43             <version>2.3.1</version>
44             <scope>test</scope>
45         </dependency>
46         <dependency>
47             <groupId>org.seleniumhq.selenium</groupId>
48             <artifactId>selenium-java</artifactId>
49             <version>3.5.3</version>
50         </dependency>
51     </dependencies>
52 
53 </project>
View Code

相关文章:

  • 2021-11-25
  • 2022-12-23
  • 2022-01-14
  • 2021-08-25
  • 2022-12-23
  • 2021-09-21
  • 2022-12-23
猜你喜欢
  • 2021-06-10
  • 2022-12-23
  • 2021-12-02
  • 2022-12-23
  • 2022-01-13
  • 2022-12-23
相关资源
相似解决方案