pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346
  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>yuanshan</groupId>
  5. <artifactId>yuanshan</artifactId>
  6. <packaging>war</packaging>
  7. <version>0.0.1-SNAPSHOT</version>
  8. <name>yuanshan 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. <!-- xStream完美转换XML、JSON -->
  32. <dependency>
  33. <groupId>xstream</groupId>
  34. <artifactId>xstream</artifactId>
  35. <version>1.2.2</version>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.jdom</groupId>
  39. <artifactId>jdom</artifactId>
  40. <version>2.0.2</version>
  41. </dependency>
  42. <!-- excel jar包依赖 -->
  43. <dependency>
  44. <groupId>jexcelapi</groupId>
  45. <artifactId>jxl</artifactId>
  46. <version>2.6</version>
  47. </dependency>
  48. <dependency>
  49. <groupId>junit</groupId>
  50. <artifactId>junit</artifactId>
  51. <version>4.11</version>
  52. <scope>test</scope>
  53. </dependency>
  54. <dependency>
  55. <groupId>log4j</groupId>
  56. <artifactId>log4j</artifactId>
  57. <version>1.2.17</version>
  58. </dependency>
  59. <!-- http client -->
  60. <dependency>
  61. <groupId>org.apache.httpcomponents</groupId>
  62. <artifactId>httpclient</artifactId>
  63. <version>4.5.1</version>
  64. </dependency>
  65. <!-- json -->
  66. <dependency>
  67. <groupId>org.json</groupId>
  68. <artifactId>org.json</artifactId>
  69. <version>chargebee-1.0</version>
  70. </dependency>
  71. <!--web -->
  72. <dependency>
  73. <groupId>javax.servlet</groupId>
  74. <artifactId>servlet-api</artifactId>
  75. <version>2.5</version>
  76. <scope>provided</scope>
  77. </dependency>
  78. <dependency>
  79. <groupId>javax.servlet.jsp</groupId>
  80. <artifactId>jsp-api</artifactId>
  81. <version>2.1</version>
  82. <scope>provided</scope>
  83. </dependency>
  84. <dependency>
  85. <groupId>javax.servlet</groupId>
  86. <artifactId>jstl</artifactId>
  87. <version>1.2</version>
  88. </dependency>
  89. <dependency>
  90. <groupId>javax.ws.rs</groupId>
  91. <artifactId>javax.ws.rs-api</artifactId>
  92. <version>2.0</version>
  93. </dependency>
  94. <dependency>
  95. <groupId>javax.websocket</groupId>
  96. <artifactId>javax.websocket-api</artifactId>
  97. <version>1.0</version>
  98. </dependency>
  99. <dependency>
  100. <groupId>javax.annotation</groupId>
  101. <artifactId>javax.annotation-api</artifactId>
  102. <version>1.2</version>
  103. </dependency>
  104. <dependency>
  105. <groupId>javax.transaction</groupId>
  106. <artifactId>javax.transaction-api</artifactId>
  107. <version>1.2</version>
  108. </dependency>
  109. <!--Spring -->
  110. <dependency>
  111. <groupId>org.springframework</groupId>
  112. <artifactId>spring-context</artifactId>
  113. </dependency>
  114. <dependency>
  115. <groupId>org.springframework</groupId>
  116. <artifactId>spring-orm</artifactId>
  117. </dependency>
  118. <dependency>
  119. <groupId>org.springframework</groupId>
  120. <artifactId>spring-oxm</artifactId>
  121. </dependency>
  122. <dependency>
  123. <groupId>org.springframework</groupId>
  124. <artifactId>spring-jdbc</artifactId>
  125. </dependency>
  126. <dependency>
  127. <groupId>org.springframework</groupId>
  128. <artifactId>spring-tx</artifactId>
  129. </dependency>
  130. <dependency>
  131. <groupId>org.springframework</groupId>
  132. <artifactId>spring-web</artifactId>
  133. </dependency>
  134. <dependency>
  135. <groupId>org.springframework</groupId>
  136. <artifactId>spring-webmvc</artifactId>
  137. </dependency>
  138. <dependency>
  139. <groupId>org.springframework</groupId>
  140. <artifactId>spring-aop</artifactId>
  141. </dependency>
  142. <dependency>
  143. <groupId>org.springframework</groupId>
  144. <artifactId>spring-test</artifactId>
  145. </dependency>
  146. <!--spring-oxm依赖 -->
  147. <dependency>
  148. <groupId>org.codehaus.castor</groupId>
  149. <artifactId>castor-xml</artifactId>
  150. <version>1.3.3</version>
  151. </dependency>
  152. <!--spring-json依赖 -->
  153. <dependency>
  154. <groupId>com.fasterxml.jackson.core</groupId>
  155. <artifactId>jackson-databind</artifactId>
  156. <version>2.4.2</version>
  157. </dependency>
  158. <dependency>
  159. <groupId>com.fasterxml.jackson.dataformat</groupId>
  160. <artifactId>jackson-dataformat-xml</artifactId>
  161. <version>2.4.2</version>
  162. </dependency>
  163. <!--spring-aop依赖 -->
  164. <dependency>
  165. <groupId>org.aspectj</groupId>
  166. <artifactId>aspectjweaver</artifactId>
  167. <version>1.8.2</version>
  168. </dependency>
  169. <!--上传文件 -->
  170. <dependency>
  171. <groupId>commons-fileupload</groupId>
  172. <artifactId>commons-fileupload</artifactId>
  173. <version>1.3.1</version>
  174. </dependency>
  175. <!--mysql -->
  176. <dependency>
  177. <groupId>mysql</groupId>
  178. <artifactId>mysql-connector-java</artifactId>
  179. <version>${mysql.version}</version>
  180. </dependency>
  181. <!--druid -->
  182. <dependency>
  183. <groupId>com.alibaba</groupId>
  184. <artifactId>druid</artifactId>
  185. <version>1.0.11</version>
  186. </dependency>
  187. <dependency>
  188. <groupId>net.sf.json-lib</groupId>
  189. <artifactId>json-lib-ext-spring</artifactId>
  190. <version>1.0.2</version>
  191. </dependency>
  192. <!--Mybatis -->
  193. <dependency>
  194. <groupId>org.mybatis</groupId>
  195. <artifactId>mybatis</artifactId>
  196. <version>${mybatis.version}</version>
  197. </dependency>
  198. <dependency>
  199. <groupId>org.mybatis</groupId>
  200. <artifactId>mybatis-spring</artifactId>
  201. <version>${mybatis.spring.version}</version>
  202. </dependency>
  203. <!-- Mybatis Generator -->
  204. <dependency>
  205. <groupId>org.mybatis.generator</groupId>
  206. <artifactId>mybatis-generator-core</artifactId>
  207. <version>1.3.2</version>
  208. <scope>compile</scope>
  209. <optional>true</optional>
  210. </dependency>
  211. <!--分页插件 -->
  212. <dependency>
  213. <groupId>com.github.pagehelper</groupId>
  214. <artifactId>pagehelper</artifactId>
  215. <version>${pagehelper.version}</version>
  216. </dependency>
  217. <!--通用Mapper -->
  218. <dependency>
  219. <groupId>tk.mybatis</groupId>
  220. <artifactId>mapper</artifactId>
  221. <version>${mapper.version}</version>
  222. </dependency>
  223. <dependency>
  224. <groupId>commons-codec</groupId>
  225. <artifactId>commons-codec</artifactId>
  226. <version>1.10</version>
  227. </dependency>
  228. <!-- 二维码 -->
  229. <dependency>
  230. <groupId>com.google.zxing</groupId>
  231. <artifactId>core</artifactId>
  232. <version>3.2.1</version>
  233. </dependency>
  234. <dependency>
  235. <groupId>com.google.zxing</groupId>
  236. <artifactId>javase</artifactId>
  237. <version>3.2.1</version>
  238. </dependency>
  239. <dependency>
  240. <groupId>dom4j</groupId>
  241. <artifactId>dom4j</artifactId>
  242. <version>1.6.1</version>
  243. </dependency>
  244. <dependency>
  245. <groupId>commons-httpclient</groupId>
  246. <artifactId>commons-httpclient</artifactId>
  247. <version>3.1</version>
  248. </dependency>
  249. </dependencies>
  250. <dependencyManagement>
  251. <dependencies>
  252. <dependency>
  253. <groupId>org.springframework</groupId>
  254. <artifactId>spring-framework-bom</artifactId>
  255. <version>${spring.version}</version>
  256. <type>pom</type>
  257. <scope>import</scope>
  258. </dependency>
  259. </dependencies>
  260. </dependencyManagement>
  261. <build>
  262. <resources>
  263. <resource>
  264. <directory>${basedir}/src/main/java</directory>
  265. <includes>
  266. <include>**/*.xml</include>
  267. </includes>
  268. </resource>
  269. <resource>
  270. <directory>${basedir}/src/main/resources</directory>
  271. </resource>
  272. </resources>
  273. <plugins>
  274. <plugin>
  275. <artifactId>maven-compiler-plugin</artifactId>
  276. <configuration>
  277. <source>${jdk.version}</source>
  278. <target>${jdk.version}</target>
  279. </configuration>
  280. </plugin>
  281. <plugin>
  282. <groupId>org.mybatis.generator</groupId>
  283. <artifactId>mybatis-generator-maven-plugin</artifactId>
  284. <version>1.3.2</version>
  285. <configuration>
  286. <configurationFile>${basedir}/src/main/resources/generator/generatorConfig.xml</configurationFile>
  287. <overwrite>true</overwrite>
  288. <verbose>true</verbose>
  289. </configuration>
  290. <dependencies>
  291. <dependency>
  292. <groupId>mysql</groupId>
  293. <artifactId>mysql-connector-java</artifactId>
  294. <version>${mysql.version}</version>
  295. </dependency>
  296. <dependency>
  297. <groupId>tk.mybatis</groupId>
  298. <artifactId>mapper</artifactId>
  299. <version>${mapper.version}</version>
  300. </dependency>
  301. </dependencies>
  302. </plugin>
  303. </plugins>
  304. </build>
  305. <!-- 仓库地址 -->
  306. <repositories>
  307. <repository>
  308. <id>nexus</id>
  309. <name>Team Nexus Repository</name>
  310. <url>http://114.55.55.234:8081/nexus/content/groups/public/</url>
  311. </repository>
  312. <!-- 下面的地址是为了验证码生成器JAR包设置的 -->
  313. <repository>
  314. <id>atlassian</id>
  315. <name>atlassian</name>
  316. <url>http://maven.jahia.org/maven2/</url>
  317. </repository>
  318. </repositories>
  319. <!-- 插件地址 -->
  320. <pluginRepositories>
  321. <pluginRepository>
  322. <id>nexus</id>
  323. <name>Team Nexus Repository</name>
  324. <url>http://114.55.55.234:8081/nexus/content/groups/public/</url>
  325. </pluginRepository>
  326. </pluginRepositories>
  327. </project>