pom.xml 11 KB

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