pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>com.yihu.jw</groupId>
  8. <artifactId>wlyy-parent-pom</artifactId>
  9. <version>2.4.0</version>
  10. <relativePath>../../wlyy-parent-pom/pom.xml</relativePath>
  11. </parent>
  12. <groupId>com.yihu.jw</groupId>
  13. <artifactId>svr-visit-behind</artifactId>
  14. <packaging>jar</packaging>
  15. <version>${project.parent.version}</version>
  16. <dependencies>
  17. <dependency>
  18. <groupId>com.yihu.jw</groupId>
  19. <artifactId>im-service</artifactId>
  20. <version>${version.wlyy-common}</version>
  21. </dependency>
  22. <!-- SPRINGSIDE -->
  23. <dependency>
  24. <groupId>org.springside</groupId>
  25. <artifactId>springside-core</artifactId>
  26. <version>4.2.3-GA</version>
  27. </dependency>
  28. <!-- 支持Tomcat启动 -->
  29. <dependency>
  30. <groupId>org.springframework.boot</groupId>
  31. <artifactId>spring-boot-starter-web</artifactId>
  32. <exclusions>
  33. <exclusion>
  34. <groupId>org.springframework.boot</groupId>
  35. <artifactId>spring-boot-starter-tomcat</artifactId>
  36. </exclusion>
  37. </exclusions>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.springframework.boot</groupId>
  41. <artifactId>spring-boot-starter-tomcat</artifactId>
  42. <scope>provided</scope>
  43. </dependency>
  44. <dependency>
  45. <groupId>javax.servlet</groupId>
  46. <artifactId>javax.servlet-api</artifactId>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.apache.tomcat.embed</groupId>
  50. <artifactId>tomcat-embed-jasper</artifactId>
  51. </dependency>
  52. <!-- 支持Tomcat启动 -->
  53. <dependency>
  54. <groupId>org.springframework.boot</groupId>
  55. <artifactId>spring-boot-starter-data-redis</artifactId>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.springframework.cloud</groupId>
  59. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  60. </dependency>
  61. <!--注释掉就不会读取git的配置,只会读取yml中的配置-->
  62. <dependency>
  63. <groupId>org.springframework.cloud</groupId>
  64. <artifactId>spring-cloud-starter-config</artifactId>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.springframework.boot</groupId>
  68. <artifactId>spring-boot-starter-activemq</artifactId>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.json</groupId>
  72. <artifactId>json</artifactId>
  73. </dependency>
  74. <dependency>
  75. <groupId>com.yihu.jw</groupId>
  76. <artifactId>common-entity</artifactId>
  77. </dependency>
  78. <dependency>
  79. <groupId>com.yihu.jw</groupId>
  80. <artifactId>common-rest-model</artifactId>
  81. </dependency>
  82. <dependency>
  83. <groupId>com.yihu.jw</groupId>
  84. <artifactId>wxpay-sdk</artifactId>
  85. <version>3.0.9</version>
  86. </dependency>
  87. <dependency>
  88. <groupId>com.yihu.jw</groupId>
  89. <artifactId>common-request-mapping</artifactId>
  90. </dependency>
  91. <dependency>
  92. <groupId>com.yihu.jw</groupId>
  93. <artifactId>common-exception</artifactId>
  94. </dependency>
  95. <dependency>
  96. <groupId>com.yihu.jw</groupId>
  97. <artifactId>common-util</artifactId>
  98. </dependency>
  99. <dependency>
  100. <groupId>com.yihu.jw</groupId>
  101. <artifactId>common-web</artifactId>
  102. </dependency>
  103. <!-- 文件服务器 -->
  104. <dependency>
  105. <groupId>com.yihu</groupId>
  106. <artifactId>fastdfs-starter</artifactId>
  107. </dependency>
  108. <!-- Jzkl Starter -->
  109. <dependency>
  110. <groupId>com.yihu.jw</groupId>
  111. <artifactId>swagger-starter</artifactId>
  112. <version>2.4.0</version>
  113. </dependency>
  114. <dependency>
  115. <groupId>com.yihu</groupId>
  116. <artifactId>mysql-starter</artifactId>
  117. <version>${version.yihu-common}</version>
  118. <exclusions>
  119. <exclusion>
  120. <groupId>org.apache.tomcat</groupId>
  121. <artifactId>tomcat-jdbc</artifactId>
  122. </exclusion>
  123. </exclusions>
  124. </dependency>
  125. <dependency>
  126. <groupId>com.zaxxer</groupId>
  127. <artifactId>HikariCP</artifactId>
  128. <!-- <scope>runtime</scope> -->
  129. </dependency>
  130. <dependency>
  131. <groupId>com.microsoft.sqlserver</groupId>
  132. <artifactId>mssql-jdbc</artifactId>
  133. <scope>runtime</scope>
  134. </dependency>
  135. <!--<dependency>-->
  136. <!--<groupId>com.yihu</groupId>-->
  137. <!--<artifactId>elasticsearch-starter</artifactId>-->
  138. <!--<version>2.0.0</version>-->
  139. <!--</dependency>-->
  140. <dependency>
  141. <groupId>io.github.swagger2markup</groupId>
  142. <artifactId>swagger2markup</artifactId>
  143. <version>1.3.2</version>
  144. <exclusions>
  145. <exclusion>
  146. <artifactId>mailapi</artifactId>
  147. <groupId>javax.mail</groupId>
  148. </exclusion>
  149. </exclusions>
  150. </dependency>
  151. <!-- 发送邮件 -->
  152. <dependency>
  153. <groupId>com.sun.mail</groupId>
  154. <artifactId>javax.mail</artifactId>
  155. <version>1.4.7</version>
  156. </dependency>
  157. <dependency>
  158. <groupId>org.springframework.boot</groupId>
  159. <artifactId>spring-boot-starter-mail</artifactId>
  160. </dependency>
  161. <!-- poi xml导入导出工具 start-->
  162. <dependency>
  163. <groupId>org.apache.poi</groupId>
  164. <artifactId>poi</artifactId>
  165. <exclusions>
  166. <exclusion>
  167. <groupId>com.yihu.ehr</groupId>
  168. <artifactId>commons-util</artifactId>
  169. </exclusion>
  170. <exclusion>
  171. <groupId>org.apache.commons</groupId>
  172. <artifactId>commons-collections4</artifactId>
  173. </exclusion>
  174. </exclusions>
  175. </dependency>
  176. <dependency>
  177. <groupId>org.apache.poi</groupId>
  178. <artifactId>poi-ooxml</artifactId>
  179. </dependency>
  180. <!-- xlsx 依赖这个包 -->
  181. <dependency>
  182. <groupId>org.apache.poi</groupId>
  183. <artifactId>poi-ooxml-schemas</artifactId>
  184. </dependency>
  185. <dependency>
  186. <groupId>org.springframework.security</groupId>
  187. <artifactId>spring-security-core</artifactId>
  188. <version>RELEASE</version>
  189. <scope>compile</scope>
  190. </dependency>
  191. <!-- poi xml导入导出工具 end -->
  192. <!--基础业务组件-->
  193. <dependency>
  194. <groupId>com.yihu.jw</groupId>
  195. <artifactId>base-service</artifactId>
  196. <version>${version.wlyy-common}</version>
  197. <exclusions>
  198. <exclusion>
  199. <groupId>xalan</groupId>
  200. <artifactId>xalan</artifactId>
  201. </exclusion>
  202. </exclusions>
  203. </dependency>
  204. <!--<dependency>-->
  205. <!--<groupId>com.yihu.jw</groupId>-->
  206. <!--<artifactId>sms-service</artifactId>-->
  207. <!--<version>2.0.0</version>-->
  208. <!--<scope>compile</scope>-->
  209. <!--</dependency>-->
  210. <dependency>
  211. <groupId>org.junit.platform</groupId>
  212. <artifactId>junit-platform-commons</artifactId>
  213. <version>1.3.2</version>
  214. </dependency>
  215. <!--缩略图-->
  216. <dependency>
  217. <groupId>net.coobird</groupId>
  218. <artifactId>thumbnailator</artifactId>
  219. <version>0.4.8</version>
  220. </dependency>
  221. <dependency>
  222. <groupId>net.sf.json-lib</groupId>
  223. <artifactId>json-lib</artifactId>
  224. <version>${version.json-lib}</version>
  225. </dependency>
  226. <!--oracle驱动-->
  227. <dependency>
  228. <groupId>com.oracle</groupId>
  229. <artifactId>ojdbc6</artifactId>
  230. <version>${version.oracle}</version>
  231. </dependency>
  232. </dependencies>
  233. <build>
  234. <finalName>svr-visit-behind</finalName>
  235. <plugins>
  236. <plugin>
  237. <groupId>org.apache.maven.plugins</groupId>
  238. <artifactId>maven-jar-plugin</artifactId>
  239. <configuration>
  240. <archive>
  241. <!-- 生成的jar中,不要包含pom.xml和pom.properties这两个文件 -->
  242. <addMavenDescriptor>false</addMavenDescriptor>
  243. <manifest>
  244. <!-- 是否要把第三方jar加入到类构建路径 -->
  245. <addClasspath>true</addClasspath>
  246. <!-- 外部依赖jar包的最终位置 -->
  247. <classpathPrefix>lib/</classpathPrefix>
  248. <mainClass>com.yihu.SvrVisitBehind</mainClass>
  249. </manifest>
  250. </archive>
  251. </configuration>
  252. </plugin>
  253. <!--拷贝依赖到jar外面的lib目录-->
  254. <plugin>
  255. <groupId>org.apache.maven.plugins</groupId>
  256. <artifactId>maven-dependency-plugin</artifactId>
  257. <executions>
  258. <execution>
  259. <id>copy-lib</id>
  260. <phase>package</phase>
  261. <goals>
  262. <goal>copy-dependencies</goal>
  263. </goals>
  264. <configuration>
  265. <!-- 依赖包输出目录,将来不打进jar包里 -->
  266. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  267. <excludeTransitive>false</excludeTransitive>
  268. <stripVersion>false</stripVersion>
  269. <includeScope>runtime</includeScope>
  270. </configuration>
  271. </execution>
  272. </executions>
  273. </plugin>
  274. <!--指定配置文件,将resources打成外部resource-->
  275. <plugin>
  276. <groupId>org.apache.maven.plugins</groupId>
  277. <artifactId>maven-jar-plugin</artifactId>
  278. <configuration>
  279. <archive>
  280. <!-- 指定配置文件目录,这样jar运行时会去找到同目录下的resources文件夹下查找 -->
  281. <manifestEntries>
  282. <Class-Path>resources/</Class-Path>
  283. </manifestEntries>
  284. </archive>
  285. <!-- 打包时忽略的文件(也就是不打进jar包里的文件) -->
  286. <excludes>
  287. <exclude>**/*.yml</exclude>
  288. <exclude>**/*.xml</exclude>
  289. </excludes>
  290. </configuration>
  291. </plugin>
  292. <!-- 拷贝资源文件 外面的resource目录-->
  293. <plugin>
  294. <artifactId>maven-resources-plugin</artifactId>
  295. <executions>
  296. <execution>
  297. <id>copy-dependencies</id>
  298. <phase>package</phase>
  299. <goals>
  300. <goal>copy-resources</goal>
  301. </goals>
  302. <configuration>
  303. <!-- 资源文件输出目录 -->
  304. <outputDirectory>${project.build.directory}/resources</outputDirectory>
  305. <resources>
  306. <resource>
  307. <directory>src/main/resources</directory>
  308. </resource>
  309. </resources>
  310. </configuration>
  311. </execution>
  312. </executions>
  313. </plugin>
  314. </plugins>
  315. </build>
  316. </project>