pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  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. </exclusions>
  212. </dependency>
  213. <dependency>
  214. <groupId>junit</groupId>
  215. <artifactId>junit</artifactId>
  216. <version>4.12</version>
  217. <scope>test</scope>
  218. </dependency>
  219. <!--缩略图-->
  220. <dependency>
  221. <groupId>net.coobird</groupId>
  222. <artifactId>thumbnailator</artifactId>
  223. <version>0.4.8</version>
  224. </dependency>
  225. <dependency>
  226. <groupId>net.sf.json-lib</groupId>
  227. <artifactId>json-lib</artifactId>
  228. <version>2.4</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. </dependencies>
  246. <build>
  247. <finalName>svr-cloud-care</finalName>
  248. <plugins>
  249. <plugin>
  250. <groupId>org.apache.maven.plugins</groupId>
  251. <artifactId>maven-jar-plugin</artifactId>
  252. <configuration>
  253. <archive>
  254. <!-- 生成的jar中,不要包含pom.xml和pom.properties这两个文件 -->
  255. <addMavenDescriptor>false</addMavenDescriptor>
  256. <manifest>
  257. <!-- 是否要把第三方jar加入到类构建路径 -->
  258. <addClasspath>true</addClasspath>
  259. <!-- 外部依赖jar包的最终位置 -->
  260. <classpathPrefix>lib/</classpathPrefix>
  261. <mainClass>com.yihu.SvrCloudCareApplication</mainClass>
  262. </manifest>
  263. </archive>
  264. </configuration>
  265. </plugin>
  266. <!--拷贝依赖到jar外面的lib目录-->
  267. <plugin>
  268. <groupId>org.apache.maven.plugins</groupId>
  269. <artifactId>maven-dependency-plugin</artifactId>
  270. <executions>
  271. <execution>
  272. <id>copy-lib</id>
  273. <phase>package</phase>
  274. <goals>
  275. <goal>copy-dependencies</goal>
  276. </goals>
  277. <configuration>
  278. <!-- 依赖包输出目录,将来不打进jar包里 -->
  279. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  280. <excludeTransitive>false</excludeTransitive>
  281. <stripVersion>false</stripVersion>
  282. <includeScope>runtime</includeScope>
  283. </configuration>
  284. </execution>
  285. </executions>
  286. </plugin>
  287. <!--指定配置文件,将resources打成外部resource-->
  288. <plugin>
  289. <groupId>org.apache.maven.plugins</groupId>
  290. <artifactId>maven-jar-plugin</artifactId>
  291. <configuration>
  292. <archive>
  293. <!-- 指定配置文件目录,这样jar运行时会去找到同目录下的resources文件夹下查找 -->
  294. <manifestEntries>
  295. <Class-Path>resources/</Class-Path>
  296. </manifestEntries>
  297. </archive>
  298. <!-- 打包时忽略的文件(也就是不打进jar包里的文件) -->
  299. <excludes>
  300. <exclude>**/*.yml</exclude>
  301. <exclude>**/*.xml</exclude>
  302. </excludes>
  303. </configuration>
  304. </plugin>
  305. <!-- 拷贝资源文件 外面的resource目录-->
  306. <plugin>
  307. <artifactId>maven-resources-plugin</artifactId>
  308. <executions>
  309. <execution>
  310. <id>copy-dependencies</id>
  311. <phase>package</phase>
  312. <goals>
  313. <goal>copy-resources</goal>
  314. </goals>
  315. <configuration>
  316. <!-- 资源文件输出目录 -->
  317. <outputDirectory>${project.build.directory}/resources</outputDirectory>
  318. <resources>
  319. <resource>
  320. <directory>src/main/resources</directory>
  321. </resource>
  322. </resources>
  323. </configuration>
  324. </execution>
  325. </executions>
  326. </plugin>
  327. </plugins>
  328. </build>
  329. </project>