pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  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-base</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.cloud</groupId>-->
  57. <!--<artifactId>spring-cloud-starter-zipkin</artifactId>-->
  58. <!--</dependency>-->
  59. <dependency>
  60. <groupId>org.springframework.boot</groupId>
  61. <artifactId>spring-boot-starter-activemq</artifactId>
  62. </dependency>
  63. <dependency>
  64. <groupId>com.yihu.jw</groupId>
  65. <artifactId>im-service</artifactId>
  66. <version>2.0.0</version>
  67. <scope>compile</scope>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.json</groupId>
  71. <artifactId>json</artifactId>
  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>com.yihu.jw</groupId>
  83. <artifactId>common-request-mapping</artifactId>
  84. </dependency>
  85. <dependency>
  86. <groupId>com.yihu.jw</groupId>
  87. <artifactId>common-exception</artifactId>
  88. </dependency>
  89. <dependency>
  90. <groupId>com.yihu.jw</groupId>
  91. <artifactId>common-util</artifactId>
  92. </dependency>
  93. <dependency>
  94. <groupId>com.yihu.jw</groupId>
  95. <artifactId>common-web</artifactId>
  96. </dependency>
  97. <!--<dependency>-->
  98. <!--<groupId>com.yihu.jw</groupId>-->
  99. <!--<artifactId>common-tracer</artifactId>-->
  100. <!--</dependency>-->
  101. <!-- 文件服务器 -->
  102. <dependency>
  103. <groupId>com.yihu</groupId>
  104. <artifactId>fastdfs-starter</artifactId>
  105. <version>2.0.0</version>
  106. </dependency>
  107. <!-- Jzkl Starter -->
  108. <dependency>
  109. <groupId>com.yihu.jw</groupId>
  110. <artifactId>swagger-starter</artifactId>
  111. <version>2.0.0</version>
  112. </dependency>
  113. <dependency>
  114. <groupId>com.yihu</groupId>
  115. <artifactId>mysql-starter</artifactId>
  116. <version>2.0.0</version>
  117. <exclusions>
  118. <exclusion>
  119. <groupId>org.apache.tomcat</groupId>
  120. <artifactId>tomcat-jdbc</artifactId>
  121. </exclusion>
  122. </exclusions>
  123. </dependency>
  124. <dependency>
  125. <groupId>com.zaxxer</groupId>
  126. <artifactId>HikariCP</artifactId>
  127. <!-- <scope>runtime</scope> -->
  128. </dependency>
  129. <dependency>
  130. <groupId>com.yihu</groupId>
  131. <artifactId>elasticsearch-starter</artifactId>
  132. <version>2.0.0</version>
  133. </dependency>
  134. <dependency>
  135. <groupId>io.github.swagger2markup</groupId>
  136. <artifactId>swagger2markup</artifactId>
  137. <version>1.3.2</version>
  138. <exclusions>
  139. <exclusion>
  140. <artifactId>mailapi</artifactId>
  141. <groupId>javax.mail</groupId>
  142. </exclusion>
  143. </exclusions>
  144. </dependency>
  145. <!-- 发送邮件 -->
  146. <dependency>
  147. <groupId>com.sun.mail</groupId>
  148. <artifactId>javax.mail</artifactId>
  149. <version>1.4.7</version>
  150. </dependency>
  151. <dependency>
  152. <groupId>org.springframework.boot</groupId>
  153. <artifactId>spring-boot-starter-mail</artifactId>
  154. </dependency>
  155. <!-- poi xml导入导出工具 start-->
  156. <dependency>
  157. <groupId>org.apache.poi</groupId>
  158. <artifactId>poi</artifactId>
  159. <exclusions>
  160. <exclusion>
  161. <groupId>com.yihu.ehr</groupId>
  162. <artifactId>commons-util</artifactId>
  163. </exclusion>
  164. <exclusion>
  165. <groupId>org.apache.commons</groupId>
  166. <artifactId>commons-collections4</artifactId>
  167. </exclusion>
  168. </exclusions>
  169. </dependency>
  170. <dependency>
  171. <groupId>org.apache.poi</groupId>
  172. <artifactId>poi-ooxml</artifactId>
  173. </dependency>
  174. <!-- xlsx 依赖这个包 -->
  175. <dependency>
  176. <groupId>org.apache.poi</groupId>
  177. <artifactId>poi-ooxml-schemas</artifactId>
  178. </dependency>
  179. <dependency>
  180. <groupId>org.springframework.security</groupId>
  181. <artifactId>spring-security-core</artifactId>
  182. <version>4.2.3.RELEASE</version>
  183. <scope>compile</scope>
  184. </dependency>
  185. <dependency>
  186. <groupId>com.yihu.jw</groupId>
  187. <artifactId>base-service</artifactId>
  188. <version>2.0.0</version>
  189. <exclusions>
  190. <exclusion>
  191. <groupId>xalan</groupId>
  192. <artifactId>xalan</artifactId>
  193. </exclusion>
  194. </exclusions>
  195. </dependency>
  196. <dependency>
  197. <groupId>com.yihu.jw</groupId>
  198. <artifactId>sms-service</artifactId>
  199. <version>2.0.0</version>
  200. <scope>compile</scope>
  201. </dependency>
  202. <!-- poi xml导入导出工具 end -->
  203. <!--oracle驱动-->
  204. <dependency>
  205. <groupId>com.oracle</groupId>
  206. <artifactId>ojdbc6</artifactId>
  207. <version>11.2.0.3</version>
  208. </dependency>
  209. </dependencies>
  210. <build>
  211. <finalName>svr-base</finalName>
  212. <plugins>
  213. <plugin>
  214. <groupId>org.apache.maven.plugins</groupId>
  215. <artifactId>maven-jar-plugin</artifactId>
  216. <configuration>
  217. <archive>
  218. <!-- 生成的jar中,不要包含pom.xml和pom.properties这两个文件 -->
  219. <addMavenDescriptor>false</addMavenDescriptor>
  220. <manifest>
  221. <!-- 是否要把第三方jar加入到类构建路径 -->
  222. <addClasspath>true</addClasspath>
  223. <!-- 外部依赖jar包的最终位置 -->
  224. <classpathPrefix>lib/</classpathPrefix>
  225. <mainClass>com.yihu.SvrBaseApplication</mainClass>
  226. </manifest>
  227. </archive>
  228. </configuration>
  229. </plugin>
  230. <!--拷贝依赖到jar外面的lib目录-->
  231. <plugin>
  232. <groupId>org.apache.maven.plugins</groupId>
  233. <artifactId>maven-dependency-plugin</artifactId>
  234. <executions>
  235. <execution>
  236. <id>copy-lib</id>
  237. <phase>package</phase>
  238. <goals>
  239. <goal>copy-dependencies</goal>
  240. </goals>
  241. <configuration>
  242. <!-- 依赖包输出目录,将来不打进jar包里 -->
  243. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  244. <excludeTransitive>false</excludeTransitive>
  245. <stripVersion>false</stripVersion>
  246. <includeScope>runtime</includeScope>
  247. </configuration>
  248. </execution>
  249. </executions>
  250. </plugin>
  251. <!--指定配置文件,将resources打成外部resource-->
  252. <plugin>
  253. <groupId>org.apache.maven.plugins</groupId>
  254. <artifactId>maven-jar-plugin</artifactId>
  255. <configuration>
  256. <archive>
  257. <!-- 指定配置文件目录,这样jar运行时会去找到同目录下的resources文件夹下查找 -->
  258. <manifestEntries>
  259. <Class-Path>resources/</Class-Path>
  260. </manifestEntries>
  261. </archive>
  262. <!-- 打包时忽略的文件(也就是不打进jar包里的文件) -->
  263. <excludes>
  264. <exclude>**/*.yml</exclude>
  265. <exclude>**/*.xml</exclude>
  266. </excludes>
  267. </configuration>
  268. </plugin>
  269. <!-- 拷贝资源文件 外面的resource目录-->
  270. <plugin>
  271. <artifactId>maven-resources-plugin</artifactId>
  272. <executions>
  273. <execution>
  274. <id>copy-dependencies</id>
  275. <phase>package</phase>
  276. <goals>
  277. <goal>copy-resources</goal>
  278. </goals>
  279. <configuration>
  280. <!-- 资源文件输出目录 -->
  281. <outputDirectory>${project.build.directory}/resources</outputDirectory>
  282. <resources>
  283. <resource>
  284. <directory>src/main/resources</directory>
  285. </resource>
  286. </resources>
  287. </configuration>
  288. </execution>
  289. </executions>
  290. </plugin>
  291. </plugins>
  292. </build>
  293. </project>