Maven如何添加新dependency

以 junit-4.11.jar为例。

1.打开http://mvnrepository.com网站

2.搜索junit,找到版本4.11

3.显示如下:

<dependency>

<groupId>junit</groupId>

<artifactId>junit</artifactId>

<version>4.11</version>

<scope>test</scope>

</dependency>

你可能感兴趣的:(dependency)