pom.xml 8.9 KB

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