pom.xml 11 KB

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