pom.xml 13 KB

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