pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  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.4.0</version>
  10. <relativePath>../../wlyy-parent-pom/pom.xml</relativePath>
  11. </parent>
  12. <groupId>com.yihu.jw</groupId>
  13. <artifactId>svr-base</artifactId>
  14. <packaging>jar</packaging>
  15. <version>${project.parent.version}</version>
  16. <dependencies>
  17. <!--这边用2.2.6适配这个系统原本的有的poi3.17版本-->
  18. <dependency>
  19. <groupId>com.alibaba</groupId>
  20. <artifactId>easyexcel</artifactId>
  21. <version>2.2.6</version>
  22. </dependency>
  23. <dependency>
  24. <groupId>org.apache.poi</groupId>
  25. <artifactId>poi-ooxml</artifactId>
  26. </dependency>
  27. <!-- xlsx 依赖这个包 -->
  28. <dependency>
  29. <groupId>org.apache.poi</groupId>
  30. <artifactId>poi-ooxml-schemas</artifactId>
  31. </dependency>
  32. <!-- poi xml导入导出工具 start-->
  33. <dependency>
  34. <groupId>org.apache.poi</groupId>
  35. <artifactId>poi</artifactId>
  36. <exclusions>
  37. <exclusion>
  38. <groupId>com.yihu.ehr</groupId>
  39. <artifactId>commons-util</artifactId>
  40. </exclusion>
  41. <exclusion>
  42. <groupId>org.apache.commons</groupId>
  43. <artifactId>commons-collections4</artifactId>
  44. </exclusion>
  45. </exclusions>
  46. </dependency>
  47. <!-- poi xml导入导出工具 end -->
  48. <!-- 支持Tomcat启动 -->
  49. <dependency>
  50. <groupId>org.springframework.boot</groupId>
  51. <artifactId>spring-boot-starter-web</artifactId>
  52. <exclusions>
  53. <exclusion>
  54. <groupId>org.springframework.boot</groupId>
  55. <artifactId>spring-boot-starter-tomcat</artifactId>
  56. </exclusion>
  57. </exclusions>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.springframework.boot</groupId>
  61. <artifactId>spring-boot-starter-tomcat</artifactId>
  62. <scope>provided</scope>
  63. </dependency>
  64. <dependency>
  65. <groupId>javax.servlet</groupId>
  66. <artifactId>javax.servlet-api</artifactId>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.apache.tomcat.embed</groupId>
  70. <artifactId>tomcat-embed-jasper</artifactId>
  71. </dependency>
  72. <!-- 支持Tomcat启动 -->
  73. <dependency>
  74. <groupId>org.springframework.boot</groupId>
  75. <artifactId>spring-boot-starter-data-redis</artifactId>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.springframework.cloud</groupId>
  79. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  80. </dependency>
  81. <!-- <dependency>-->
  82. <!-- <groupId>org.springframework.cloud</groupId>-->
  83. <!-- <artifactId>spring-cloud-starter-sleuth</artifactId>-->
  84. <!-- </dependency>-->
  85. <!--注释掉就不会读取git的配置,只会读取yml中的配置-->
  86. <dependency>
  87. <groupId>org.springframework.cloud</groupId>
  88. <artifactId>spring-cloud-starter-config</artifactId>
  89. </dependency>
  90. <!--<dependency>-->
  91. <!--<groupId>org.springframework.cloud</groupId>-->
  92. <!--<artifactId>spring-cloud-starter-zipkin</artifactId>-->
  93. <!--</dependency>-->
  94. <dependency>
  95. <groupId>org.springframework.boot</groupId>
  96. <artifactId>spring-boot-starter-activemq</artifactId>
  97. </dependency>
  98. <!-- <dependency>-->
  99. <!-- <groupId>com.yihu.jw</groupId>-->
  100. <!-- <artifactId>minio-starter</artifactId>-->
  101. <!-- <version>2.4.0</version>-->
  102. <!-- </dependency>-->
  103. <dependency>
  104. <groupId>com.yihu.jw</groupId>
  105. <artifactId>im-service</artifactId>
  106. <version>${version.wlyy-common}</version>
  107. <scope>compile</scope>
  108. </dependency>
  109. <dependency>
  110. <groupId>org.json</groupId>
  111. <artifactId>json</artifactId>
  112. </dependency>
  113. <dependency>
  114. <groupId>com.yihu.jw</groupId>
  115. <artifactId>common-entity</artifactId>
  116. </dependency>
  117. <dependency>
  118. <groupId>com.yihu.jw</groupId>
  119. <artifactId>common-rest-model</artifactId>
  120. </dependency>
  121. <dependency>
  122. <groupId>com.yihu.jw</groupId>
  123. <artifactId>common-request-mapping</artifactId>
  124. </dependency>
  125. <dependency>
  126. <groupId>com.yihu.jw</groupId>
  127. <artifactId>common-exception</artifactId>
  128. </dependency>
  129. <dependency>
  130. <groupId>com.yihu.jw</groupId>
  131. <artifactId>common-util</artifactId>
  132. </dependency>
  133. <dependency>
  134. <groupId>com.yihu.jw</groupId>
  135. <artifactId>common-web</artifactId>
  136. </dependency>
  137. <!--<dependency>-->
  138. <!--<groupId>com.yihu.jw</groupId>-->
  139. <!--<artifactId>common-tracer</artifactId>-->
  140. <!--</dependency>-->
  141. <!-- 文件服务器 -->
  142. <dependency>
  143. <groupId>com.yihu</groupId>
  144. <artifactId>fastdfs-starter</artifactId>
  145. <version>2.0.0</version>
  146. </dependency>
  147. <!-- Jzkl Starter -->
  148. <dependency>
  149. <groupId>com.yihu.jw</groupId>
  150. <artifactId>swagger-starter</artifactId>
  151. <version>${version.wlyy-common}</version>
  152. </dependency>
  153. <dependency>
  154. <groupId>com.yihu.jw</groupId>
  155. <artifactId>mysql-starter</artifactId>
  156. <version>${version.wlyy-common}</version>
  157. <exclusions>
  158. <exclusion>
  159. <groupId>org.apache.tomcat</groupId>
  160. <artifactId>tomcat-jdbc</artifactId>
  161. </exclusion>
  162. </exclusions>
  163. </dependency>
  164. <dependency>
  165. <groupId>com.zaxxer</groupId>
  166. <artifactId>HikariCP</artifactId>
  167. <!-- <scope>runtime</scope> -->
  168. </dependency>
  169. <dependency>
  170. <groupId>io.github.swagger2markup</groupId>
  171. <artifactId>swagger2markup</artifactId>
  172. <version>1.3.2</version>
  173. <exclusions>
  174. <exclusion>
  175. <artifactId>mailapi</artifactId>
  176. <groupId>javax.mail</groupId>
  177. </exclusion>
  178. </exclusions>
  179. </dependency>
  180. <!-- 发送邮件 -->
  181. <dependency>
  182. <groupId>com.sun.mail</groupId>
  183. <artifactId>javax.mail</artifactId>
  184. <version>1.4.7</version>
  185. </dependency>
  186. <dependency>
  187. <groupId>org.springframework.boot</groupId>
  188. <artifactId>spring-boot-starter-mail</artifactId>
  189. </dependency>
  190. <dependency>
  191. <groupId>org.springframework.security</groupId>
  192. <artifactId>spring-security-core</artifactId>
  193. <version>4.2.3.RELEASE</version>
  194. <scope>compile</scope>
  195. </dependency>
  196. <dependency>
  197. <groupId>com.yihu.jw</groupId>
  198. <artifactId>base-service</artifactId>
  199. <version>${version.wlyy-common}</version>
  200. <exclusions>
  201. <exclusion>
  202. <groupId>xalan</groupId>
  203. <artifactId>xalan</artifactId>
  204. </exclusion>
  205. </exclusions>
  206. </dependency>
  207. <dependency>
  208. <groupId>com.yihu.jw</groupId>
  209. <artifactId>sms-service</artifactId>
  210. <version>${version.wlyy-common}</version>
  211. <scope>compile</scope>
  212. </dependency>
  213. <!--oracle驱动-->
  214. <dependency>
  215. <groupId>com.oracle</groupId>
  216. <artifactId>ojdbc6</artifactId>
  217. <version>${version.oracle}</version>
  218. </dependency>
  219. <!-- 添加dm8 jdbc jar 包依赖-->
  220. <dependency>
  221. <groupId>com.dameng</groupId>
  222. <artifactId>DmJdbcDriver18</artifactId>
  223. <version>${version.dmdb}</version>
  224. </dependency>
  225. <dependency>
  226. <groupId>com.dameng</groupId>
  227. <artifactId>DmDialect-for-hibernate5.6</artifactId>
  228. <version>8.1.3.62</version>
  229. </dependency>
  230. <dependency>
  231. <groupId>org.apache.commons</groupId>
  232. <artifactId>commons-pool2</artifactId>
  233. <version>2.4.2</version>
  234. </dependency>
  235. </dependencies>
  236. <build>
  237. <finalName>svr-base</finalName>
  238. <plugins>
  239. <plugin>
  240. <groupId>org.apache.maven.plugins</groupId>
  241. <artifactId>maven-jar-plugin</artifactId>
  242. <version>3.2.0</version>
  243. <configuration>
  244. <archive>
  245. <!-- 生成的jar中,不要包含pom.xml和pom.properties这两个文件 -->
  246. <addMavenDescriptor>false</addMavenDescriptor>
  247. <manifest>
  248. <!-- 是否要把第三方jar加入到类构建路径 -->
  249. <addClasspath>true</addClasspath>
  250. <!-- 外部依赖jar包的最终位置 -->
  251. <classpathPrefix>lib/</classpathPrefix>
  252. <mainClass>com.yihu.SvrBaseApplication</mainClass>
  253. </manifest>
  254. </archive>
  255. </configuration>
  256. </plugin>
  257. <!--拷贝依赖到jar外面的lib目录-->
  258. <plugin>
  259. <groupId>org.apache.maven.plugins</groupId>
  260. <artifactId>maven-dependency-plugin</artifactId>
  261. <version>3.2.0</version>
  262. <executions>
  263. <execution>
  264. <id>copy-lib</id>
  265. <phase>package</phase>
  266. <goals>
  267. <goal>copy-dependencies</goal>
  268. </goals>
  269. <configuration>
  270. <!-- 依赖包输出目录,将来不打进jar包里 -->
  271. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  272. <excludeTransitive>false</excludeTransitive>
  273. <stripVersion>false</stripVersion>
  274. <includeScope>runtime</includeScope>
  275. </configuration>
  276. </execution>
  277. </executions>
  278. </plugin>
  279. <!--指定配置文件,将resources打成外部resource-->
  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运行时会去找到同目录下的resources文件夹下查找 -->
  287. <manifestEntries>
  288. <Class-Path>resources/</Class-Path>
  289. </manifestEntries>
  290. </archive>
  291. <!-- 打包时忽略的文件(也就是不打进jar包里的文件) -->
  292. <excludes>
  293. <exclude>**/*.yml</exclude>
  294. <exclude>**/*.xml</exclude>
  295. </excludes>
  296. </configuration>
  297. </plugin>
  298. <!-- 拷贝资源文件 外面的resource目录-->
  299. <plugin>
  300. <artifactId>maven-resources-plugin</artifactId>
  301. <executions>
  302. <execution>
  303. <id>copy-dependencies</id>
  304. <phase>package</phase>
  305. <goals>
  306. <goal>copy-resources</goal>
  307. </goals>
  308. <configuration>
  309. <!-- 资源文件输出目录 -->
  310. <outputDirectory>${project.build.directory}/resources</outputDirectory>
  311. <resources>
  312. <resource>
  313. <directory>src/main/resources</directory>
  314. </resource>
  315. </resources>
  316. </configuration>
  317. </execution>
  318. </executions>
  319. </plugin>
  320. </plugins>
  321. </build>
  322. </project>