pom.xml 9.1 KB

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