pom.xml 13 KB

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