pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>tests</groupId>
  6. <artifactId>tests</artifactId>
  7. <version>1.0-SNAPSHOT</version>
  8. <packaging>war</packaging>
  9. <name>tests Maven Webapp</name>
  10. <!-- FIXME change it to the project's website -->
  11. <url>http://maven.apache.org</url>
  12. <properties>
  13. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  14. <!-- MyBatis Generator -->
  15. <!-- Java接口和实体类 -->
  16. <targetJavaProject>${basedir}/src/main/java</targetJavaProject>
  17. <targetMapperPackage>com.yc.education.mapper</targetMapperPackage>
  18. <targetModelPackage>com.yc.education.model</targetModelPackage>
  19. <!-- XML生成路径 -->
  20. <targetResourcesProject>${basedir}/src/main/resources</targetResourcesProject>
  21. <targetXMLPackage>mapper</targetXMLPackage>
  22. <!-- 编译jdk版本 -->
  23. <jdk.version>1.8</jdk.version>
  24. <!-- 依赖版本 -->
  25. <mybatis.version>3.3.1</mybatis.version>
  26. <mapper.version>3.3.6</mapper.version>
  27. <pagehelper.version>4.1.1</pagehelper.version>
  28. <mysql.version>5.1.29</mysql.version>
  29. <spring.version>4.1.2.RELEASE</spring.version>
  30. <mybatis.spring.version>1.2.4</mybatis.spring.version>
  31. </properties>
  32. <dependencies>
  33. <!-- POI表格操作 start -->
  34. <dependency>
  35. <groupId>org.apache.poi</groupId>
  36. <artifactId>poi</artifactId>
  37. <version>3.9</version>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.apache.poi</groupId>
  41. <artifactId>poi-ooxml</artifactId>
  42. <version>3.9</version>
  43. </dependency>
  44. <!-- POI表格操作 end -->
  45. <!-- excel 文件解析 start -->
  46. <dependency>
  47. <groupId>jexcelapi</groupId>
  48. <artifactId>jxl</artifactId>
  49. <version>2.6</version>
  50. </dependency>
  51. <!-- excel 文件解析 end -->
  52. <!-- Spring 定时器 start -->
  53. <dependency>
  54. <groupId>org.quartz-scheduler</groupId>
  55. <artifactId>quartz</artifactId>
  56. <version>1.8.4</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.springframework</groupId>
  60. <artifactId>spring-context-support</artifactId>
  61. <version>3.2.4.RELEASE</version>
  62. </dependency>
  63. <!-- Spring 定时器 end -->
  64. <!-- lucene 全站搜索 start -->
  65. <dependency>
  66. <groupId>org.apache.lucene</groupId>
  67. <artifactId>lucene-core</artifactId>
  68. <version>6.4.1</version>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.apache.lucene</groupId>
  72. <artifactId>lucene-analyzers</artifactId>
  73. <version>3.6.2</version>
  74. </dependency>
  75. <dependency>
  76. <groupId>org.apache.lucene</groupId>
  77. <artifactId>lucene-highlighter</artifactId>
  78. <version>6.4.1</version>
  79. </dependency>
  80. <!-- lucene 全站搜索 end -->
  81. <!-- ajax 上传 start -->
  82. <dependency>
  83. <groupId>commons-fileupload</groupId>
  84. <artifactId>commons-fileupload</artifactId>
  85. <version>1.3.1</version>
  86. </dependency>
  87. <dependency>
  88. <groupId>commons-io</groupId>
  89. <artifactId>commons-io</artifactId>
  90. <version>2.5</version>
  91. </dependency>
  92. <!-- ajax 上传 end -->
  93. <!-- email邮件发送依赖 -->
  94. <dependency>
  95. <groupId>javax.mail</groupId>
  96. <artifactId>mail</artifactId>
  97. <version>1.4.6</version>
  98. </dependency>
  99. <dependency>
  100. <groupId>junit</groupId>
  101. <artifactId>junit</artifactId>
  102. <version>4.11</version>
  103. <scope>test</scope>
  104. </dependency>
  105. <dependency>
  106. <groupId>log4j</groupId>
  107. <artifactId>log4j</artifactId>
  108. <version>1.2.17</version>
  109. </dependency>
  110. <!-- http client -->
  111. <dependency>
  112. <groupId>org.apache.httpcomponents</groupId>
  113. <artifactId>httpclient</artifactId>
  114. <version>4.5.1</version>
  115. </dependency>
  116. <!-- json -->
  117. <dependency>
  118. <groupId>org.json</groupId>
  119. <artifactId>org.json</artifactId>
  120. <version>chargebee-1.0</version>
  121. </dependency>
  122. <!--web -->
  123. <dependency>
  124. <groupId>javax.servlet</groupId>
  125. <artifactId>servlet-api</artifactId>
  126. <version>2.5</version>
  127. <scope>provided</scope>
  128. </dependency>
  129. <dependency>
  130. <groupId>javax.servlet.jsp</groupId>
  131. <artifactId>jsp-api</artifactId>
  132. <version>2.1</version>
  133. <scope>provided</scope>
  134. </dependency>
  135. <dependency>
  136. <groupId>javax.servlet</groupId>
  137. <artifactId>jstl</artifactId>
  138. <version>1.2</version>
  139. </dependency>
  140. <dependency>
  141. <groupId>javax.ws.rs</groupId>
  142. <artifactId>javax.ws.rs-api</artifactId>
  143. <version>2.0</version>
  144. </dependency>
  145. <dependency>
  146. <groupId>javax.websocket</groupId>
  147. <artifactId>javax.websocket-api</artifactId>
  148. <version>1.0</version>
  149. </dependency>
  150. <dependency>
  151. <groupId>javax.annotation</groupId>
  152. <artifactId>javax.annotation-api</artifactId>
  153. <version>1.2</version>
  154. </dependency>
  155. <dependency>
  156. <groupId>javax.transaction</groupId>
  157. <artifactId>javax.transaction-api</artifactId>
  158. <version>1.2</version>
  159. </dependency>
  160. <!--Spring -->
  161. <dependency>
  162. <groupId>org.springframework</groupId>
  163. <artifactId>spring-context</artifactId>
  164. </dependency>
  165. <dependency>
  166. <groupId>org.springframework</groupId>
  167. <artifactId>spring-orm</artifactId>
  168. </dependency>
  169. <dependency>
  170. <groupId>org.springframework</groupId>
  171. <artifactId>spring-oxm</artifactId>
  172. </dependency>
  173. <dependency>
  174. <groupId>org.springframework</groupId>
  175. <artifactId>spring-jdbc</artifactId>
  176. </dependency>
  177. <dependency>
  178. <groupId>org.springframework</groupId>
  179. <artifactId>spring-tx</artifactId>
  180. </dependency>
  181. <dependency>
  182. <groupId>org.springframework</groupId>
  183. <artifactId>spring-web</artifactId>
  184. </dependency>
  185. <dependency>
  186. <groupId>org.springframework</groupId>
  187. <artifactId>spring-webmvc</artifactId>
  188. </dependency>
  189. <dependency>
  190. <groupId>org.springframework</groupId>
  191. <artifactId>spring-aop</artifactId>
  192. </dependency>
  193. <dependency>
  194. <groupId>org.springframework</groupId>
  195. <artifactId>spring-test</artifactId>
  196. </dependency>
  197. <!--spring-oxm依赖 -->
  198. <dependency>
  199. <groupId>org.codehaus.castor</groupId>
  200. <artifactId>castor-xml</artifactId>
  201. <version>1.3.3</version>
  202. </dependency>
  203. <!--spring-json依赖 -->
  204. <dependency>
  205. <groupId>com.fasterxml.jackson.core</groupId>
  206. <artifactId>jackson-databind</artifactId>
  207. <version>2.4.2</version>
  208. </dependency>
  209. <dependency>
  210. <groupId>com.fasterxml.jackson.dataformat</groupId>
  211. <artifactId>jackson-dataformat-xml</artifactId>
  212. <version>2.4.2</version>
  213. </dependency>
  214. <!--spring-aop依赖 -->
  215. <dependency>
  216. <groupId>org.aspectj</groupId>
  217. <artifactId>aspectjweaver</artifactId>
  218. <version>1.8.2</version>
  219. </dependency>
  220. <!--上传文件 -->
  221. <dependency>
  222. <groupId>commons-fileupload</groupId>
  223. <artifactId>commons-fileupload</artifactId>
  224. <version>1.3.1</version>
  225. </dependency>
  226. <!--mysql -->
  227. <dependency>
  228. <groupId>mysql</groupId>
  229. <artifactId>mysql-connector-java</artifactId>
  230. <version>${mysql.version}</version>
  231. </dependency>
  232. <!--druid -->
  233. <dependency>
  234. <groupId>com.alibaba</groupId>
  235. <artifactId>druid</artifactId>
  236. <version>1.0.11</version>
  237. </dependency>
  238. <dependency>
  239. <groupId>net.sf.json-lib</groupId>
  240. <artifactId>json-lib-ext-spring</artifactId>
  241. <version>1.0.2</version>
  242. </dependency>
  243. <!--Mybatis -->
  244. <dependency>
  245. <groupId>org.mybatis</groupId>
  246. <artifactId>mybatis</artifactId>
  247. <version>${mybatis.version}</version>
  248. </dependency>
  249. <dependency>
  250. <groupId>org.mybatis</groupId>
  251. <artifactId>mybatis-spring</artifactId>
  252. <version>${mybatis.spring.version}</version>
  253. </dependency>
  254. <!-- Mybatis Generator -->
  255. <dependency>
  256. <groupId>org.mybatis.generator</groupId>
  257. <artifactId>mybatis-generator-core</artifactId>
  258. <version>1.3.2</version>
  259. <scope>compile</scope>
  260. <optional>true</optional>
  261. </dependency>
  262. <!--分页插件 -->
  263. <dependency>
  264. <groupId>com.github.pagehelper</groupId>
  265. <artifactId>pagehelper</artifactId>
  266. <version>${pagehelper.version}</version>
  267. </dependency>
  268. <!--通用Mapper -->
  269. <dependency>
  270. <groupId>tk.mybatis</groupId>
  271. <artifactId>mapper</artifactId>
  272. <version>${mapper.version}</version>
  273. </dependency>
  274. <dependency>
  275. <groupId>commons-codec</groupId>
  276. <artifactId>commons-codec</artifactId>
  277. <version>1.10</version>
  278. </dependency>
  279. <!-- 二维码 -->
  280. <dependency>
  281. <groupId>com.google.zxing</groupId>
  282. <artifactId>core</artifactId>
  283. <version>3.2.1</version>
  284. </dependency>
  285. <dependency>
  286. <groupId>com.google.zxing</groupId>
  287. <artifactId>javase</artifactId>
  288. <version>3.2.1</version>
  289. </dependency>
  290. <dependency>
  291. <groupId>dom4j</groupId>
  292. <artifactId>dom4j</artifactId>
  293. <version>1.6.1</version>
  294. </dependency>
  295. <dependency>
  296. <groupId>commons-httpclient</groupId>
  297. <artifactId>commons-httpclient</artifactId>
  298. <version>3.1</version>
  299. </dependency>
  300. </dependencies>
  301. <dependencyManagement>
  302. <dependencies>
  303. <dependency>
  304. <groupId>org.springframework</groupId>
  305. <artifactId>spring-framework-bom</artifactId>
  306. <version>${spring.version}</version>
  307. <type>pom</type>
  308. <scope>import</scope>
  309. </dependency>
  310. </dependencies>
  311. </dependencyManagement>
  312. <build>
  313. <resources>
  314. <resource>
  315. <directory>${basedir}/src/main/java</directory>
  316. <includes>
  317. <include>**/*.xml</include>
  318. </includes>
  319. </resource>
  320. <resource>
  321. <directory>${basedir}/src/main/resources</directory>
  322. </resource>
  323. </resources>
  324. <plugins>
  325. <plugin>
  326. <artifactId>maven-compiler-plugin</artifactId>
  327. <configuration>
  328. <source>${jdk.version}</source>
  329. <target>${jdk.version}</target>
  330. </configuration>
  331. </plugin>
  332. <plugin>
  333. <groupId>org.mybatis.generator</groupId>
  334. <artifactId>mybatis-generator-maven-plugin</artifactId>
  335. <version>1.3.2</version>
  336. <configuration>
  337. <configurationFile>${basedir}/src/main/resources/generator/generatorConfig.xml</configurationFile>
  338. <overwrite>true</overwrite>
  339. <verbose>true</verbose>
  340. </configuration>
  341. <dependencies>
  342. <dependency>
  343. <groupId>mysql</groupId>
  344. <artifactId>mysql-connector-java</artifactId>
  345. <version>${mysql.version}</version>
  346. </dependency>
  347. <dependency>
  348. <groupId>tk.mybatis</groupId>
  349. <artifactId>mapper</artifactId>
  350. <version>${mapper.version}</version>
  351. </dependency>
  352. </dependencies>
  353. </plugin>
  354. </plugins>
  355. </build>
  356. </project>