pom.xml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>shop.alien</groupId>
  7. <artifactId>alien-cloud</artifactId>
  8. <version>1.0.0</version>
  9. </parent>
  10. <artifactId>alien-job</artifactId>
  11. <version>1.0.0</version>
  12. <name>alien-job</name>
  13. <description>alien-job</description>
  14. <properties>
  15. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  17. </properties>
  18. <dependencies>
  19. <dependency>
  20. <groupId>org.springframework.boot</groupId>
  21. <artifactId>spring-boot-starter</artifactId>
  22. </dependency>
  23. <dependency>
  24. <groupId>org.springframework.boot</groupId>
  25. <artifactId>spring-boot-starter-web</artifactId>
  26. </dependency>
  27. <dependency>
  28. <groupId>org.springframework.boot</groupId>
  29. <artifactId>spring-boot-starter-jdbc</artifactId>
  30. </dependency>
  31. <dependency>
  32. <groupId>io.springfox</groupId>
  33. <artifactId>springfox-swagger2</artifactId>
  34. </dependency>
  35. <dependency>
  36. <groupId>io.swagger</groupId>
  37. <artifactId>swagger-annotations</artifactId>
  38. </dependency>
  39. <dependency>
  40. <groupId>io.swagger</groupId>
  41. <artifactId>swagger-models</artifactId>
  42. </dependency>
  43. <dependency>
  44. <groupId>com.github.xiaoymin</groupId>
  45. <artifactId>swagger-bootstrap-ui</artifactId>
  46. </dependency>
  47. <dependency>
  48. <groupId>com.xuxueli</groupId>
  49. <artifactId>xxl-job-core</artifactId>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.projectlombok</groupId>
  53. <artifactId>lombok</artifactId>
  54. </dependency>
  55. <dependency>
  56. <groupId>shop.alien</groupId>
  57. <artifactId>alien-util</artifactId>
  58. <version>1.0.0</version>
  59. </dependency>
  60. <dependency>
  61. <groupId>shop.alien</groupId>
  62. <artifactId>alien-entity</artifactId>
  63. <version>1.0.0</version>
  64. </dependency>
  65. <dependency>
  66. <groupId>shop.alien</groupId>
  67. <artifactId>alien-config</artifactId>
  68. <version>1.0.0</version>
  69. </dependency>
  70. <dependency>
  71. <groupId>com.alibaba.cloud</groupId>
  72. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  73. </dependency>
  74. <dependency>
  75. <groupId>com.alibaba.cloud</groupId>
  76. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  77. </dependency>
  78. </dependencies>
  79. <build>
  80. <plugins>
  81. <plugin>
  82. <groupId>org.apache.maven.plugins</groupId>
  83. <artifactId>maven-dependency-plugin</artifactId>
  84. <version>3.1.2</version> <!-- 使用最新版本 -->
  85. <executions>
  86. <execution>
  87. <id>copy-dependencies</id>
  88. <phase>prepare-package</phase> <!-- 在package之前执行 -->
  89. <goals>
  90. <goal>copy-dependencies</goal>
  91. </goals>
  92. <configuration>
  93. <outputDirectory>${project.build.directory}/lib</outputDirectory> <!-- 指定输出目录 -->
  94. <includeScope>runtime</includeScope> <!-- 仅包含运行时依赖 -->
  95. </configuration>
  96. </execution>
  97. </executions>
  98. </plugin>
  99. <plugin>
  100. <groupId>org.springframework.boot</groupId>
  101. <artifactId>spring-boot-maven-plugin</artifactId>
  102. <configuration>
  103. <mainClass>shop.alien.job.AlienJobApplication</mainClass>
  104. <layout>ZIP</layout>
  105. <includes>
  106. <include>
  107. <groupId>nothing</groupId>
  108. <artifactId>nothing</artifactId>
  109. </include>
  110. </includes>
  111. </configuration>
  112. <executions>
  113. <execution>
  114. <goals>
  115. <goal>repackage</goal>
  116. </goals>
  117. </execution>
  118. </executions>
  119. </plugin>
  120. <plugin>
  121. <groupId>org.apache.maven.plugins</groupId>
  122. <artifactId>maven-compiler-plugin</artifactId>
  123. <configuration>
  124. <source>8</source>
  125. <target>8</target>
  126. </configuration>
  127. </plugin>
  128. </plugins>
  129. </build>
  130. </project>