pom.xml 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  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-door-service</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.cloud</groupId>
  48. <artifactId>spring-cloud-starter-eureka</artifactId>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.springframework.cloud</groupId>
  52. <artifactId>spring-cloud-starter-config</artifactId>
  53. </dependency>
  54. <dependency>
  55. <groupId>com.alibaba</groupId>
  56. <artifactId>fastjson</artifactId>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.json</groupId>
  60. <artifactId>json</artifactId>
  61. <version>${version.json}</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>com.yihu.jw</groupId>
  65. <artifactId>common-entity</artifactId>
  66. </dependency>
  67. <dependency>
  68. <groupId>com.yihu.jw</groupId>
  69. <artifactId>common-entity-es</artifactId>
  70. </dependency>
  71. <dependency>
  72. <groupId>com.yihu.jw</groupId>
  73. <artifactId>common-request-mapping</artifactId>
  74. </dependency>
  75. <dependency>
  76. <groupId>com.yihu.jw</groupId>
  77. <artifactId>common-exception</artifactId>
  78. </dependency>
  79. <dependency>
  80. <groupId>com.yihu.jw</groupId>
  81. <artifactId>common-rest-model</artifactId>
  82. </dependency>
  83. <dependency>
  84. <groupId>com.yihu.jw</groupId>
  85. <artifactId>common-util</artifactId>
  86. </dependency>
  87. <!--基础业务组件-->
  88. <dependency>
  89. <groupId>com.yihu.jw</groupId>
  90. <artifactId>base-service</artifactId>
  91. <version>2.0.0</version>
  92. <exclusions>
  93. <exclusion>
  94. <groupId>xalan</groupId>
  95. <artifactId>xalan</artifactId>
  96. </exclusion>
  97. </exclusions>
  98. </dependency>
  99. <dependency>
  100. <groupId>com.yihu.jw</groupId>
  101. <artifactId>im-service</artifactId>
  102. <version>2.0.0</version>
  103. </dependency>
  104. <dependency>
  105. <groupId>com.yihu.jw</groupId>
  106. <artifactId>es-service</artifactId>
  107. <version>2.0.0</version>
  108. </dependency>
  109. <!-- jkzl starter -->
  110. <dependency>
  111. <groupId>com.yihu</groupId>
  112. <artifactId>swagger-starter</artifactId>
  113. <version>2.0.0</version>
  114. </dependency>
  115. <dependency>
  116. <groupId>com.yihu</groupId>
  117. <artifactId>mysql-starter</artifactId>
  118. <version>2.0.0</version>
  119. <exclusions>
  120. <exclusion>
  121. <groupId>org.apache.tomcat</groupId>
  122. <artifactId>tomcat-jdbc</artifactId>
  123. </exclusion>
  124. </exclusions>
  125. </dependency>
  126. <dependency>
  127. <groupId>com.zaxxer</groupId>
  128. <artifactId>HikariCP</artifactId>
  129. <!-- <scope>runtime</scope> -->
  130. </dependency>
  131. <dependency>
  132. <groupId>com.yihu</groupId>
  133. <artifactId>fastdfs-starter</artifactId>
  134. <version>2.0.0</version>
  135. </dependency>
  136. <dependency>
  137. <groupId>net.sourceforge.jexcelapi</groupId>
  138. <artifactId>jxl</artifactId>
  139. <version>2.6</version>
  140. </dependency>
  141. <!-- redis start -->
  142. <dependency>
  143. <groupId>org.springframework.boot</groupId>
  144. <artifactId>spring-boot-starter-data-redis</artifactId>
  145. </dependency>
  146. <dependency>
  147. <groupId>com.yihu.jw</groupId>
  148. <artifactId>common-entity-es</artifactId>
  149. </dependency>
  150. <!-- redis end -->
  151. </dependencies>
  152. <build>
  153. <finalName>svr-door-service</finalName>
  154. <plugins>
  155. <plugin>
  156. <groupId>org.apache.maven.plugins</groupId>
  157. <artifactId>maven-jar-plugin</artifactId>
  158. <configuration>
  159. <archive>
  160. <!-- 生成的jar中,不要包含pom.xml和pom.properties这两个文件 -->
  161. <addMavenDescriptor>false</addMavenDescriptor>
  162. <manifest>
  163. <!-- 是否要把第三方jar加入到类构建路径 -->
  164. <addClasspath>true</addClasspath>
  165. <!-- 外部依赖jar包的最终位置 -->
  166. <classpathPrefix>lib/</classpathPrefix>
  167. <mainClass>com.yihu.SvrDoorServiceApplication</mainClass>
  168. </manifest>
  169. </archive>
  170. </configuration>
  171. </plugin>
  172. <!--拷贝依赖到jar外面的lib目录-->
  173. <plugin>
  174. <groupId>org.apache.maven.plugins</groupId>
  175. <artifactId>maven-dependency-plugin</artifactId>
  176. <executions>
  177. <execution>
  178. <id>copy-lib</id>
  179. <phase>package</phase>
  180. <goals>
  181. <goal>copy-dependencies</goal>
  182. </goals>
  183. <configuration>
  184. <!-- 依赖包输出目录,将来不打进jar包里 -->
  185. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  186. <excludeTransitive>false</excludeTransitive>
  187. <stripVersion>false</stripVersion>
  188. <includeScope>runtime</includeScope>
  189. </configuration>
  190. </execution>
  191. </executions>
  192. </plugin>
  193. <!--指定配置文件,将resources打成外部resource-->
  194. <plugin>
  195. <groupId>org.apache.maven.plugins</groupId>
  196. <artifactId>maven-jar-plugin</artifactId>
  197. <configuration>
  198. <archive>
  199. <!-- 指定配置文件目录,这样jar运行时会去找到同目录下的resources文件夹下查找 -->
  200. <manifestEntries>
  201. <Class-Path>resources/</Class-Path>
  202. </manifestEntries>
  203. </archive>
  204. <!-- 打包时忽略的文件(也就是不打进jar包里的文件) -->
  205. <excludes>
  206. <exclude>**/*.yml</exclude>
  207. <exclude>**/*.xml</exclude>
  208. </excludes>
  209. </configuration>
  210. </plugin>
  211. <!-- 拷贝资源文件 外面的resource目录-->
  212. <plugin>
  213. <artifactId>maven-resources-plugin</artifactId>
  214. <executions>
  215. <execution>
  216. <id>copy-dependencies</id>
  217. <phase>package</phase>
  218. <goals>
  219. <goal>copy-resources</goal>
  220. </goals>
  221. <configuration>
  222. <!-- 资源文件输出目录 -->
  223. <outputDirectory>${project.build.directory}/resources</outputDirectory>
  224. <resources>
  225. <resource>
  226. <directory>src/main/resources</directory>
  227. </resource>
  228. </resources>
  229. </configuration>
  230. </execution>
  231. </executions>
  232. </plugin>
  233. </plugins>
  234. </build>
  235. </project>