pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  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-entrance</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.springframework.cloud</groupId>-->
  57. <!--<artifactId>spring-cloud-starter-zipkin</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>net.sf.json-lib</groupId>
  69. <artifactId>json-lib</artifactId>
  70. <version>2.4</version>
  71. </dependency>
  72. <dependency>
  73. <groupId>com.yihu.jw</groupId>
  74. <artifactId>common-entity</artifactId>
  75. </dependency>
  76. <dependency>
  77. <groupId>com.yihu.jw</groupId>
  78. <artifactId>common-rest-model</artifactId>
  79. </dependency>
  80. <dependency>
  81. <groupId>com.yihu.jw</groupId>
  82. <artifactId>common-request-mapping</artifactId>
  83. </dependency>
  84. <dependency>
  85. <groupId>com.yihu.jw</groupId>
  86. <artifactId>common-exception</artifactId>
  87. </dependency>
  88. <!--<dependency>-->
  89. <!--<groupId>com.yihu.jw</groupId>-->
  90. <!--<artifactId>common-util</artifactId>-->
  91. <!--</dependency>-->
  92. <dependency>
  93. <groupId>com.yihu.jw</groupId>
  94. <artifactId>base-service</artifactId>
  95. <version>${parent.version}</version>
  96. </dependency>
  97. <dependency>
  98. <groupId>com.yihu.jw</groupId>
  99. <artifactId>im-service</artifactId>
  100. <version>2.0.0</version>
  101. </dependency>
  102. <dependency>
  103. <groupId>com.yihu.jw</groupId>
  104. <artifactId>common-web</artifactId>
  105. </dependency>
  106. <!-- Jzkl Starter -->
  107. <dependency>
  108. <groupId>com.yihu</groupId>
  109. <artifactId>swagger-starter</artifactId>
  110. <version>2.0.0</version>
  111. </dependency>
  112. <dependency>
  113. <groupId>com.yihu</groupId>
  114. <artifactId>mysql-starter</artifactId>
  115. <version>2.0.0</version>
  116. </dependency>
  117. <dependency>
  118. <groupId>org.springframework.security</groupId>
  119. <artifactId>spring-security-core</artifactId>
  120. <version>RELEASE</version>
  121. <scope>compile</scope>
  122. </dependency>
  123. <!-- poi xml导入导出工具 end -->
  124. <!--基础业务组件-->
  125. <dependency>
  126. <groupId>com.yihu.jw</groupId>
  127. <artifactId>base-service</artifactId>
  128. <version>2.0.0</version>
  129. </dependency>
  130. <dependency>
  131. <groupId>com.yihu.jw</groupId>
  132. <artifactId>sms-service</artifactId>
  133. <version>2.0.0</version>
  134. <scope>compile</scope>
  135. </dependency>
  136. <dependency>
  137. <groupId>org.junit.platform</groupId>
  138. <artifactId>junit-platform-commons</artifactId>
  139. <version>1.3.2</version>
  140. </dependency>
  141. <dependency>
  142. <groupId>com.his.hesb</groupId>
  143. <artifactId>mqSdk</artifactId>
  144. <version>1.0</version>
  145. </dependency>
  146. <dependency>
  147. <groupId>com.alibaba</groupId>
  148. <artifactId>fastjson</artifactId>
  149. </dependency>
  150. <dependency>
  151. <groupId>io.github.swagger2markup</groupId>
  152. <artifactId>swagger2markup</artifactId>
  153. <version>1.3.2</version>
  154. </dependency>
  155. <dependency>
  156. <groupId>xom</groupId>
  157. <artifactId>xom</artifactId>
  158. <version>1.2.5</version>
  159. </dependency>
  160. <dependency>
  161. <groupId>org.springframework.boot</groupId>
  162. <artifactId>spring-boot-starter-data-redis</artifactId>
  163. </dependency>
  164. <!--oracle驱动-->
  165. <dependency>
  166. <groupId>com.oracle</groupId>
  167. <artifactId>ojdbc6</artifactId>
  168. <version>11.2.0.3</version>
  169. </dependency>
  170. <dependency>
  171. <groupId>com</groupId>
  172. <artifactId>sqlserver</artifactId>
  173. <version>4.0</version>
  174. </dependency>
  175. <dependency>
  176. <groupId>com.microsoft.sqlserver</groupId>
  177. <artifactId>mssql-jdbc</artifactId>
  178. <version>6.1.0.jre8</version>
  179. </dependency>
  180. </dependencies>
  181. <build>
  182. <finalName>svr-internet-hospital-entrance</finalName>
  183. <plugins>
  184. <plugin>
  185. <groupId>org.apache.maven.plugins</groupId>
  186. <artifactId>maven-jar-plugin</artifactId>
  187. <configuration>
  188. <archive>
  189. <!-- 生成的jar中,不要包含pom.xml和pom.properties这两个文件 -->
  190. <addMavenDescriptor>false</addMavenDescriptor>
  191. <manifest>
  192. <!-- 是否要把第三方jar加入到类构建路径 -->
  193. <addClasspath>true</addClasspath>
  194. <!-- 外部依赖jar包的最终位置 -->
  195. <classpathPrefix>lib/</classpathPrefix>
  196. <mainClass>com.yihu.SvrInternetHospitalEntranceApplication</mainClass>
  197. </manifest>
  198. </archive>
  199. </configuration>
  200. </plugin>
  201. <!--拷贝依赖到jar外面的lib目录-->
  202. <plugin>
  203. <groupId>org.apache.maven.plugins</groupId>
  204. <artifactId>maven-dependency-plugin</artifactId>
  205. <executions>
  206. <execution>
  207. <id>copy-lib</id>
  208. <phase>package</phase>
  209. <goals>
  210. <goal>copy-dependencies</goal>
  211. </goals>
  212. <configuration>
  213. <!-- 依赖包输出目录,将来不打进jar包里 -->
  214. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  215. <excludeTransitive>false</excludeTransitive>
  216. <stripVersion>false</stripVersion>
  217. <includeScope>runtime</includeScope>
  218. </configuration>
  219. </execution>
  220. </executions>
  221. </plugin>
  222. <!--指定配置文件,将resources打成外部resource-->
  223. <plugin>
  224. <groupId>org.apache.maven.plugins</groupId>
  225. <artifactId>maven-jar-plugin</artifactId>
  226. <configuration>
  227. <archive>
  228. <!-- 指定配置文件目录,这样jar运行时会去找到同目录下的resources文件夹下查找 -->
  229. <manifestEntries>
  230. <Class-Path>resources/</Class-Path>
  231. </manifestEntries>
  232. </archive>
  233. <!-- 打包时忽略的文件(也就是不打进jar包里的文件) -->
  234. <excludes>
  235. <exclude>**/*.yml</exclude>
  236. <exclude>**/*.xml</exclude>
  237. </excludes>
  238. </configuration>
  239. </plugin>
  240. <!-- 拷贝资源文件 外面的resource目录-->
  241. <plugin>
  242. <artifactId>maven-resources-plugin</artifactId>
  243. <executions>
  244. <execution>
  245. <id>copy-dependencies</id>
  246. <phase>package</phase>
  247. <goals>
  248. <goal>copy-resources</goal>
  249. </goals>
  250. <configuration>
  251. <!-- 资源文件输出目录 -->
  252. <outputDirectory>${project.build.directory}/resources</outputDirectory>
  253. <resources>
  254. <resource>
  255. <directory>src/main/resources</directory>
  256. </resource>
  257. </resources>
  258. </configuration>
  259. </execution>
  260. </executions>
  261. </plugin>
  262. </plugins>
  263. <resources>
  264. <resource>
  265. <directory>src</directory>
  266. <!-- 此配置不可缺,否则mybatis的Mapper.xml将会丢失 -->
  267. <includes>
  268. <include>**/*.xml</include>
  269. </includes>
  270. </resource>
  271. <!--指定资源的位置-->
  272. <resource>
  273. <directory>src/main/resources</directory>
  274. <includes>
  275. <include>**/*.yml</include>
  276. <include>**/*.html</include>
  277. <include>**/*.xml</include>
  278. <include>**/*.properties</include>
  279. </includes>
  280. </resource>
  281. </resources>
  282. </build>
  283. </project>