pom.xml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  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.xuxueli</groupId>
  8. <artifactId>xxl-job-executor-samples</artifactId>
  9. <version>1.9.2-SNAPSHOT</version>
  10. </parent>
  11. <artifactId>oa-job</artifactId>
  12. <packaging>jar</packaging>
  13. <name>${project.artifactId}</name>
  14. <description>Example executor project for spring boot.</description>
  15. <url>http://www.xuxueli.com/</url>
  16. <properties>
  17. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  18. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  19. <java.version>1.7</java.version>
  20. <maven.compiler.source>1.8</maven.compiler.source>
  21. <maven.compiler.target>1.8</maven.compiler.target>
  22. </properties>
  23. <dependencyManagement>
  24. <dependencies>
  25. <dependency>
  26. <!-- Import dependency management from Spring Boot (依赖管理:继承一些默认的依赖,工程需要依赖的jar包的管理,申明其他dependency的时候就不需要version) -->
  27. <groupId>org.springframework.boot</groupId>
  28. <artifactId>spring-boot-starter-parent</artifactId>
  29. <version>${spring-boot.version}</version>
  30. <type>pom</type>
  31. <scope>import</scope>
  32. </dependency>
  33. <!-- jetty -->
  34. <dependency>
  35. <groupId>org.eclipse.jetty</groupId>
  36. <artifactId>jetty-server</artifactId>
  37. <version>${jetty-server.version}</version>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.eclipse.jetty</groupId>
  41. <artifactId>jetty-util</artifactId>
  42. <version>${jetty-server.version}</version>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.eclipse.jetty</groupId>
  46. <artifactId>jetty-http</artifactId>
  47. <version>${jetty-server.version}</version>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.eclipse.jetty</groupId>
  51. <artifactId>jetty-io</artifactId>
  52. <version>${jetty-server.version}</version>
  53. </dependency>
  54. </dependencies>
  55. </dependencyManagement>
  56. <dependencies>
  57. <!-- spring-boot-starter-web (spring-webmvc + tomcat) -->
  58. <dependency>
  59. <groupId>org.springframework.boot</groupId>
  60. <artifactId>spring-boot-starter-web</artifactId>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.springframework.boot</groupId>
  64. <artifactId>spring-boot-starter-test</artifactId>
  65. <scope>test</scope>
  66. </dependency>
  67. <!-- xxl-job-core -->
  68. <dependency>
  69. <groupId>com.xuxueli</groupId>
  70. <artifactId>xxl-job-core</artifactId>
  71. <version>${project.parent.version}</version>
  72. </dependency>
  73. <dependency>
  74. <groupId>com.bjlt.spider</groupId>
  75. <artifactId>luyn-utils</artifactId>
  76. <version>2.0.1-SNAPSHOT</version>
  77. <exclusions>
  78. <exclusion>
  79. <groupId>com.bjlt.spider</groupId>
  80. <artifactId>plugin-rpc</artifactId>
  81. </exclusion>
  82. </exclusions>
  83. </dependency>
  84. <dependency>
  85. <groupId>com.squareup.okhttp3</groupId>
  86. <artifactId>okhttp</artifactId>
  87. <version>3.4.1</version>
  88. </dependency>
  89. <dependency>
  90. <groupId>com.alibaba</groupId>
  91. <artifactId>fastjson</artifactId>
  92. <version>1.2.31</version>
  93. </dependency>
  94. <dependency>
  95. <groupId>com.bjlt.mgr</groupId>
  96. <artifactId>mgr_rpc</artifactId>
  97. <version>0.0.1-SNAPSHOT</version>
  98. <exclusions>
  99. <exclusion>
  100. <groupId>com.bjlt.spider</groupId>
  101. <artifactId>plugin-rpc</artifactId>
  102. </exclusion>
  103. </exclusions>
  104. </dependency>
  105. </dependencies>
  106. <!--<build>-->
  107. <!--<plugins>-->
  108. <!--&lt;!&ndash; spring-boot-maven-plugin (提供了直接运行项目的插件:如果是通过parent方式继承spring-boot-starter-parent则不用此插件) &ndash;&gt;-->
  109. <!--<plugin>-->
  110. <!--<groupId>org.springframework.boot</groupId>-->
  111. <!--<artifactId>spring-boot-maven-plugin</artifactId>-->
  112. <!--<executions>-->
  113. <!--<execution>-->
  114. <!--<goals>-->
  115. <!--<goal>repackage</goal>-->
  116. <!--</goals>-->
  117. <!--</execution>-->
  118. <!--</executions>-->
  119. <!--</plugin>-->
  120. <!--</plugins>-->
  121. <!--</build>-->
  122. <build>
  123. <plugins>
  124. <plugin>
  125. <groupId>org.springframework.boot</groupId>
  126. <artifactId>spring-boot-maven-plugin</artifactId>
  127. <configuration>
  128. <mainClass>com.xxl.job.executor.Application</mainClass>
  129. <fork>true</fork>
  130. </configuration>
  131. <executions>
  132. <execution>
  133. <goals>
  134. <goal>repackage</goal>
  135. </goals>
  136. </execution>
  137. </executions>
  138. </plugin>
  139. <plugin>
  140. <groupId>org.apache.maven.plugins</groupId>
  141. <artifactId>maven-compiler-plugin</artifactId>
  142. <configuration>
  143. <source>${maven.compiler.source}</source>
  144. <target>${maven.compiler.target}</target>
  145. </configuration>
  146. </plugin>
  147. <plugin>
  148. <groupId>org.springframework.boot</groupId>
  149. <artifactId>spring-boot-maven-plugin</artifactId>
  150. <configuration>
  151. <!--fork : 如果没有该项配置,肯呢个devtools不会起作用,即应用不会restart -->
  152. <fork>true</fork>
  153. </configuration>
  154. </plugin>
  155. </plugins>
  156. </build>
  157. <repositories>
  158. <repository>
  159. <id>public</id>
  160. <name>public</name>
  161. <url>http://123.103.51.13:8088/nexus/content/groups/public/</url>
  162. <snapshots>
  163. <enabled>true</enabled>
  164. </snapshots>
  165. </repository>
  166. </repositories>
  167. <distributionManagement>
  168. <repository>
  169. <id>releases</id>
  170. <name>releases</name>
  171. <url>http://123.103.51.13:8088/nexus/content/repositories/releases/</url>
  172. </repository>
  173. <snapshotRepository>
  174. <id>snapshots</id>
  175. <name>snapshots</name>
  176. <url>http://123.103.51.13:8088/nexus/content/repositories/snapshots/</url>
  177. </snapshotRepository>
  178. </distributionManagement>
  179. </project>