File tree Expand file tree Collapse file tree 2 files changed +41
-10
lines changed
Expand file tree Collapse file tree 2 files changed +41
-10
lines changed Original file line number Diff line number Diff line change 77
88## 安装
99
10- ### maven 方式
10+ ### maven 方式(3.0.0 版本 maven 库里还没有,请直接用 jar 的方式)
1111将下边的依赖条件放到你项目的 maven pom.xml 文件里。
1212
1313```
3939 <artifactId>slf4j-api</artifactId>
4040 <version>1.7.5</version>
4141 </dependency>
42+
43+ <dependency>
44+ <groupId>org.slf4j</groupId>
45+ <artifactId>slf4j-log4j12</artifactId>
46+ <version>1.7.5</version>
47+ </dependency>
48+ <dependency>
49+ <groupId>log4j</groupId>
50+ <artifactId>log4j</artifactId>
51+ <version>1.2.16</version>
52+ </dependency>
53+ <dependency>
54+ <groupId>junit</groupId>
55+ <artifactId>junit</artifactId>
56+ <version>4.11</version>
57+ <scope>test</scope>
58+ </dependency>
59+ <dependency>
60+ <groupId>com.google.guava</groupId>
61+ <artifactId>guava</artifactId>
62+ <version>17.0</version>
63+ </dependency>
64+
65+ <dependency>
66+ <groupId>com.squareup.okhttp</groupId>
67+ <artifactId>mockwebserver</artifactId>
68+ <version>1.5.4</version>
69+ <scope>test</scope>
70+ </dependency>
71+
4272```
4373
4474如果不使用 Maven 构建项目,则项目 libs/ 目录下有依赖的 jar 可复制到你的项目里去。
Original file line number Diff line number Diff line change 1- <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" >
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" >
23 <modelVersion >4.0.0</modelVersion >
34
45 <groupId >cn.jpush.api</groupId >
4243 <version >2.2.4</version >
4344 </dependency >
4445 <dependency >
45- <groupId >junit</groupId >
46- <artifactId >junit</artifactId >
47- <version >4.11</version >
48- <scope >test</scope >
46+ <groupId >org.slf4j</groupId >
47+ <artifactId >slf4j-api</artifactId >
48+ <version >1.7.5</version >
4949 </dependency >
5050 <dependency >
5151 <groupId >org.slf4j</groupId >
52- <artifactId >slf4j-api </artifactId >
52+ <artifactId >slf4j-log4j12 </artifactId >
5353 <version >1.7.5</version >
5454 </dependency >
5555 <dependency >
5858 <version >1.2.16</version >
5959 </dependency >
6060 <dependency >
61- <groupId >org.slf4j</groupId >
62- <artifactId >slf4j-log4j12</artifactId >
63- <version >1.7.5</version >
61+ <groupId >junit</groupId >
62+ <artifactId >junit</artifactId >
63+ <version >4.11</version >
64+ <scope >test</scope >
6465 </dependency >
6566 <dependency >
6667 <groupId >com.google.guava</groupId >
You can’t perform that action at this time.
0 commit comments