pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  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-cloud-care</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.boot</groupId>
  48. <artifactId>spring-boot-starter-data-redis</artifactId>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.springframework.cloud</groupId>
  52. <artifactId>spring-cloud-starter-eureka</artifactId>
  53. </dependency>
  54. <!--注释掉就不会读取git的配置,只会读取yml中的配置-->
  55. <dependency>
  56. <groupId>org.springframework.cloud</groupId>
  57. <artifactId>spring-cloud-starter-config</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>com.ylz.loginsdk</groupId>-->
  69. <!--<artifactId>ehcsdk</artifactId>-->
  70. <!--<version>1.0</version>-->
  71. <!--</dependency>-->
  72. <dependency>
  73. <groupId>com.ylz.dmrh</groupId>
  74. <artifactId>ehcsdk-java-sdk-base</artifactId>
  75. <version>1.0.3</version>
  76. </dependency>
  77. <dependency>
  78. <groupId>com.yihu.jw</groupId>
  79. <artifactId>common-entity</artifactId>
  80. </dependency>
  81. <dependency>
  82. <groupId>com.yihu.jw</groupId>
  83. <artifactId>common-rest-model</artifactId>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.jdom</groupId>
  87. <artifactId>jdom</artifactId>
  88. <version>2.0.2</version>
  89. </dependency>
  90. <dependency>
  91. <groupId>com.yihu.jw</groupId>
  92. <artifactId>common-request-mapping</artifactId>
  93. </dependency>
  94. <dependency>
  95. <groupId>com.yihu.jw</groupId>
  96. <artifactId>common-exception</artifactId>
  97. </dependency>
  98. <dependency>
  99. <groupId>com.yihu.jw</groupId>
  100. <artifactId>common-util</artifactId>
  101. </dependency>
  102. <dependency>
  103. <groupId>com.yihu.jw</groupId>
  104. <artifactId>common-web</artifactId>
  105. </dependency>
  106. <!-- SPRINGSIDE -->
  107. <dependency>
  108. <groupId>org.springside</groupId>
  109. <artifactId>springside-core</artifactId>
  110. <version>4.2.3-GA</version>
  111. </dependency>
  112. <!-- 文件服务器 -->
  113. <dependency>
  114. <groupId>com.yihu</groupId>
  115. <artifactId>fastdfs-starter</artifactId>
  116. </dependency>
  117. <!-- Swagger-ui library -->
  118. <dependency>
  119. <groupId>com.yihu.jw</groupId>
  120. <artifactId>swagger-starter</artifactId>
  121. <version>2.0.0</version>
  122. </dependency>
  123. <!-- Jzkl Starter -->
  124. <dependency>
  125. <groupId>com.yihu</groupId>
  126. <artifactId>mysql-starter</artifactId>
  127. <version>2.0.0</version>
  128. <exclusions>
  129. <exclusion>
  130. <groupId>org.apache.tomcat</groupId>
  131. <artifactId>tomcat-jdbc</artifactId>
  132. </exclusion>
  133. </exclusions>
  134. </dependency>
  135. <dependency>
  136. <groupId>com.zaxxer</groupId>
  137. <artifactId>HikariCP</artifactId>
  138. <!-- <scope>runtime</scope> -->
  139. </dependency>
  140. <!--<dependency>-->
  141. <!--<groupId>com.yihu</groupId>-->
  142. <!--<artifactId>elasticsearch-starter</artifactId>-->
  143. <!--<version>2.0.0</version>-->
  144. <!--</dependency>-->
  145. <dependency>
  146. <groupId>io.github.swagger2markup</groupId>
  147. <artifactId>swagger2markup</artifactId>
  148. <version>1.3.2</version>
  149. <exclusions>
  150. <exclusion>
  151. <artifactId>mailapi</artifactId>
  152. <groupId>javax.mail</groupId>
  153. </exclusion>
  154. </exclusions>
  155. </dependency>
  156. <!-- 发送邮件 -->
  157. <dependency>
  158. <groupId>com.sun.mail</groupId>
  159. <artifactId>javax.mail</artifactId>
  160. <version>1.4.7</version>
  161. </dependency>
  162. <dependency>
  163. <groupId>org.springframework.boot</groupId>
  164. <artifactId>spring-boot-starter-mail</artifactId>
  165. </dependency>
  166. <!-- poi xml导入导出工具 start-->
  167. <dependency>
  168. <groupId>org.apache.poi</groupId>
  169. <artifactId>poi</artifactId>
  170. <exclusions>
  171. <exclusion>
  172. <groupId>com.yihu.ehr</groupId>
  173. <artifactId>commons-util</artifactId>
  174. </exclusion>
  175. <exclusion>
  176. <groupId>org.apache.commons</groupId>
  177. <artifactId>commons-collections4</artifactId>
  178. </exclusion>
  179. </exclusions>
  180. </dependency>
  181. <dependency>
  182. <groupId>org.apache.poi</groupId>
  183. <artifactId>poi-ooxml</artifactId>
  184. </dependency>
  185. <!-- xlsx 依赖这个包 -->
  186. <dependency>
  187. <groupId>org.apache.poi</groupId>
  188. <artifactId>poi-ooxml-schemas</artifactId>
  189. </dependency>
  190. <dependency>
  191. <groupId>org.springframework.security</groupId>
  192. <artifactId>spring-security-core</artifactId>
  193. <version>RELEASE</version>
  194. <scope>compile</scope>
  195. </dependency>
  196. <dependency>
  197. <groupId>org.springframework.boot</groupId>
  198. <artifactId>spring-boot-starter-websocket</artifactId>
  199. </dependency>
  200. <!-- poi xml导入导出工具 end -->
  201. <!--基础业务组件-->
  202. <dependency>
  203. <groupId>com.yihu.jw</groupId>
  204. <artifactId>base-service</artifactId>
  205. <version>2.0.0</version>
  206. <exclusions>
  207. <exclusion>
  208. <groupId>xalan</groupId>
  209. <artifactId>xalan</artifactId>
  210. </exclusion>
  211. <exclusion>
  212. <groupId>com.his.hesb</groupId>
  213. <artifactId>mqSdk</artifactId>
  214. </exclusion>
  215. </exclusions>
  216. </dependency>
  217. <dependency>
  218. <groupId>junit</groupId>
  219. <artifactId>junit</artifactId>
  220. <version>4.12</version>
  221. <scope>test</scope>
  222. </dependency>
  223. <!--缩略图-->
  224. <dependency>
  225. <groupId>net.coobird</groupId>
  226. <artifactId>thumbnailator</artifactId>
  227. <version>0.4.8</version>
  228. </dependency>
  229. <dependency>
  230. <groupId>net.sf.json-lib</groupId>
  231. <artifactId>json-lib</artifactId>
  232. <version>2.4</version>
  233. </dependency>
  234. <dependency>
  235. <groupId>com.yihu.jw</groupId>
  236. <artifactId>im-service</artifactId>
  237. <version>2.0.0</version>
  238. </dependency>
  239. <dependency>
  240. <groupId>com.yihu.jw</groupId>
  241. <artifactId>sms-service</artifactId>
  242. <version>2.0.0</version>
  243. </dependency>
  244. <dependency>
  245. <groupId>com.yihu.jw</groupId>
  246. <artifactId>es-service</artifactId>
  247. <version>2.0.0</version>
  248. </dependency>
  249. <dependency>
  250. <groupId>com.hikvision.ga</groupId>
  251. <artifactId>artemis-http-client</artifactId>
  252. <version>1.1.3</version>
  253. </dependency>
  254. </dependencies>
  255. <build>
  256. <finalName>svr-cloud-care</finalName>
  257. <plugins>
  258. <plugin>
  259. <groupId>org.apache.maven.plugins</groupId>
  260. <artifactId>maven-jar-plugin</artifactId>
  261. <configuration>
  262. <archive>
  263. <!-- 生成的jar中,不要包含pom.xml和pom.properties这两个文件 -->
  264. <addMavenDescriptor>false</addMavenDescriptor>
  265. <manifest>
  266. <!-- 是否要把第三方jar加入到类构建路径 -->
  267. <addClasspath>true</addClasspath>
  268. <!-- 外部依赖jar包的最终位置 -->
  269. <classpathPrefix>lib/</classpathPrefix>
  270. <mainClass>com.yihu.SvrCloudCareApplication</mainClass>
  271. </manifest>
  272. </archive>
  273. </configuration>
  274. </plugin>
  275. <!--拷贝依赖到jar外面的lib目录-->
  276. <plugin>
  277. <groupId>org.apache.maven.plugins</groupId>
  278. <artifactId>maven-dependency-plugin</artifactId>
  279. <executions>
  280. <execution>
  281. <id>copy-lib</id>
  282. <phase>package</phase>
  283. <goals>
  284. <goal>copy-dependencies</goal>
  285. </goals>
  286. <configuration>
  287. <!-- 依赖包输出目录,将来不打进jar包里 -->
  288. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  289. <excludeTransitive>false</excludeTransitive>
  290. <stripVersion>false</stripVersion>
  291. <includeScope>runtime</includeScope>
  292. </configuration>
  293. </execution>
  294. </executions>
  295. </plugin>
  296. <!--指定配置文件,将resources打成外部resource-->
  297. <plugin>
  298. <groupId>org.apache.maven.plugins</groupId>
  299. <artifactId>maven-jar-plugin</artifactId>
  300. <configuration>
  301. <archive>
  302. <!-- 指定配置文件目录,这样jar运行时会去找到同目录下的resources文件夹下查找 -->
  303. <manifestEntries>
  304. <Class-Path>resources/</Class-Path>
  305. </manifestEntries>
  306. </archive>
  307. <!-- 打包时忽略的文件(也就是不打进jar包里的文件) -->
  308. <excludes>
  309. <exclude>**/*.yml</exclude>
  310. <exclude>**/*.xml</exclude>
  311. </excludes>
  312. </configuration>
  313. </plugin>
  314. <!-- 拷贝资源文件 外面的resource目录-->
  315. <plugin>
  316. <artifactId>maven-resources-plugin</artifactId>
  317. <executions>
  318. <execution>
  319. <id>copy-dependencies</id>
  320. <phase>package</phase>
  321. <goals>
  322. <goal>copy-resources</goal>
  323. </goals>
  324. <configuration>
  325. <!-- 资源文件输出目录 -->
  326. <outputDirectory>${project.build.directory}/resources</outputDirectory>
  327. <resources>
  328. <resource>
  329. <directory>src/main/resources</directory>
  330. </resource>
  331. </resources>
  332. </configuration>
  333. </execution>
  334. </executions>
  335. </plugin>
  336. </plugins>
  337. </build>
  338. </project>