pom.xml 14 KB

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