pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438
  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>org.fouram</groupId>
  6. <artifactId>sapparent</artifactId>
  7. <version>0.1.0</version>
  8. <packaging>pom</packaging>
  9. <name>sapparent</name>
  10. <modules>
  11. <module>sapservice</module>
  12. <module>sapcms</module>
  13. </modules>
  14. <properties>
  15. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16. <spring.version>4.3.0.RELEASE</spring.version>
  17. <spring-session.version>1.3.0.RELEASE</spring-session.version>
  18. <spring-data-redis.version>1.8.1.RELEASE</spring-data-redis.version>
  19. <mysql.version>8.0.13</mysql.version>
  20. <mybatis.version>3.2.1</mybatis.version>
  21. <mybatis-spring.version>1.2.5</mybatis-spring.version>
  22. <slf4j.version>1.7.9</slf4j.version>
  23. <log4j.version>2.8.2</log4j.version>
  24. <druid.version>1.0.27</druid.version>
  25. <fastjson.version>1.2.28</fastjson.version>
  26. <jedis.version>2.9.0</jedis.version>
  27. <redisson.version>3.3.1</redisson.version>
  28. <jackson.version>2.8.6</jackson.version>
  29. <shiro.version>1.3.2</shiro.version>
  30. <tomcat-coyote.version>7.0.85</tomcat-coyote.version>
  31. <tomcat-catalina.version>7.0.85</tomcat-catalina.version>
  32. <junit.version>4.12</junit.version>
  33. <commons-net.version>3.4</commons-net.version>
  34. <javax.servlet-api.version>3.1.0</javax.servlet-api.version>
  35. <jstl.version>1.2</jstl.version>
  36. <commons-lang3.version>3.4</commons-lang3.version>
  37. <commons-lang.version>2.6</commons-lang.version>
  38. <commons-codec.version>1.9</commons-codec.version>
  39. <commons-digester.version>2.0</commons-digester.version>
  40. <commons-beanutils.version>1.9.2</commons-beanutils.version>
  41. <commons-fileupload.version>1.3.1</commons-fileupload.version>
  42. <commons-io.version>2.5</commons-io.version>
  43. <commons-logging.version>1.2</commons-logging.version>
  44. <quartz-version>2.2.2</quartz-version>
  45. <weixin-java-cp.version>3.7.8.B</weixin-java-cp.version>
  46. <lombok.version>1.18.10</lombok.version>
  47. <springfox.version>2.6.1</springfox.version>
  48. <swagger-bootstrap-ui.version>1.9.6</swagger-bootstrap-ui.version>
  49. </properties>
  50. <dependencies>
  51. <!-- 引入swagger依赖 -->
  52. <dependency>
  53. <groupId>io.springfox</groupId>
  54. <artifactId>springfox-swagger2</artifactId>
  55. <version>${springfox.version}</version>
  56. </dependency>
  57. <dependency>
  58. <groupId>io.springfox</groupId>
  59. <artifactId>springfox-swagger-ui</artifactId>
  60. <version>${springfox.version}</version>
  61. </dependency>
  62. <dependency>
  63. <groupId>com.github.xiaoymin</groupId>
  64. <artifactId>swagger-bootstrap-ui</artifactId>
  65. <version>${swagger-bootstrap-ui.version}</version>
  66. </dependency>
  67. <dependency>
  68. <groupId>junit</groupId>
  69. <artifactId>junit</artifactId>
  70. <version>${junit.version}</version>
  71. <scope>test</scope>
  72. </dependency>
  73. <dependency>
  74. <groupId>commons-net</groupId>
  75. <artifactId>commons-net</artifactId>
  76. <version>${commons-net.version}</version>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.apache.commons</groupId>
  80. <artifactId>commons-lang3</artifactId>
  81. <version>${commons-lang3.version}</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>commons-lang</groupId>
  85. <artifactId>commons-lang</artifactId>
  86. <version>${commons-lang.version}</version>
  87. </dependency>
  88. <dependency>
  89. <groupId>commons-codec</groupId>
  90. <artifactId>commons-codec</artifactId>
  91. <version>${commons-codec.version}</version>
  92. </dependency>
  93. <dependency>
  94. <groupId>commons-digester</groupId>
  95. <artifactId>commons-digester</artifactId>
  96. <version>${commons-digester.version}</version>
  97. </dependency>
  98. <dependency>
  99. <groupId>commons-beanutils</groupId>
  100. <artifactId>commons-beanutils</artifactId>
  101. <version>${commons-beanutils.version}</version>
  102. </dependency>
  103. <dependency>
  104. <groupId>commons-fileupload</groupId>
  105. <artifactId>commons-fileupload</artifactId>
  106. <version>${commons-fileupload.version}</version>
  107. </dependency>
  108. <dependency>
  109. <groupId>commons-io</groupId>
  110. <artifactId>commons-io</artifactId>
  111. <version>${commons-io.version}</version>
  112. </dependency>
  113. <dependency>
  114. <groupId>commons-logging</groupId>
  115. <artifactId>commons-logging</artifactId>
  116. <version>${commons-logging.version}</version>
  117. </dependency>
  118. <!-- mybatis -->
  119. <dependency>
  120. <groupId>org.mybatis</groupId>
  121. <artifactId>mybatis</artifactId>
  122. <version>${mybatis.version}</version>
  123. </dependency>
  124. <dependency>
  125. <groupId>org.mybatis</groupId>
  126. <artifactId>mybatis-spring</artifactId>
  127. <version>${mybatis-spring.version}</version>
  128. </dependency>
  129. <!-- quartz -->
  130. <dependency>
  131. <groupId>org.quartz-scheduler</groupId>
  132. <artifactId>quartz</artifactId>
  133. <version>${quartz-version}</version>
  134. </dependency>
  135. <!-- spring核心包 -->
  136. <dependency>
  137. <groupId>org.springframework</groupId>
  138. <artifactId>spring-jdbc</artifactId>
  139. <version>${spring.version}</version>
  140. </dependency>
  141. <dependency>
  142. <groupId>org.springframework</groupId>
  143. <artifactId>spring-core</artifactId>
  144. <version>${spring.version}</version>
  145. </dependency>
  146. <dependency>
  147. <groupId>org.springframework</groupId>
  148. <artifactId>spring-context-support</artifactId>
  149. <version>${spring.version}</version>
  150. </dependency>
  151. <dependency>
  152. <groupId>org.springframework</groupId>
  153. <artifactId>spring-test</artifactId>
  154. <version>${spring.version}</version>
  155. </dependency>
  156. <dependency>
  157. <groupId>org.springframework</groupId>
  158. <artifactId>spring-web</artifactId>
  159. <version>${spring.version}</version>
  160. </dependency>
  161. <dependency>
  162. <groupId>org.springframework</groupId>
  163. <artifactId>spring-webmvc</artifactId>
  164. <version>${spring.version}</version>
  165. </dependency>
  166. <dependency>
  167. <groupId>org.springframework.session</groupId>
  168. <artifactId>spring-session</artifactId>
  169. <version>${spring-session.version}</version>
  170. </dependency>
  171. <dependency>
  172. <groupId>org.springframework.data</groupId>
  173. <artifactId>spring-data-redis</artifactId>
  174. <version>${spring-data-redis.version}</version>
  175. </dependency>
  176. <!-- websocket -->
  177. <dependency>
  178. <groupId>org.springframework</groupId>
  179. <artifactId>spring-websocket</artifactId>
  180. <version>${spring.version}</version>
  181. </dependency>
  182. <dependency>
  183. <groupId>org.springframework</groupId>
  184. <artifactId>spring-messaging</artifactId>
  185. <version>${spring.version}</version>
  186. </dependency>
  187. <!-- 缓存 -->
  188. <dependency>
  189. <groupId>redis.clients</groupId>
  190. <artifactId>jedis</artifactId>
  191. <version>${jedis.version}</version>
  192. </dependency>
  193. <dependency>
  194. <groupId>org.redisson</groupId>
  195. <artifactId>redisson</artifactId>
  196. <version>${redisson.version}</version>
  197. </dependency>
  198. <!-- 数据库 -->
  199. <dependency>
  200. <groupId>mysql</groupId>
  201. <artifactId>mysql-connector-java</artifactId>
  202. <version>${mysql.version}</version>
  203. </dependency>
  204. <dependency>
  205. <groupId>com.alibaba</groupId>
  206. <artifactId>druid</artifactId>
  207. <version>${druid.version}</version>
  208. <type>jar</type>
  209. </dependency>
  210. <!-- alibaba工具包 -->
  211. <dependency>
  212. <groupId>com.alibaba</groupId>
  213. <artifactId>fastjson</artifactId>
  214. <version>${fastjson.version}</version>
  215. </dependency>
  216. <!-- 导入java ee -->
  217. <dependency>
  218. <groupId>javax.servlet</groupId>
  219. <artifactId>javax.servlet-api</artifactId>
  220. <version>${javax.servlet-api.version}</version>
  221. <scope>provided</scope>
  222. </dependency>
  223. <dependency>
  224. <groupId>javax.servlet</groupId>
  225. <artifactId>jstl</artifactId>
  226. <version>${jstl.version}</version>
  227. <scope>runtime</scope>
  228. </dependency>
  229. <!-- 日志文件管理包 -->
  230. <dependency>
  231. <groupId>org.slf4j</groupId>
  232. <artifactId>slf4j-api</artifactId>
  233. <version>${slf4j.version}</version>
  234. </dependency>
  235. <dependency>
  236. <groupId>log4j</groupId>
  237. <artifactId>log4j</artifactId>
  238. <version>1.2.17</version>
  239. </dependency>
  240. <dependency>
  241. <groupId>org.apache.logging.log4j</groupId>
  242. <artifactId>log4j-core</artifactId>
  243. <version>${log4j.version}</version>
  244. </dependency>
  245. <dependency>
  246. <groupId>org.apache.logging.log4j</groupId>
  247. <artifactId>log4j-api</artifactId>
  248. <version>${log4j.version}</version>
  249. </dependency>
  250. <dependency>
  251. <groupId>org.apache.logging.log4j</groupId>
  252. <artifactId>log4j-slf4j-impl</artifactId>
  253. <version>${log4j.version}</version>
  254. </dependency>
  255. <!-- jackson -->
  256. <dependency>
  257. <groupId>com.fasterxml.jackson.core</groupId>
  258. <artifactId>jackson-core</artifactId>
  259. <version>${jackson.version}</version>
  260. </dependency>
  261. <dependency>
  262. <groupId>com.fasterxml.jackson.core</groupId>
  263. <artifactId>jackson-databind</artifactId>
  264. <version>${jackson.version}</version>
  265. </dependency>
  266. <dependency>
  267. <groupId>com.fasterxml.jackson.core</groupId>
  268. <artifactId>jackson-annotations</artifactId>
  269. <version>${jackson.version}</version>
  270. </dependency>
  271. <!-- shiro -->
  272. <dependency>
  273. <groupId>org.apache.shiro</groupId>
  274. <artifactId>shiro-spring</artifactId>
  275. <version>${shiro.version}</version>
  276. </dependency>
  277. <!-- poi -->
  278. <dependency>
  279. <groupId>org.apache.poi</groupId>
  280. <artifactId>poi</artifactId>
  281. <version>3.14</version>
  282. </dependency>
  283. <dependency>
  284. <groupId>org.apache.poi</groupId>
  285. <artifactId>poi-ooxml</artifactId>
  286. <version>3.14</version>
  287. </dependency>
  288. <dependency>
  289. <groupId>org.apache.poi</groupId>
  290. <artifactId>poi-ooxml-schemas</artifactId>
  291. <version>3.14</version>
  292. </dependency>
  293. <dependency>
  294. <groupId>com.ning</groupId>
  295. <artifactId>async-http-client</artifactId>
  296. <version>1.8.13</version>
  297. <type>jar</type>
  298. </dependency>
  299. <dependency>
  300. <groupId>com.github.binarywang</groupId>
  301. <artifactId>java-emoji-converter</artifactId>
  302. <version>0.1.1</version>
  303. </dependency>
  304. <dependency>
  305. <groupId>net.coobird</groupId>
  306. <artifactId>thumbnailator</artifactId>
  307. <version>0.4.8</version>
  308. </dependency>
  309. <dependency>
  310. <groupId>commons-httpclient</groupId>
  311. <artifactId>commons-httpclient</artifactId>
  312. <version>3.0.1</version>
  313. </dependency>
  314. <dependency>
  315. <groupId>com.drewnoakes</groupId>
  316. <artifactId>metadata-extractor</artifactId>
  317. <version>2.11.0</version>
  318. </dependency>
  319. <dependency>
  320. <groupId>com.lmax</groupId>
  321. <artifactId>disruptor</artifactId>
  322. <version>3.4.2</version>
  323. </dependency>
  324. <dependency>
  325. <groupId>com.belerweb</groupId>
  326. <artifactId>pinyin4j</artifactId>
  327. <version>2.5.1</version>
  328. </dependency>
  329. <dependency>
  330. <groupId>com.itextpdf</groupId>
  331. <artifactId>itextpdf</artifactId>
  332. <version>5.5.10</version>
  333. </dependency>
  334. <dependency>
  335. <groupId>com.github.binarywang</groupId>
  336. <artifactId>weixin-java-cp</artifactId>
  337. <version>${weixin-java-cp.version}</version>
  338. </dependency>
  339. <dependency>
  340. <groupId>org.projectlombok</groupId>
  341. <artifactId>lombok</artifactId>
  342. <version>${lombok.version}</version>
  343. <scope>provided</scope>
  344. </dependency>
  345. </dependencies>
  346. <profiles>
  347. <profile>
  348. <id>develop</id>
  349. <properties>
  350. <env>src/main/resources/env/develop</env>
  351. </properties>
  352. <activation>
  353. <activeByDefault>true</activeByDefault>
  354. </activation>
  355. </profile>
  356. <profile>
  357. <id>product</id>
  358. <properties>
  359. <env>src/main/resources/env/product</env>
  360. </properties>
  361. </profile>
  362. </profiles>
  363. <build>
  364. <finalName>fouram</finalName>
  365. <resources>
  366. <resource>
  367. <directory>src/main/resources</directory>
  368. <excludes>
  369. <exclude>env/develop/**</exclude>
  370. <exclude>env/product/**</exclude>
  371. </excludes>
  372. </resource>
  373. <resource>
  374. <directory>src/main/java</directory>
  375. <includes>
  376. <include>**/*.xml</include>
  377. </includes>
  378. <filtering>false</filtering>
  379. </resource>
  380. <resource>
  381. <directory>${env}</directory>
  382. </resource>
  383. </resources>
  384. <plugins>
  385. <!-- 编译的时候使用JDK8和UTF8编码 -->
  386. <plugin>
  387. <artifactId>maven-compiler-plugin</artifactId>
  388. <configuration>
  389. <source>1.8</source>
  390. <target>1.8</target>
  391. <encoding>UTF-8</encoding>
  392. </configuration>
  393. </plugin>
  394. <!-- 将源码打成jar包 -->
  395. <plugin>
  396. <groupId>org.apache.maven.plugins</groupId>
  397. <artifactId>maven-source-plugin</artifactId>
  398. <version>3.0.1</version>
  399. <configuration>
  400. <attach>true</attach>
  401. </configuration>
  402. <executions>
  403. <execution>
  404. <phase>compile</phase>
  405. <goals>
  406. <goal>jar</goal>
  407. </goals>
  408. </execution>
  409. </executions>
  410. </plugin>
  411. <!-- 编译jar包 -->
  412. <plugin>
  413. <groupId>org.apache.maven.plugins</groupId>
  414. <artifactId>maven-jar-plugin</artifactId>
  415. <configuration>
  416. <archive>
  417. <addMavenDescriptor>false</addMavenDescriptor>
  418. <manifest>
  419. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  420. <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
  421. </manifest>
  422. </archive>
  423. </configuration>
  424. </plugin>
  425. <plugin>
  426. <groupId>org.apache.tomcat.maven</groupId>
  427. <artifactId>tomcat7-maven-plugin</artifactId>
  428. <version>2.2</version>
  429. <configuration>
  430. <port>8080</port>
  431. <uriEncoding>UTF-8</uriEncoding>
  432. </configuration>
  433. </plugin>
  434. </plugins>
  435. </build>
  436. </project>