pom.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395
  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>nanhang</groupId>
  5. <artifactId>nanhang</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.48</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. <!--&lt;!&ndash; https://mvnrepository.com/artifact/javax.activation/javax.activation-api &ndash;&gt;
  98. <dependency>
  99. <groupId>javax.activation</groupId>
  100. <artifactId>javax.activation-api</artifactId>
  101. <version>1.2.0</version>
  102. </dependency>-->
  103. <dependency>
  104. <groupId>junit</groupId>
  105. <artifactId>junit</artifactId>
  106. <version>4.11</version>
  107. <scope>test</scope>
  108. </dependency>
  109. <dependency>
  110. <groupId>log4j</groupId>
  111. <artifactId>log4j</artifactId>
  112. <version>1.2.17</version>
  113. </dependency>
  114. <!-- http client -->
  115. <dependency>
  116. <groupId>org.apache.httpcomponents</groupId>
  117. <artifactId>httpclient</artifactId>
  118. <version>4.5.1</version>
  119. </dependency>
  120. <!-- json -->
  121. <dependency>
  122. <groupId>org.json</groupId>
  123. <artifactId>org.json</artifactId>
  124. <version>chargebee-1.0</version>
  125. </dependency>
  126. <!--web -->
  127. <dependency>
  128. <groupId>javax.servlet</groupId>
  129. <artifactId>servlet-api</artifactId>
  130. <version>2.5</version>
  131. <scope>provided</scope>
  132. </dependency>
  133. <dependency>
  134. <groupId>javax.servlet.jsp</groupId>
  135. <artifactId>jsp-api</artifactId>
  136. <version>2.1</version>
  137. <scope>provided</scope>
  138. </dependency>
  139. <dependency>
  140. <groupId>javax.servlet</groupId>
  141. <artifactId>jstl</artifactId>
  142. <version>1.2</version>
  143. </dependency>
  144. <dependency>
  145. <groupId>javax.ws.rs</groupId>
  146. <artifactId>javax.ws.rs-api</artifactId>
  147. <version>2.0</version>
  148. </dependency>
  149. <dependency>
  150. <groupId>javax.websocket</groupId>
  151. <artifactId>javax.websocket-api</artifactId>
  152. <version>1.0</version>
  153. </dependency>
  154. <dependency>
  155. <groupId>javax.annotation</groupId>
  156. <artifactId>javax.annotation-api</artifactId>
  157. <version>1.2</version>
  158. </dependency>
  159. <dependency>
  160. <groupId>javax.transaction</groupId>
  161. <artifactId>javax.transaction-api</artifactId>
  162. <version>1.2</version>
  163. </dependency>
  164. <!--Spring -->
  165. <dependency>
  166. <groupId>org.springframework</groupId>
  167. <artifactId>spring-context</artifactId>
  168. </dependency>
  169. <dependency>
  170. <groupId>org.springframework</groupId>
  171. <artifactId>spring-orm</artifactId>
  172. </dependency>
  173. <dependency>
  174. <groupId>org.springframework</groupId>
  175. <artifactId>spring-oxm</artifactId>
  176. </dependency>
  177. <dependency>
  178. <groupId>org.springframework</groupId>
  179. <artifactId>spring-jdbc</artifactId>
  180. </dependency>
  181. <dependency>
  182. <groupId>org.springframework</groupId>
  183. <artifactId>spring-tx</artifactId>
  184. </dependency>
  185. <dependency>
  186. <groupId>org.springframework</groupId>
  187. <artifactId>spring-web</artifactId>
  188. </dependency>
  189. <dependency>
  190. <groupId>org.springframework</groupId>
  191. <artifactId>spring-webmvc</artifactId>
  192. </dependency>
  193. <dependency>
  194. <groupId>org.springframework</groupId>
  195. <artifactId>spring-aop</artifactId>
  196. </dependency>
  197. <dependency>
  198. <groupId>org.springframework</groupId>
  199. <artifactId>spring-test</artifactId>
  200. </dependency>
  201. <!--spring-oxm依赖 -->
  202. <dependency>
  203. <groupId>org.codehaus.castor</groupId>
  204. <artifactId>castor-xml</artifactId>
  205. <version>1.3.3</version>
  206. </dependency>
  207. <!--spring-json依赖 -->
  208. <dependency>
  209. <groupId>com.fasterxml.jackson.core</groupId>
  210. <artifactId>jackson-databind</artifactId>
  211. <version>2.4.2</version>
  212. </dependency>
  213. <dependency>
  214. <groupId>com.fasterxml.jackson.dataformat</groupId>
  215. <artifactId>jackson-dataformat-xml</artifactId>
  216. <version>2.4.2</version>
  217. </dependency>
  218. <!--spring-aop依赖 -->
  219. <dependency>
  220. <groupId>org.aspectj</groupId>
  221. <artifactId>aspectjweaver</artifactId>
  222. <version>1.8.2</version>
  223. </dependency>
  224. <!--上传文件 -->
  225. <dependency>
  226. <groupId>commons-fileupload</groupId>
  227. <artifactId>commons-fileupload</artifactId>
  228. <version>1.3.1</version>
  229. </dependency>
  230. <!--mysql -->
  231. <dependency>
  232. <groupId>mysql</groupId>
  233. <artifactId>mysql-connector-java</artifactId>
  234. <version>${mysql.version}</version>
  235. </dependency>
  236. <!--druid -->
  237. <dependency>
  238. <groupId>com.alibaba</groupId>
  239. <artifactId>druid</artifactId>
  240. <version>1.0.11</version>
  241. </dependency>
  242. <dependency>
  243. <groupId>net.sf.json-lib</groupId>
  244. <artifactId>json-lib-ext-spring</artifactId>
  245. <version>1.0.2</version>
  246. </dependency>
  247. <!--Mybatis -->
  248. <dependency>
  249. <groupId>org.mybatis</groupId>
  250. <artifactId>mybatis</artifactId>
  251. <version>${mybatis.version}</version>
  252. </dependency>
  253. <dependency>
  254. <groupId>org.mybatis</groupId>
  255. <artifactId>mybatis-spring</artifactId>
  256. <version>${mybatis.spring.version}</version>
  257. </dependency>
  258. <!-- Mybatis Generator -->
  259. <dependency>
  260. <groupId>org.mybatis.generator</groupId>
  261. <artifactId>mybatis-generator-core</artifactId>
  262. <version>1.3.2</version>
  263. <scope>compile</scope>
  264. <optional>true</optional>
  265. </dependency>
  266. <!--分页插件 -->
  267. <dependency>
  268. <groupId>com.github.pagehelper</groupId>
  269. <artifactId>pagehelper</artifactId>
  270. <version>${pagehelper.version}</version>
  271. </dependency>
  272. <!--通用Mapper -->
  273. <dependency>
  274. <groupId>tk.mybatis</groupId>
  275. <artifactId>mapper</artifactId>
  276. <version>${mapper.version}</version>
  277. </dependency>
  278. <dependency>
  279. <groupId>commons-codec</groupId>
  280. <artifactId>commons-codec</artifactId>
  281. <version>1.10</version>
  282. </dependency>
  283. <!-- 二维码 -->
  284. <dependency>
  285. <groupId>com.google.zxing</groupId>
  286. <artifactId>core</artifactId>
  287. <version>3.2.1</version>
  288. </dependency>
  289. <dependency>
  290. <groupId>com.google.zxing</groupId>
  291. <artifactId>javase</artifactId>
  292. <version>3.2.1</version>
  293. </dependency>
  294. <dependency>
  295. <groupId>dom4j</groupId>
  296. <artifactId>dom4j</artifactId>
  297. <version>1.6.1</version>
  298. </dependency>
  299. <dependency>
  300. <groupId>commons-httpclient</groupId>
  301. <artifactId>commons-httpclient</artifactId>
  302. <version>3.1</version>
  303. </dependency>
  304. </dependencies>
  305. <dependencyManagement>
  306. <dependencies>
  307. <dependency>
  308. <groupId>org.springframework</groupId>
  309. <artifactId>spring-framework-bom</artifactId>
  310. <version>${spring.version}</version>
  311. <type>pom</type>
  312. <scope>import</scope>
  313. </dependency>
  314. </dependencies>
  315. </dependencyManagement>
  316. <build>
  317. <resources>
  318. <resource>
  319. <directory>${basedir}/src/main/java</directory>
  320. <includes>
  321. <include>**/*.xml</include>
  322. </includes>
  323. </resource>
  324. <resource>
  325. <directory>${basedir}/src/main/resources</directory>
  326. </resource>
  327. </resources>
  328. <plugins>
  329. <plugin>
  330. <artifactId>maven-compiler-plugin</artifactId>
  331. <configuration>
  332. <source>${jdk.version}</source>
  333. <target>${jdk.version}</target>
  334. </configuration>
  335. </plugin>
  336. <plugin>
  337. <groupId>org.mybatis.generator</groupId>
  338. <artifactId>mybatis-generator-maven-plugin</artifactId>
  339. <version>1.3.2</version>
  340. <configuration>
  341. <configurationFile>${basedir}/src/main/resources/generator/generatorConfig.xml</configurationFile>
  342. <overwrite>true</overwrite>
  343. <verbose>true</verbose>
  344. </configuration>
  345. <dependencies>
  346. <dependency>
  347. <groupId>mysql</groupId>
  348. <artifactId>mysql-connector-java</artifactId>
  349. <version>${mysql.version}</version>
  350. </dependency>
  351. <dependency>
  352. <groupId>tk.mybatis</groupId>
  353. <artifactId>mapper</artifactId>
  354. <version>${mapper.version}</version>
  355. </dependency>
  356. </dependencies>
  357. </plugin>
  358. </plugins>
  359. </build>
  360. </project>