pom.xml 13 KB

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