pom.xml 13 KB

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