pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  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.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.springframework.cloud</groupId>-->
  53. <!--<artifactId>spring-cloud-starter-zipkin</artifactId>-->
  54. <!--</dependency>-->
  55. <dependency>
  56. <groupId>org.springframework.boot</groupId>
  57. <artifactId>spring-boot-starter-activemq</artifactId>
  58. </dependency>
  59. <dependency>
  60. <groupId>com.alibaba</groupId>
  61. <artifactId>fastjson</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.jw</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>io.github.swagger2markup</groupId>
  148. <artifactId>swagger2markup</artifactId>
  149. <version>1.3.2</version>
  150. </dependency>
  151. <dependency>
  152. <groupId>xom</groupId>
  153. <artifactId>xom</artifactId>
  154. <version>1.2.5</version>
  155. </dependency>
  156. <dependency>
  157. <groupId>org.springframework.boot</groupId>
  158. <artifactId>spring-boot-starter-data-redis</artifactId>
  159. </dependency>
  160. <!--oracle驱动-->
  161. <dependency>
  162. <groupId>com.oracle</groupId>
  163. <artifactId>ojdbc6</artifactId>
  164. <version>11.2.0.3</version>
  165. </dependency>
  166. <dependency>
  167. <groupId>com</groupId>
  168. <artifactId>sqlserver</artifactId>
  169. <version>4.0</version>
  170. </dependency>
  171. <dependency>
  172. <groupId>com.microsoft.sqlserver</groupId>
  173. <artifactId>mssql-jdbc</artifactId>
  174. <version>6.1.0.jre8</version>
  175. </dependency>
  176. </dependencies>
  177. <build>
  178. <finalName>svr-internet-hospital-entrance</finalName>
  179. <plugins>
  180. <plugin>
  181. <groupId>org.apache.maven.plugins</groupId>
  182. <artifactId>maven-jar-plugin</artifactId>
  183. <configuration>
  184. <archive>
  185. <!-- 生成的jar中,不要包含pom.xml和pom.properties这两个文件 -->
  186. <addMavenDescriptor>false</addMavenDescriptor>
  187. <manifest>
  188. <!-- 是否要把第三方jar加入到类构建路径 -->
  189. <addClasspath>true</addClasspath>
  190. <!-- 外部依赖jar包的最终位置 -->
  191. <classpathPrefix>lib/</classpathPrefix>
  192. <mainClass>com.yihu.SvrInternetHospitalEntranceApplication</mainClass>
  193. </manifest>
  194. </archive>
  195. </configuration>
  196. </plugin>
  197. <!--拷贝依赖到jar外面的lib目录-->
  198. <plugin>
  199. <groupId>org.apache.maven.plugins</groupId>
  200. <artifactId>maven-dependency-plugin</artifactId>
  201. <executions>
  202. <execution>
  203. <id>copy-lib</id>
  204. <phase>package</phase>
  205. <goals>
  206. <goal>copy-dependencies</goal>
  207. </goals>
  208. <configuration>
  209. <!-- 依赖包输出目录,将来不打进jar包里 -->
  210. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  211. <excludeTransitive>false</excludeTransitive>
  212. <stripVersion>false</stripVersion>
  213. <includeScope>runtime</includeScope>
  214. </configuration>
  215. </execution>
  216. </executions>
  217. </plugin>
  218. <!--指定配置文件,将resources打成外部resource-->
  219. <plugin>
  220. <groupId>org.apache.maven.plugins</groupId>
  221. <artifactId>maven-jar-plugin</artifactId>
  222. <configuration>
  223. <archive>
  224. <!-- 指定配置文件目录,这样jar运行时会去找到同目录下的resources文件夹下查找 -->
  225. <manifestEntries>
  226. <Class-Path>resources/</Class-Path>
  227. </manifestEntries>
  228. </archive>
  229. <!-- 打包时忽略的文件(也就是不打进jar包里的文件) -->
  230. <excludes>
  231. <exclude>**/*.yml</exclude>
  232. <exclude>**/*.xml</exclude>
  233. </excludes>
  234. </configuration>
  235. </plugin>
  236. <!-- 拷贝资源文件 外面的resource目录-->
  237. <plugin>
  238. <artifactId>maven-resources-plugin</artifactId>
  239. <executions>
  240. <execution>
  241. <id>copy-dependencies</id>
  242. <phase>package</phase>
  243. <goals>
  244. <goal>copy-resources</goal>
  245. </goals>
  246. <configuration>
  247. <!-- 资源文件输出目录 -->
  248. <outputDirectory>${project.build.directory}/resources</outputDirectory>
  249. <resources>
  250. <resource>
  251. <directory>src/main/resources</directory>
  252. </resource>
  253. </resources>
  254. </configuration>
  255. </execution>
  256. </executions>
  257. </plugin>
  258. </plugins>
  259. <resources>
  260. <resource>
  261. <directory>src</directory>
  262. <!-- 此配置不可缺,否则mybatis的Mapper.xml将会丢失 -->
  263. <includes>
  264. <include>**/*.xml</include>
  265. </includes>
  266. </resource>
  267. <!--指定资源的位置-->
  268. <resource>
  269. <directory>src/main/resources</directory>
  270. <includes>
  271. <include>**/*.yml</include>
  272. <include>**/*.html</include>
  273. <include>**/*.xml</include>
  274. <include>**/*.properties</include>
  275. </includes>
  276. </resource>
  277. </resources>
  278. </build>
  279. </project>