pom.xml 9.9 KB

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