pom.xml 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  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.4.0</version>
  10. <relativePath>../../wlyy-parent-pom/pom.xml</relativePath>
  11. </parent>
  12. <groupId>com.yihu.jw</groupId>
  13. <artifactId>svr-basic</artifactId>
  14. <packaging>jar</packaging>
  15. <version>${project.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. <!-- es -->
  29. <!-- ElasticSearch -->
  30. <dependency>
  31. <groupId>org.elasticsearch</groupId>
  32. <artifactId>elasticsearch</artifactId>
  33. <version>2.4.6</version>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.nlpcn</groupId>
  37. <artifactId>elasticsearch-sql</artifactId>
  38. <version>2.4.1.0</version>
  39. </dependency>
  40. <!-- ElasticSearch -->
  41. <dependency>
  42. <groupId>com.github.abel533</groupId>
  43. <artifactId>ECharts</artifactId>
  44. <version>2.2.6</version>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.springframework.boot</groupId>
  48. <artifactId>spring-boot-starter-tomcat</artifactId>
  49. <scope>provided</scope>
  50. </dependency>
  51. <dependency>
  52. <groupId>javax.servlet</groupId>
  53. <artifactId>javax.servlet-api</artifactId>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.apache.tomcat.embed</groupId>
  57. <artifactId>tomcat-embed-jasper</artifactId>
  58. </dependency>
  59. <!-- 支持Tomcat启动 -->
  60. <dependency>
  61. <groupId>org.springframework.cloud</groupId>
  62. <artifactId>spring-cloud-starter-openfeign</artifactId>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.springframework.cloud</groupId>
  66. <artifactId>spring-cloud-starter-config</artifactId>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.springframework.cloud</groupId>
  70. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.springframework.boot</groupId>
  74. <artifactId>spring-boot-starter-data-redis</artifactId>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.springframework.boot</groupId>
  78. <artifactId>spring-boot-starter-activemq</artifactId>
  79. </dependency>
  80. <dependency>
  81. <groupId>javax.servlet</groupId>
  82. <artifactId>javax.servlet-api</artifactId>
  83. </dependency>
  84. <dependency>
  85. <groupId>com.yihu.jw</groupId>
  86. <artifactId>common-request-mapping</artifactId>
  87. </dependency>
  88. <dependency>
  89. <groupId>com.yihu.jw</groupId>
  90. <artifactId>common-util</artifactId>
  91. </dependency>
  92. <dependency>
  93. <groupId>com.yihu.jw</groupId>
  94. <artifactId>swagger-starter</artifactId>
  95. <version>${version.wlyy-common}</version>
  96. </dependency>
  97. <dependency>
  98. <groupId>com.yihu</groupId>
  99. <artifactId>fastdfs-starter</artifactId>
  100. <version>${version.yihu-common}</version>
  101. </dependency>
  102. <dependency>
  103. <groupId>com.yihu.jw</groupId>
  104. <artifactId>commons-data-redis</artifactId>
  105. <version>${version.wlyy-common}</version>
  106. <scope>compile</scope>
  107. </dependency>
  108. <dependency>
  109. <groupId>com.yihu.jw</groupId>
  110. <artifactId>mysql-starter</artifactId>
  111. <version>${version.wlyy-common}</version>
  112. <exclusions>
  113. <exclusion>
  114. <groupId>org.apache.tomcat</groupId>
  115. <artifactId>tomcat-jdbc</artifactId>
  116. </exclusion>
  117. </exclusions>
  118. </dependency>
  119. <dependency>
  120. <groupId>com.yihu.jw</groupId>
  121. <artifactId>common-rest-model</artifactId>
  122. </dependency>
  123. <dependency>
  124. <groupId>com.yihu.jw</groupId>
  125. <artifactId>common-entity</artifactId>
  126. </dependency>
  127. <dependency>
  128. <groupId>com.yihu.jw</groupId>
  129. <artifactId>common-web</artifactId>
  130. </dependency>
  131. <dependency>
  132. <groupId>com.alibaba</groupId>
  133. <artifactId>fastjson</artifactId>
  134. </dependency>
  135. <dependency>
  136. <groupId>io.searchbox</groupId>
  137. <artifactId>jest</artifactId>
  138. <version>${version.jest}</version>
  139. </dependency>
  140. <dependency>
  141. <groupId>org.json</groupId>
  142. <artifactId>json</artifactId>
  143. </dependency>
  144. <dependency>
  145. <groupId>net.sf.json-lib</groupId>
  146. <artifactId>json-lib</artifactId>
  147. </dependency>
  148. <dependency>
  149. <groupId>org.springside</groupId>
  150. <artifactId>springside-core</artifactId>
  151. <version>4.2.3-GA</version>
  152. </dependency>
  153. <!-- <dependency>
  154. <groupId>com.yihu.jw</groupId>
  155. <artifactId>commons-data-query</artifactId>
  156. <scope>compile</scope>
  157. </dependency>-->
  158. </dependencies>
  159. <build>
  160. <finalName>svr-basic</finalName>
  161. <plugins>
  162. <plugin>
  163. <groupId>org.apache.maven.plugins</groupId>
  164. <artifactId>maven-jar-plugin</artifactId>
  165. <version>3.2.0</version>
  166. <configuration>
  167. <archive>
  168. <!-- 生成的jar中,不要包含pom.xml和pom.properties这两个文件 -->
  169. <addMavenDescriptor>false</addMavenDescriptor>
  170. <manifest>
  171. <!-- 是否要把第三方jar加入到类构建路径 -->
  172. <addClasspath>true</addClasspath>
  173. <!-- 外部依赖jar包的最终位置 -->
  174. <classpathPrefix>lib/</classpathPrefix>
  175. <mainClass>com.yihu.jw.SvrEhrBasic</mainClass>
  176. </manifest>
  177. </archive>
  178. </configuration>
  179. </plugin>
  180. <!--拷贝依赖到jar外面的lib目录-->
  181. <plugin>
  182. <groupId>org.apache.maven.plugins</groupId>
  183. <artifactId>maven-dependency-plugin</artifactId>
  184. <version>3.2.0</version>
  185. <executions>
  186. <execution>
  187. <id>copy-lib</id>
  188. <phase>package</phase>
  189. <goals>
  190. <goal>copy-dependencies</goal>
  191. </goals>
  192. <configuration>
  193. <!-- 依赖包输出目录,将来不打进jar包里 -->
  194. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  195. <excludeTransitive>false</excludeTransitive>
  196. <stripVersion>false</stripVersion>
  197. <includeScope>runtime</includeScope>
  198. </configuration>
  199. </execution>
  200. </executions>
  201. </plugin>
  202. <!--指定配置文件,将resources打成外部resource-->
  203. <plugin>
  204. <groupId>org.apache.maven.plugins</groupId>
  205. <artifactId>maven-jar-plugin</artifactId>
  206. <version>3.2.0</version>
  207. <configuration>
  208. <archive>
  209. <!-- 指定配置文件目录,这样jar运行时会去找到同目录下的resources文件夹下查找 -->
  210. <manifestEntries>
  211. <Class-Path>resources/</Class-Path>
  212. </manifestEntries>
  213. </archive>
  214. <!-- 打包时忽略的文件(也就是不打进jar包里的文件) -->
  215. <excludes>
  216. <exclude>**/*.yml</exclude>
  217. <exclude>**/*.xml</exclude>
  218. </excludes>
  219. </configuration>
  220. </plugin>
  221. <!-- 拷贝资源文件 外面的resource目录-->
  222. <plugin>
  223. <artifactId>maven-resources-plugin</artifactId>
  224. <executions>
  225. <execution>
  226. <id>copy-dependencies</id>
  227. <phase>package</phase>
  228. <goals>
  229. <goal>copy-resources</goal>
  230. </goals>
  231. <configuration>
  232. <!-- 资源文件输出目录 -->
  233. <outputDirectory>${project.build.directory}/resources</outputDirectory>
  234. <resources>
  235. <resource>
  236. <directory>src/main/resources</directory>
  237. </resource>
  238. </resources>
  239. </configuration>
  240. </execution>
  241. </executions>
  242. </plugin>
  243. </plugins>
  244. </build>
  245. </project>