pom.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  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>com.wsm</groupId>
  6. <artifactId>wsm-base</artifactId>
  7. <version>1.0.0</version>
  8. <packaging>pom</packaging>
  9. <name>wsm-base</name>
  10. <description>wsm base project</description>
  11. <parent>
  12. <groupId>org.springframework.boot</groupId>
  13. <artifactId>spring-boot-starter-parent</artifactId>
  14. <version>1.5.12.RELEASE</version>
  15. <relativePath/> <!-- lookup parent from repository -->
  16. </parent>
  17. <!-- 模块说明:这里声明多个子模块 -->
  18. <modules>
  19. <module>wsm-application</module>
  20. <module>wsm-common</module>
  21. <module>wsm-admin-web</module>
  22. <module>wsm-admin-service</module>
  23. <module>wsm-admin-dao</module>
  24. </modules>
  25. <properties>
  26. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  27. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  28. <java.version>1.8</java.version>
  29. <wsm.version>1.0.0</wsm.version>
  30. <!-- 在properties中统一控制依赖包的版本,更清晰-->
  31. <nekohtml.version>1.9.22</nekohtml.version>
  32. <thymeleaf.shiro.version>1.0.2</thymeleaf.shiro.version>
  33. <spring.mybatis.version>1.3.2</spring.mybatis.version>
  34. <tk.mybatis.version>2.0.2</tk.mybatis.version>
  35. <mysql.version>5.1.46</mysql.version>
  36. <druid.version>1.0.15</druid.version>
  37. <kaptcha.version>2.3.2</kaptcha.version>
  38. <lombok.version>1.16.20</lombok.version>
  39. <commons-lang3.version>3.3.2</commons-lang3.version>
  40. <fastjson.version>1.2.15</fastjson.version>
  41. <shiro.version>1.2.4</shiro.version>
  42. <spring.boot.version>1.5.12.RELEASE</spring.boot.version>
  43. <redis.version>2.0.0.RELEASE</redis.version>
  44. <jackson.version>2.9.2</jackson.version>
  45. <httpclient.version>4.5.3</httpclient.version>
  46. <commons.codec.version>1.10</commons.codec.version>
  47. <javax.servlet-api.version>3.1.0</javax.servlet-api.version>
  48. <jedis.version>2.9.0</jedis.version>
  49. <eureka.version>1.4.0.RELEASE</eureka.version>
  50. <feign.version>1.4.0.RELEASE</feign.version>
  51. <spring-cloud.version>Dalston.SR3</spring-cloud.version>
  52. <swagger-annotations.version>1.5.13</swagger-annotations.version>
  53. <feign-httpclient.version>8.18.0</feign-httpclient.version>
  54. <feign-jackson.version>8.18.0</feign-jackson.version>
  55. <joda-time.version>2.9.9</joda-time.version>
  56. <zxing.version>2.1</zxing.version>
  57. <spring-boot-starter-websocket.version>2.1.3.RELEASE</spring-boot-starter-websocket.version>
  58. <poi.version>3.17</poi.version>
  59. </properties>
  60. <!--dependencyManagement用于管理依赖版本号-->
  61. <dependencyManagement>
  62. <dependencies>
  63. <dependency>
  64. <groupId>com.wsm</groupId>
  65. <artifactId>wsm-application</artifactId>
  66. <version>${wsm.version}</version>
  67. </dependency>
  68. <dependency>
  69. <groupId>com.wsm</groupId>
  70. <artifactId>wsm-common</artifactId>
  71. <version>${wsm.version}</version>
  72. </dependency>
  73. <dependency>
  74. <groupId>com.wsm</groupId>
  75. <artifactId>wsm-admin-web</artifactId>
  76. <version>${wsm.version}</version>
  77. </dependency>
  78. <dependency>
  79. <groupId>com.wsm</groupId>
  80. <artifactId>wsm-admin-service</artifactId>
  81. <version>${wsm.version}</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>com.wsm</groupId>
  85. <artifactId>wsm-admin-dao</artifactId>
  86. <version>${wsm.version}</version>
  87. </dependency>
  88. <!--spring boot -->
  89. <dependency>
  90. <groupId>org.springframework.boot</groupId>
  91. <artifactId>spring-boot-starter-web</artifactId>
  92. <version>${spring.boot.version}</version>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.springframework.boot</groupId>
  96. <artifactId>spring-boot-starter-test</artifactId>
  97. <version>${spring.boot.version}</version>
  98. <scope>test</scope>
  99. </dependency>
  100. <dependency>
  101. <groupId>org.springframework.boot</groupId>
  102. <artifactId>spring-boot</artifactId>
  103. <version>${spring.boot.version}</version>
  104. </dependency>
  105. <dependency>
  106. <groupId>org.springframework.boot</groupId>
  107. <artifactId>spring-boot-autoconfigure</artifactId>
  108. <version>${spring.boot.version}</version>
  109. </dependency>
  110. <dependency>
  111. <groupId>org.springframework.boot</groupId>
  112. <artifactId>spring-boot-starter-tomcat</artifactId>
  113. <version>${spring.boot.version}</version>
  114. <scope>provided</scope>
  115. </dependency>
  116. <!--thymeleaf -->
  117. <dependency>
  118. <groupId>org.springframework.boot</groupId>
  119. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  120. <version>${spring.boot.version}</version>
  121. </dependency>
  122. <dependency>
  123. <groupId>com.github.theborakompanioni</groupId>
  124. <artifactId>thymeleaf-extras-shiro</artifactId>
  125. <version>${thymeleaf.shiro.version}</version>
  126. </dependency>
  127. <!-- JPA -->
  128. <dependency>
  129. <groupId>org.springframework.boot</groupId>
  130. <artifactId>spring-boot-starter-data-jpa</artifactId>
  131. <version>${spring.boot.version}</version>
  132. </dependency>
  133. <!-- mybatis -->
  134. <dependency>
  135. <groupId>org.mybatis.spring.boot</groupId>
  136. <artifactId>mybatis-spring-boot-starter</artifactId>
  137. <version>${spring.mybatis.version}</version>
  138. </dependency>
  139. <dependency>
  140. <groupId>tk.mybatis</groupId>
  141. <artifactId>mapper-spring-boot-starter</artifactId>
  142. <version>${tk.mybatis.version}</version>
  143. </dependency>
  144. <!-- mysql -->
  145. <dependency>
  146. <groupId>mysql</groupId>
  147. <artifactId>mysql-connector-java</artifactId>
  148. <version>${mysql.version}</version>
  149. <scope>runtime</scope>
  150. </dependency>
  151. <!-- druid -->
  152. <dependency>
  153. <groupId>com.alibaba</groupId>
  154. <artifactId>druid</artifactId>
  155. <version>${druid.version}</version>
  156. </dependency>
  157. <!-- shiro -->
  158. <dependency>
  159. <groupId>org.apache.shiro</groupId>
  160. <artifactId>shiro-core</artifactId>
  161. <version>${shiro.version}</version>
  162. </dependency>
  163. <dependency>
  164. <groupId>org.apache.shiro</groupId>
  165. <artifactId>shiro-spring</artifactId>
  166. <version>${shiro.version}</version>
  167. </dependency>
  168. <dependency>
  169. <groupId>org.apache.shiro</groupId>
  170. <artifactId>shiro-web</artifactId>
  171. <version>${shiro.version}</version>
  172. </dependency>
  173. <!-- redis -->
  174. <dependency>
  175. <groupId>org.springframework.boot</groupId>
  176. <artifactId>spring-boot-starter-data-redis</artifactId>
  177. <version>${redis.version}</version>
  178. </dependency>
  179. <dependency>
  180. <groupId>redis.clients</groupId>
  181. <artifactId>jedis</artifactId>
  182. <version>${jedis.version}</version>
  183. </dependency>
  184. <!-- nekohtml -->
  185. <dependency>
  186. <groupId>net.sourceforge.nekohtml</groupId>
  187. <artifactId>nekohtml</artifactId>
  188. <version>${nekohtml.version}</version>
  189. </dependency>
  190. <!-- kaptcha -->
  191. <dependency>
  192. <groupId>com.github.penggle</groupId>
  193. <artifactId>kaptcha</artifactId>
  194. <version>${kaptcha.version}</version>
  195. </dependency>
  196. <!-- lombok -->
  197. <dependency>
  198. <groupId>org.projectlombok</groupId>
  199. <artifactId>lombok</artifactId>
  200. <version>${lombok.version}</version>
  201. </dependency>
  202. <!-- commons -->
  203. <dependency>
  204. <groupId>org.apache.commons</groupId>
  205. <artifactId>commons-lang3</artifactId>
  206. <version>${commons-lang3.version}</version>
  207. </dependency>
  208. <dependency>
  209. <groupId>commons-codec</groupId>
  210. <artifactId>commons-codec</artifactId>
  211. <version>${commons.codec.version}</version>
  212. </dependency>
  213. <!-- fastjson -->
  214. <dependency>
  215. <groupId>com.alibaba</groupId>
  216. <artifactId>fastjson</artifactId>
  217. <version>${fastjson.version}</version>
  218. </dependency>
  219. <dependency>
  220. <groupId>com.fasterxml.jackson.core</groupId>
  221. <artifactId>jackson-databind</artifactId>
  222. <version>${jackson.version}</version>
  223. </dependency>
  224. <!-- httpclient -->
  225. <dependency>
  226. <groupId>org.apache.httpcomponents</groupId>
  227. <artifactId>httpclient</artifactId>
  228. <version>${httpclient.version}</version>
  229. </dependency>
  230. <!-- servlet -->
  231. <dependency>
  232. <groupId>javax.servlet</groupId>
  233. <artifactId>javax.servlet-api</artifactId>
  234. <version>${javax.servlet-api.version}</version>
  235. </dependency>
  236. <dependency>
  237. <groupId>io.swagger</groupId>
  238. <artifactId>swagger-annotations</artifactId>
  239. <version>${swagger-annotations.version}</version>
  240. </dependency>
  241. <!-- spring cloud -->
  242. <dependency>
  243. <groupId>org.springframework.cloud</groupId>
  244. <artifactId>spring-cloud-starter-eureka</artifactId>
  245. <version>${eureka.version}</version>
  246. </dependency>
  247. <dependency>
  248. <groupId>org.springframework.cloud</groupId>
  249. <artifactId>spring-cloud-starter-feign</artifactId>
  250. <version>${feign.version}</version>
  251. </dependency>
  252. <dependency>
  253. <groupId>org.springframework.cloud</groupId>
  254. <artifactId>spring-cloud-dependencies</artifactId>
  255. <version>${spring-cloud.version}</version>
  256. <type>pom</type>
  257. <scope>import</scope>
  258. </dependency>
  259. <dependency>
  260. <groupId>com.netflix.feign</groupId>
  261. <artifactId>feign-httpclient</artifactId>
  262. <version>${feign-httpclient.version}</version>
  263. </dependency>
  264. <dependency>
  265. <groupId>com.netflix.feign</groupId>
  266. <artifactId>feign-jackson</artifactId>
  267. <version>${feign-jackson.version}</version>
  268. </dependency>
  269. <dependency>
  270. <groupId>joda-time</groupId>
  271. <artifactId>joda-time</artifactId>
  272. <version>${joda-time.version}</version>
  273. </dependency>
  274. <dependency>
  275. <groupId>com.google.zxing</groupId>
  276. <artifactId>core</artifactId>
  277. <version>${zxing.version}</version>
  278. </dependency>
  279. <dependency>
  280. <groupId>com.google.zxing</groupId>
  281. <artifactId>javase</artifactId>
  282. <version>${zxing.version}</version>
  283. </dependency>
  284. <dependency>
  285. <groupId>org.apache.poi</groupId>
  286. <artifactId>poi-ooxml</artifactId>
  287. <version>${poi.version}</version>
  288. </dependency>
  289. <dependency>
  290. <groupId>org.apache.poi</groupId>
  291. <artifactId>poi-ooxml-schemas</artifactId>
  292. <version>${poi.version}</version>
  293. </dependency>
  294. <dependency>
  295. <groupId>org.apache.poi</groupId>
  296. <artifactId>poi</artifactId>
  297. <version>${poi.version}</version>
  298. </dependency>
  299. <dependency>
  300. <groupId>org.springframework.boot</groupId>
  301. <artifactId>spring-boot-starter-websocket</artifactId>
  302. <version>${spring-boot-starter-websocket.version}</version>
  303. </dependency>
  304. </dependencies>
  305. </dependencyManagement>
  306. <build>
  307. <plugins>
  308. <plugin>
  309. <groupId>org.apache.maven.plugins</groupId>
  310. <artifactId>maven-compiler-plugin</artifactId>
  311. <version>3.1</version>
  312. <configuration>
  313. <source>${java.version}</source>
  314. <target>${java.version}</target>
  315. </configuration>
  316. </plugin>
  317. <plugin>
  318. <groupId>org.apache.maven.plugins</groupId>
  319. <artifactId>maven-surefire-plugin</artifactId>
  320. <version>2.19.1</version>
  321. <configuration>
  322. <skipTests>true</skipTests> <!--默认关掉单元测试 -->
  323. </configuration>
  324. </plugin>
  325. </plugins>
  326. </build>
  327. </project>