pom.xml 14 KB

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