###包引入说明
####1. JobTracker,JobClient,TaskTracker都需要引入的包
#####1.1 lts-core
```java
com.github.ltsopensource
lts-core
${lts版本号}
```
#####1.2 zk客户端包
二选一, 通过 addConfig("zk.client", "可选值: curator, zkclient, lts") 设置, 如果用lts,可以不用引入包
`zkclient`
```java
com.github.sgroschupf
zkclient
0.1
```
`curator`
```java
org.apache.curator
curator-recipes
2.9.1
```
`zookeeper包`
```java
org.apache.zookeeper
zookeeper
${zk.version}
org.jboss.netty
netty
log4j
log4j
```
#####1.3 通讯包
netty或者mina, 二选一, 通过 addConfig("lts.remoting", "可选值: netty, mina") 设置
`netty`
```java
io.netty
netty-all
4.0.20.Final
```
`mina`
```java
org.apache.mina
mina-core
2.0.9
```
#####1.4 json包
fastjson或者jackson, 二选一, 通过 addConfig("lts.json", "可选值: fastjson, jackson") 设置
`fastjson`
```java
com.alibaba
fastjson
1.2.7
```
`jackson`
```java
com.fasterxml.jackson.core
jackson-core
2.6.3
com.fasterxml.jackson.core
jackson-databind
2.6.3
```
#####1.5 日志包
可以选用 slf4j, jcl, log4j, 或者使用jdk原生logger
LoggerFactory.setLoggerAdapter("可选值: slf4j, jcl, log4j, jdk"), 不手动设置, 默认按这个顺序加载
`log4j`
```java
log4j
log4j
1.2.16
```
`slf4j`
```java
org.slf4j
slf4j-api
1.7.5
org.slf4j
slf4j-log4j12
1.7.5
```
`jcl`
```java
commons-logging
commons-logging-api
1.1
```
#####1.6 如果需要spring的话,需要引入lts-spring及spring的相关包
```java
com.github.ltsopensource
lts-spring
${lts版本号}
```
####2. 对于JobTracker端
#####2.1 必须引入的包:
```java
com.github.ltsopensource
lts-jobtracker
${lts版本号}
```
#####2.2 除了基础包之外还需要引入任务队列的包(可以是mongo或者mysql)
`mysql`
```java
mysql
mysql-connector-java
5.1.26
com.alibaba
druid
1.0.14
```
`mongo`
```java
org.mongodb.morphia
morphia
1.0.0-rc1
org.mongodb
mongo-java-driver
3.0.2
```
####3. JobClient需要引入的包
必须引入的包
```java
com.github.ltsopensource
lts-jobclient
${project.version}
```
FailStore存储包(四选一)
通过 jobClient.addConfig("job.fail.store", "可选值: leveldb, mapdb, berkeleydb, rocksdb") 设置
```java
org.mapdb
mapdb
2.0-beta10
org.fusesource.leveldbjni
leveldbjni-all
1.2.7
com.sleepycat
je
5.0.73
org.rocksdb
rocksdbjni
3.10.1
```
####3. TaskTracker需要引入的包
必须引入的包
```java
com.github.ltsopensource
lts-tasktracker
${project.version}
```
FailStore存储包(四选一)
通过 taskTracker.addConfig("job.fail.store", "可选值: leveldb, mapdb, berkeleydb, rocksdb") 设置
```java
org.mapdb
mapdb
2.0-beta10
org.fusesource.leveldbjni
leveldbjni-all
1.2.7
com.sleepycat
je
5.0.73
org.rocksdb
rocksdbjni
3.10.1
```