pom.xml 9.7 KB

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