pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  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-job</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. <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.cloud</groupId>
  44. <artifactId>spring-cloud-starter-eureka</artifactId>
  45. </dependency>-->
  46. <!--注释掉就不会读取git的配置,只会读取yml中的配置-->
  47. <!--<dependency>-->
  48. <!--<groupId>org.springframework.cloud</groupId>-->
  49. <!--<artifactId>spring-cloud-starter-config</artifactId>-->
  50. <!--</dependency>-->
  51. <dependency>
  52. <groupId>org.json</groupId>
  53. <artifactId>json</artifactId>
  54. </dependency>
  55. <dependency>
  56. <groupId>net.sf.json-lib</groupId>
  57. <artifactId>json-lib</artifactId>
  58. <version>2.4</version>
  59. </dependency>
  60. <dependency>
  61. <groupId>com.google.code.gson</groupId>
  62. <artifactId>gson</artifactId>
  63. <version>2.8.9</version> <!-- 请使用最新的稳定版本 -->
  64. </dependency>
  65. <dependency>
  66. <groupId>com.yihu.jw</groupId>
  67. <artifactId>common-entity</artifactId>
  68. </dependency>
  69. <dependency>
  70. <groupId>com.yihu.jw</groupId>
  71. <artifactId>common-rest-model</artifactId>
  72. </dependency>
  73. <dependency>
  74. <groupId>com.yihu.jw</groupId>
  75. <artifactId>base-service</artifactId>
  76. <version>${version.wlyy-common}</version>
  77. <exclusions>
  78. <exclusion>
  79. <groupId>xalan</groupId>
  80. <artifactId>xalan</artifactId>
  81. </exclusion>
  82. <exclusion>
  83. <groupId>com.his.hesb</groupId>
  84. <artifactId>mqSdk</artifactId>
  85. </exclusion>
  86. </exclusions>
  87. </dependency>
  88. <dependency>
  89. <groupId>com.yihu.jw</groupId>
  90. <artifactId>im-service</artifactId>
  91. <version>${version.wlyy-common}</version>
  92. </dependency>
  93. <dependency>
  94. <groupId>com.yihu.jw</groupId>
  95. <artifactId>common-exception</artifactId>
  96. </dependency>
  97. <!-- Jzkl Starter -->
  98. <dependency>
  99. <groupId>com.yihu.jw</groupId>
  100. <artifactId>swagger-starter</artifactId>
  101. <version>${version.wlyy-common}</version>
  102. </dependency>
  103. <dependency>
  104. <groupId>com.yihu.jw</groupId>
  105. <artifactId>mysql-starter</artifactId>
  106. <version>${version.wlyy-common}</version>
  107. <exclusions>
  108. <exclusion>
  109. <groupId>org.apache.tomcat</groupId>
  110. <artifactId>tomcat-jdbc</artifactId>
  111. </exclusion>
  112. </exclusions>
  113. </dependency>
  114. <dependency>
  115. <groupId>org.springframework.security</groupId>
  116. <artifactId>spring-security-core</artifactId>
  117. <version>RELEASE</version>
  118. <scope>compile</scope>
  119. </dependency>
  120. <dependency>
  121. <groupId>org.junit.platform</groupId>
  122. <artifactId>junit-platform-commons</artifactId>
  123. <version>1.3.2</version>
  124. </dependency>
  125. <dependency>
  126. <groupId>com.alibaba</groupId>
  127. <artifactId>fastjson</artifactId>
  128. </dependency>
  129. <dependency>
  130. <groupId>io.github.swagger2markup</groupId>
  131. <artifactId>swagger2markup</artifactId>
  132. <version>1.3.2</version>
  133. </dependency>
  134. <!-- quartz start -->
  135. <dependency>
  136. <groupId>org.quartz-scheduler</groupId>
  137. <artifactId>quartz</artifactId>
  138. </dependency>
  139. <dependency>
  140. <groupId>org.springframework</groupId>
  141. <artifactId>spring-context-support</artifactId>
  142. <version>4.2.5.RELEASE</version>
  143. </dependency>
  144. <!-- quartz end -->
  145. <dependency>
  146. <groupId>io.searchbox</groupId>
  147. <artifactId>jest</artifactId>
  148. <version>2.4.0</version>
  149. </dependency>
  150. <dependency>
  151. <groupId>org.elasticsearch</groupId>
  152. <artifactId>elasticsearch</artifactId>
  153. <version>2.4.4</version>
  154. </dependency>
  155. <!--oracle驱动-->
  156. <dependency>
  157. <groupId>com.oracle</groupId>
  158. <artifactId>ojdbc6</artifactId>
  159. <version>11.2.0.3</version>
  160. </dependency>
  161. <!-- 添加dm8 jdbc jar 包依赖-->
  162. <dependency>
  163. <groupId>com.dameng</groupId>
  164. <artifactId>DmJdbcDriver18</artifactId>
  165. <version>${version.dmdb}</version>
  166. </dependency>
  167. <dependency>
  168. <groupId>com.dameng</groupId>
  169. <artifactId>DmDialect-for-hibernate5.6</artifactId>
  170. <version>8.1.3.62</version>
  171. </dependency>
  172. <dependency>
  173. <groupId>com.yihu.jw</groupId>
  174. <artifactId>sms-service</artifactId>
  175. <version>${version.wlyy-common}</version>
  176. <scope>compile</scope>
  177. </dependency>
  178. </dependencies>
  179. <build>
  180. <finalName>svr-internet-hospital-job</finalName>
  181. <plugins>
  182. <plugin>
  183. <groupId>org.apache.maven.plugins</groupId>
  184. <artifactId>maven-jar-plugin</artifactId>
  185. <configuration>
  186. <archive>
  187. <!-- 生成的jar中,不要包含pom.xml和pom.properties这两个文件 -->
  188. <addMavenDescriptor>false</addMavenDescriptor>
  189. <manifest>
  190. <!-- 是否要把第三方jar加入到类构建路径 -->
  191. <addClasspath>true</addClasspath>
  192. <!-- 外部依赖jar包的最终位置 -->
  193. <classpathPrefix>lib/</classpathPrefix>
  194. <mainClass>com.yihu.Application</mainClass>
  195. </manifest>
  196. </archive>
  197. </configuration>
  198. </plugin>
  199. <!--拷贝依赖到jar外面的lib目录-->
  200. <plugin>
  201. <groupId>org.apache.maven.plugins</groupId>
  202. <artifactId>maven-dependency-plugin</artifactId>
  203. <executions>
  204. <execution>
  205. <id>copy-lib</id>
  206. <phase>package</phase>
  207. <goals>
  208. <goal>copy-dependencies</goal>
  209. </goals>
  210. <configuration>
  211. <!-- 依赖包输出目录,将来不打进jar包里 -->
  212. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  213. <excludeTransitive>false</excludeTransitive>
  214. <stripVersion>false</stripVersion>
  215. <includeScope>runtime</includeScope>
  216. </configuration>
  217. </execution>
  218. </executions>
  219. </plugin>
  220. <!--指定配置文件,将resources打成外部resource-->
  221. <plugin>
  222. <groupId>org.apache.maven.plugins</groupId>
  223. <artifactId>maven-jar-plugin</artifactId>
  224. <configuration>
  225. <archive>
  226. <!-- 指定配置文件目录,这样jar运行时会去找到同目录下的resources文件夹下查找 -->
  227. <manifestEntries>
  228. <Class-Path>resources/</Class-Path>
  229. </manifestEntries>
  230. </archive>
  231. <!-- 打包时忽略的文件(也就是不打进jar包里的文件) -->
  232. <excludes>
  233. <exclude>**/*.yml</exclude>
  234. <exclude>**/*.xml</exclude>
  235. </excludes>
  236. </configuration>
  237. </plugin>
  238. <!-- 拷贝资源文件 外面的resource目录-->
  239. <plugin>
  240. <artifactId>maven-resources-plugin</artifactId>
  241. <executions>
  242. <execution>
  243. <id>copy-dependencies</id>
  244. <phase>package</phase>
  245. <goals>
  246. <goal>copy-resources</goal>
  247. </goals>
  248. <configuration>
  249. <!-- 资源文件输出目录 -->
  250. <outputDirectory>${project.build.directory}/resources</outputDirectory>
  251. <resources>
  252. <resource>
  253. <directory>src/main/resources</directory>
  254. </resource>
  255. </resources>
  256. </configuration>
  257. </execution>
  258. </executions>
  259. </plugin>
  260. </plugins>
  261. <resources>
  262. <!--指定资源的位置-->
  263. <resource>
  264. <directory>src/main/resources</directory>
  265. <includes>
  266. <include>**/**.**</include>
  267. </includes>
  268. </resource>
  269. </resources>
  270. </build>
  271. </project>