pom.xml 10 KB

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