pom.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369
  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. <!--<client.mqttv3.version>1.2.0</client.mqttv3.version>-->
  60. </properties>
  61. <!--dependencyManagement用于管理依赖版本号-->
  62. <dependencyManagement>
  63. <dependencies>
  64. <dependency>
  65. <groupId>com.wsm</groupId>
  66. <artifactId>wsm-application</artifactId>
  67. <version>${wsm.version}</version>
  68. </dependency>
  69. <dependency>
  70. <groupId>com.wsm</groupId>
  71. <artifactId>wsm-common</artifactId>
  72. <version>${wsm.version}</version>
  73. </dependency>
  74. <dependency>
  75. <groupId>com.wsm</groupId>
  76. <artifactId>wsm-admin-web</artifactId>
  77. <version>${wsm.version}</version>
  78. </dependency>
  79. <dependency>
  80. <groupId>com.wsm</groupId>
  81. <artifactId>wsm-admin-service</artifactId>
  82. <version>${wsm.version}</version>
  83. </dependency>
  84. <dependency>
  85. <groupId>com.wsm</groupId>
  86. <artifactId>wsm-admin-dao</artifactId>
  87. <version>${wsm.version}</version>
  88. </dependency>
  89. <!--spring boot -->
  90. <dependency>
  91. <groupId>org.springframework.boot</groupId>
  92. <artifactId>spring-boot-starter-web</artifactId>
  93. <version>${spring.boot.version}</version>
  94. </dependency>
  95. <dependency>
  96. <groupId>org.springframework.boot</groupId>
  97. <artifactId>spring-boot-starter-test</artifactId>
  98. <version>${spring.boot.version}</version>
  99. <scope>test</scope>
  100. </dependency>
  101. <dependency>
  102. <groupId>org.springframework.boot</groupId>
  103. <artifactId>spring-boot</artifactId>
  104. <version>${spring.boot.version}</version>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.springframework.boot</groupId>
  108. <artifactId>spring-boot-autoconfigure</artifactId>
  109. <version>${spring.boot.version}</version>
  110. </dependency>
  111. <dependency>
  112. <groupId>org.springframework.boot</groupId>
  113. <artifactId>spring-boot-starter-tomcat</artifactId>
  114. <version>${spring.boot.version}</version>
  115. <scope>provided</scope>
  116. </dependency>
  117. <!--thymeleaf -->
  118. <dependency>
  119. <groupId>org.springframework.boot</groupId>
  120. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  121. <version>${spring.boot.version}</version>
  122. </dependency>
  123. <dependency>
  124. <groupId>com.github.theborakompanioni</groupId>
  125. <artifactId>thymeleaf-extras-shiro</artifactId>
  126. <version>${thymeleaf.shiro.version}</version>
  127. </dependency>
  128. <!-- JPA -->
  129. <dependency>
  130. <groupId>org.springframework.boot</groupId>
  131. <artifactId>spring-boot-starter-data-jpa</artifactId>
  132. <version>${spring.boot.version}</version>
  133. </dependency>
  134. <!-- mybatis -->
  135. <dependency>
  136. <groupId>org.mybatis.spring.boot</groupId>
  137. <artifactId>mybatis-spring-boot-starter</artifactId>
  138. <version>${spring.mybatis.version}</version>
  139. </dependency>
  140. <dependency>
  141. <groupId>tk.mybatis</groupId>
  142. <artifactId>mapper-spring-boot-starter</artifactId>
  143. <version>${tk.mybatis.version}</version>
  144. </dependency>
  145. <!-- mysql -->
  146. <dependency>
  147. <groupId>mysql</groupId>
  148. <artifactId>mysql-connector-java</artifactId>
  149. <version>${mysql.version}</version>
  150. <scope>runtime</scope>
  151. </dependency>
  152. <!-- druid -->
  153. <dependency>
  154. <groupId>com.alibaba</groupId>
  155. <artifactId>druid</artifactId>
  156. <version>${druid.version}</version>
  157. </dependency>
  158. <!-- shiro -->
  159. <dependency>
  160. <groupId>org.apache.shiro</groupId>
  161. <artifactId>shiro-core</artifactId>
  162. <version>${shiro.version}</version>
  163. </dependency>
  164. <dependency>
  165. <groupId>org.apache.shiro</groupId>
  166. <artifactId>shiro-spring</artifactId>
  167. <version>${shiro.version}</version>
  168. </dependency>
  169. <dependency>
  170. <groupId>org.apache.shiro</groupId>
  171. <artifactId>shiro-web</artifactId>
  172. <version>${shiro.version}</version>
  173. </dependency>
  174. <!-- redis -->
  175. <dependency>
  176. <groupId>org.springframework.boot</groupId>
  177. <artifactId>spring-boot-starter-data-redis</artifactId>
  178. <version>${redis.version}</version>
  179. </dependency>
  180. <dependency>
  181. <groupId>redis.clients</groupId>
  182. <artifactId>jedis</artifactId>
  183. <version>${jedis.version}</version>
  184. </dependency>
  185. <!-- nekohtml -->
  186. <dependency>
  187. <groupId>net.sourceforge.nekohtml</groupId>
  188. <artifactId>nekohtml</artifactId>
  189. <version>${nekohtml.version}</version>
  190. </dependency>
  191. <!-- kaptcha -->
  192. <dependency>
  193. <groupId>com.github.penggle</groupId>
  194. <artifactId>kaptcha</artifactId>
  195. <version>${kaptcha.version}</version>
  196. </dependency>
  197. <!-- lombok -->
  198. <dependency>
  199. <groupId>org.projectlombok</groupId>
  200. <artifactId>lombok</artifactId>
  201. <version>${lombok.version}</version>
  202. </dependency>
  203. <!-- commons -->
  204. <dependency>
  205. <groupId>org.apache.commons</groupId>
  206. <artifactId>commons-lang3</artifactId>
  207. <version>${commons-lang3.version}</version>
  208. </dependency>
  209. <dependency>
  210. <groupId>commons-codec</groupId>
  211. <artifactId>commons-codec</artifactId>
  212. <version>${commons.codec.version}</version>
  213. </dependency>
  214. <!-- fastjson -->
  215. <dependency>
  216. <groupId>com.alibaba</groupId>
  217. <artifactId>fastjson</artifactId>
  218. <version>${fastjson.version}</version>
  219. </dependency>
  220. <dependency>
  221. <groupId>com.fasterxml.jackson.core</groupId>
  222. <artifactId>jackson-databind</artifactId>
  223. <version>${jackson.version}</version>
  224. </dependency>
  225. <!-- httpclient -->
  226. <dependency>
  227. <groupId>org.apache.httpcomponents</groupId>
  228. <artifactId>httpclient</artifactId>
  229. <version>${httpclient.version}</version>
  230. </dependency>
  231. <!-- servlet -->
  232. <dependency>
  233. <groupId>javax.servlet</groupId>
  234. <artifactId>javax.servlet-api</artifactId>
  235. <version>${javax.servlet-api.version}</version>
  236. </dependency>
  237. <dependency>
  238. <groupId>io.swagger</groupId>
  239. <artifactId>swagger-annotations</artifactId>
  240. <version>${swagger-annotations.version}</version>
  241. </dependency>
  242. <!-- spring cloud -->
  243. <dependency>
  244. <groupId>org.springframework.cloud</groupId>
  245. <artifactId>spring-cloud-starter-eureka</artifactId>
  246. <version>${eureka.version}</version>
  247. </dependency>
  248. <dependency>
  249. <groupId>org.springframework.cloud</groupId>
  250. <artifactId>spring-cloud-starter-feign</artifactId>
  251. <version>${feign.version}</version>
  252. </dependency>
  253. <dependency>
  254. <groupId>org.springframework.cloud</groupId>
  255. <artifactId>spring-cloud-dependencies</artifactId>
  256. <version>${spring-cloud.version}</version>
  257. <type>pom</type>
  258. <scope>import</scope>
  259. </dependency>
  260. <dependency>
  261. <groupId>com.netflix.feign</groupId>
  262. <artifactId>feign-httpclient</artifactId>
  263. <version>${feign-httpclient.version}</version>
  264. </dependency>
  265. <dependency>
  266. <groupId>com.netflix.feign</groupId>
  267. <artifactId>feign-jackson</artifactId>
  268. <version>${feign-jackson.version}</version>
  269. </dependency>
  270. <dependency>
  271. <groupId>joda-time</groupId>
  272. <artifactId>joda-time</artifactId>
  273. <version>${joda-time.version}</version>
  274. </dependency>
  275. <dependency>
  276. <groupId>com.google.zxing</groupId>
  277. <artifactId>core</artifactId>
  278. <version>${zxing.version}</version>
  279. </dependency>
  280. <dependency>
  281. <groupId>com.google.zxing</groupId>
  282. <artifactId>javase</artifactId>
  283. <version>${zxing.version}</version>
  284. </dependency>
  285. <dependency>
  286. <groupId>org.apache.poi</groupId>
  287. <artifactId>poi-ooxml</artifactId>
  288. <version>${poi.version}</version>
  289. </dependency>
  290. <dependency>
  291. <groupId>org.apache.poi</groupId>
  292. <artifactId>poi-ooxml-schemas</artifactId>
  293. <version>${poi.version}</version>
  294. </dependency>
  295. <dependency>
  296. <groupId>org.apache.poi</groupId>
  297. <artifactId>poi</artifactId>
  298. <version>${poi.version}</version>
  299. </dependency>
  300. <dependency>
  301. <groupId>org.springframework.boot</groupId>
  302. <artifactId>spring-boot-starter-websocket</artifactId>
  303. <version>${spring-boot-starter-websocket.version}</version>
  304. </dependency>
  305. <!--mqtt包-->
  306. <!-- https://mvnrepository.com/artifact/org.eclipse.paho/org.eclipse.paho.client.mqttv3 -->
  307. <!--<dependency>-->
  308. <!--<groupId>org.eclipse.paho</groupId>-->
  309. <!--<artifactId>org.eclipse.paho.client.mqttv3</artifactId>-->
  310. <!--<version>${client.mqttv3.version}}</version>-->
  311. <!--</dependency>-->
  312. </dependencies>
  313. </dependencyManagement>
  314. <build>
  315. <plugins>
  316. <plugin>
  317. <groupId>org.apache.maven.plugins</groupId>
  318. <artifactId>maven-compiler-plugin</artifactId>
  319. <version>3.1</version>
  320. <configuration>
  321. <source>${java.version}</source>
  322. <target>${java.version}</target>
  323. </configuration>
  324. </plugin>
  325. <plugin>
  326. <groupId>org.apache.maven.plugins</groupId>
  327. <artifactId>maven-surefire-plugin</artifactId>
  328. <version>2.19.1</version>
  329. <configuration>
  330. <skipTests>true</skipTests> <!--默认关掉单元测试 -->
  331. </configuration>
  332. </plugin>
  333. </plugins>
  334. </build>
  335. </project>