pom.xml 14 KB

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