pom.xml 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  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. <!--钉钉sdk-->
  121. <dependency>
  122. <groupId>com.alibaba</groupId>
  123. <artifactId>zwdd-sdk-java</artifactId>
  124. <version>1.2.0</version>
  125. </dependency>
  126. <dependency>
  127. <groupId>com.yihu.jw</groupId>
  128. <artifactId>sms-service</artifactId>
  129. <version>2.0.0</version>
  130. <scope>compile</scope>
  131. </dependency>
  132. <dependency>
  133. <groupId>com.yihu.jw</groupId>
  134. <artifactId>base-service</artifactId>
  135. <version>2.0.0</version>
  136. <scope>compile</scope>
  137. <exclusions>
  138. <exclusion>
  139. <groupId>xalan</groupId>
  140. <artifactId>xalan</artifactId>
  141. </exclusion>
  142. </exclusions>
  143. </dependency>
  144. <dependency>
  145. <groupId>com.yihu.jw</groupId>
  146. <artifactId>im-service</artifactId>
  147. <version>2.0.0</version>
  148. <scope>compile</scope>
  149. </dependency>
  150. <!-- <dependency>
  151. <groupId>org.springframework.cloud</groupId>
  152. <artifactId>spring-cloud-commons</artifactId>
  153. </dependency>-->
  154. </dependencies>
  155. <build>
  156. <finalName>svr-cloud-job</finalName>
  157. <plugins>
  158. <plugin>
  159. <groupId>org.apache.maven.plugins</groupId>
  160. <artifactId>maven-jar-plugin</artifactId>
  161. <configuration>
  162. <archive>
  163. <!-- 生成的jar中,不要包含pom.xml和pom.properties这两个文件 -->
  164. <addMavenDescriptor>false</addMavenDescriptor>
  165. <manifest>
  166. <!-- 是否要把第三方jar加入到类构建路径 -->
  167. <addClasspath>true</addClasspath>
  168. <!-- 外部依赖jar包的最终位置 -->
  169. <classpathPrefix>lib/</classpathPrefix>
  170. <mainClass>com.yihu.CloudApplicationJob</mainClass>
  171. </manifest>
  172. </archive>
  173. </configuration>
  174. </plugin>
  175. <!--拷贝依赖到jar外面的lib目录-->
  176. <plugin>
  177. <groupId>org.apache.maven.plugins</groupId>
  178. <artifactId>maven-dependency-plugin</artifactId>
  179. <executions>
  180. <execution>
  181. <id>copy-lib</id>
  182. <phase>package</phase>
  183. <goals>
  184. <goal>copy-dependencies</goal>
  185. </goals>
  186. <configuration>
  187. <!-- 依赖包输出目录,将来不打进jar包里 -->
  188. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  189. <excludeTransitive>false</excludeTransitive>
  190. <stripVersion>false</stripVersion>
  191. <includeScope>runtime</includeScope>
  192. </configuration>
  193. </execution>
  194. </executions>
  195. </plugin>
  196. <!--指定配置文件,将resources打成外部resource-->
  197. <plugin>
  198. <groupId>org.apache.maven.plugins</groupId>
  199. <artifactId>maven-jar-plugin</artifactId>
  200. <configuration>
  201. <archive>
  202. <!-- 指定配置文件目录,这样jar运行时会去找到同目录下的resources文件夹下查找 -->
  203. <manifestEntries>
  204. <Class-Path>resources/</Class-Path>
  205. </manifestEntries>
  206. </archive>
  207. <!-- 打包时忽略的文件(也就是不打进jar包里的文件) -->
  208. <excludes>
  209. <exclude>**/*.yml</exclude>
  210. <exclude>**/*.xml</exclude>
  211. </excludes>
  212. </configuration>
  213. </plugin>
  214. <!-- 拷贝资源文件 外面的resource目录-->
  215. <plugin>
  216. <artifactId>maven-resources-plugin</artifactId>
  217. <executions>
  218. <execution>
  219. <id>copy-dependencies</id>
  220. <phase>package</phase>
  221. <goals>
  222. <goal>copy-resources</goal>
  223. </goals>
  224. <configuration>
  225. <!-- 资源文件输出目录 -->
  226. <outputDirectory>${project.build.directory}/resources</outputDirectory>
  227. <resources>
  228. <resource>
  229. <directory>src/main/resources</directory>
  230. </resource>
  231. </resources>
  232. </configuration>
  233. </execution>
  234. </executions>
  235. </plugin>
  236. </plugins>
  237. </build>
  238. </project>