pom.xml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <packaging>jar</packaging>
  6. <parent>
  7. <groupId>com.kakarote</groupId>
  8. <artifactId>wkcrm</artifactId>
  9. <version>0.0.1-SNAPSHOT</version>
  10. </parent>
  11. <artifactId>xxl-job-admin</artifactId>
  12. <version>0.0.1-SNAPSHOT</version>
  13. <name>xxl-job-admin</name>
  14. <description>任务调度中心</description>
  15. <dependencies>
  16. <dependency>
  17. <groupId>com.kakarote</groupId>
  18. <artifactId>core</artifactId>
  19. <version>${core.version}</version>
  20. </dependency>
  21. <dependency>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-starter-integration</artifactId>
  24. <exclusions>
  25. <exclusion>
  26. <groupId>org.springframework.boot</groupId>
  27. <artifactId>spring-boot-starter-logging</artifactId>
  28. </exclusion>
  29. </exclusions>
  30. </dependency>
  31. <dependency>
  32. <groupId>org.springframework.integration</groupId>
  33. <artifactId>spring-integration-ip</artifactId>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.springframework.boot</groupId>
  37. <artifactId>spring-boot-starter-freemarker</artifactId>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.springframework.boot</groupId>
  41. <artifactId>spring-boot-starter-mail</artifactId>
  42. </dependency>
  43. <!-- xxl-job-core -->
  44. <dependency>
  45. <groupId>com.xuxueli</groupId>
  46. <artifactId>xxl-job-core</artifactId>
  47. <version>2.3.0</version>
  48. </dependency>
  49. </dependencies>
  50. <build>
  51. <resources>
  52. <resource>
  53. <!-- xml放在java目录下-->
  54. <directory>src/main/java/com/xxl/job/</directory>
  55. <includes>
  56. <include>**/*.xml</include>
  57. </includes>
  58. </resource>
  59. <!--解决idea不识别resources的问题-->
  60. <resource>
  61. <directory>src/main/resources</directory>
  62. <filtering>true</filtering>
  63. </resource>
  64. </resources>
  65. <plugins>
  66. <!--打包jar-->
  67. <plugin>
  68. <groupId>org.apache.maven.plugins</groupId>
  69. <artifactId>maven-jar-plugin</artifactId>
  70. <configuration>
  71. <archive>
  72. <manifest>
  73. <addClasspath>true</addClasspath>
  74. <!--MANIFEST.MF 中 Class-Path 加入前缀-->
  75. <classpathPrefix>lib/</classpathPrefix>
  76. <!--jar包不包含唯一版本标识-->
  77. <useUniqueVersions>false</useUniqueVersions>
  78. <!--指定入口类-->
  79. <mainClass>com.xxl.job.admin.XxlJobAdminApplication</mainClass>
  80. </manifest>
  81. <manifestEntries>
  82. <!--MANIFEST.MF 中 Class-Path 加入资源文件目录-->
  83. <Class-Path>./config/</Class-Path>
  84. </manifestEntries>
  85. </archive>
  86. <outputDirectory>${project.build.directory}</outputDirectory>
  87. </configuration>
  88. </plugin>
  89. <!--拷贝依赖 copy-dependencies-->
  90. <plugin>
  91. <groupId>org.apache.maven.plugins</groupId>
  92. <artifactId>maven-dependency-plugin</artifactId>
  93. <executions>
  94. <execution>
  95. <id>copy-dependencies</id>
  96. <phase>package</phase>
  97. <goals>
  98. <goal>copy-dependencies</goal>
  99. </goals>
  100. <configuration>
  101. <outputDirectory>
  102. ${project.build.directory}/lib/
  103. </outputDirectory>
  104. </configuration>
  105. </execution>
  106. </executions>
  107. </plugin>
  108. <!--拷贝资源文件 copy-resources-->
  109. <plugin>
  110. <artifactId>maven-resources-plugin</artifactId>
  111. <executions>
  112. <execution>
  113. <id>copy-resources</id>
  114. <phase>package</phase>
  115. <goals>
  116. <goal>copy-resources</goal>
  117. </goals>
  118. <configuration>
  119. <resources>
  120. <resource>
  121. <directory>src/main/resources/</directory>
  122. </resource>
  123. </resources>
  124. <outputDirectory>${project.build.directory}/config</outputDirectory>
  125. </configuration>
  126. </execution>
  127. </executions>
  128. </plugin>
  129. <plugin>
  130. <artifactId>maven-assembly-plugin</artifactId>
  131. <configuration>
  132. <appendAssemblyId>false</appendAssemblyId>
  133. <descriptors>
  134. <descriptor>../assembly.xml</descriptor>
  135. </descriptors>
  136. </configuration>
  137. <executions>
  138. <execution>
  139. <id>make-assembly</id>
  140. <phase>package</phase>
  141. <goals>
  142. <goal>single</goal>
  143. </goals>
  144. </execution>
  145. </executions>
  146. </plugin>
  147. </plugins>
  148. </build>
  149. </project>