pom.xml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  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>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.3.4.RELEASE</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.adisolver</groupId>
  12. <artifactId>adisolver</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>adisolver</name>
  15. <description>Demo project for Spring Boot</description>
  16. <properties>
  17. <java.version>1.8</java.version>
  18. </properties>
  19. <dependencies>
  20. <dependency>
  21. <groupId>org.springframework.boot</groupId>
  22. <artifactId>spring-boot-starter-web</artifactId>
  23. </dependency>
  24. <dependency>
  25. <groupId>org.springframework.boot</groupId>
  26. <artifactId>spring-boot-starter-amqp</artifactId>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.springframework.boot</groupId>
  30. <artifactId>spring-boot-starter-test</artifactId>
  31. <scope>test</scope>
  32. <exclusions>
  33. <exclusion>
  34. <groupId>org.junit.vintage</groupId>
  35. <artifactId>junit-vintage-engine</artifactId>
  36. </exclusion>
  37. </exclusions>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.apache.httpcomponents</groupId>
  41. <artifactId>httpclient</artifactId>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.apache.httpcomponents</groupId>
  45. <artifactId>httpclient-cache</artifactId>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.apache.httpcomponents</groupId>
  49. <artifactId>httpmime</artifactId>
  50. </dependency>
  51. <dependency>
  52. <groupId>net.sf.json-lib</groupId>
  53. <artifactId>json-lib</artifactId>
  54. <version>2.4</version>
  55. <classifier>jdk15</classifier>
  56. </dependency>
  57. <dependency>
  58. <groupId>com.alibaba</groupId>
  59. <artifactId>fastjson</artifactId>
  60. <version>1.2.43</version>
  61. </dependency>
  62. <dependency>
  63. <groupId>commons-net</groupId>
  64. <artifactId>commons-net</artifactId>
  65. <version>3.6</version>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.apache.commons</groupId>
  69. <artifactId>commons-pool2</artifactId>
  70. </dependency>
  71. <dependency>
  72. <groupId>commons-io</groupId>
  73. <artifactId>commons-io</artifactId>
  74. <version>2.5</version>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.elasticsearch.client</groupId>
  78. <artifactId>elasticsearch-rest-high-level-client</artifactId>
  79. <version>7.4.0</version>
  80. <exclusions>
  81. <exclusion>
  82. <groupId>org.elasticsearch</groupId>
  83. <artifactId>elasticsearch</artifactId>
  84. </exclusion>
  85. <exclusion>
  86. <groupId>org.elasticsearch.client</groupId>
  87. <artifactId>elasticsearch-rest-client</artifactId>
  88. </exclusion>
  89. </exclusions>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.elasticsearch.client</groupId>
  93. <artifactId>elasticsearch-rest-client</artifactId>
  94. <version>7.4.0</version>
  95. </dependency>
  96. <dependency>
  97. <groupId>org.elasticsearch</groupId>
  98. <artifactId>elasticsearch</artifactId>
  99. <version>7.4.0</version>
  100. </dependency>
  101. <dependency>
  102. <groupId>org.springframework.amqp</groupId>
  103. <artifactId>spring-rabbit-test</artifactId>
  104. <scope>test</scope>
  105. </dependency>
  106. <dependency>
  107. <groupId>com.jcraft</groupId>
  108. <artifactId>jsch</artifactId>
  109. <version>0.1.53</version>
  110. </dependency>
  111. <dependency>
  112. <groupId>com.xuxueli</groupId>
  113. <artifactId>xxl-job-core</artifactId>
  114. <version>2.3.0</version>
  115. </dependency>
  116. </dependencies>
  117. <build>
  118. <finalName>${project.artifactId}</finalName>
  119. <plugins>
  120. <plugin>
  121. <groupId>org.apache.maven.plugins</groupId>
  122. <artifactId>maven-jar-plugin</artifactId>
  123. <configuration>
  124. <archive>
  125. <manifest>
  126. <!--指定main入口-->
  127. <mainClass>com.caesolver.CaesolverApplication</mainClass>
  128. <addClasspath>true</addClasspath>
  129. <classpathPrefix>lib/</classpathPrefix>
  130. </manifest>
  131. </archive>
  132. </configuration>
  133. </plugin>
  134. <!-- 编码和编译和JDK版本 -->
  135. <plugin>
  136. <groupId>org.apache.maven.plugins</groupId>
  137. <artifactId>maven-dependency-plugin</artifactId>
  138. <executions>
  139. <execution>
  140. <id>copy-dependencies</id>
  141. <phase>package</phase>
  142. <goals>
  143. <goal>copy-dependencies</goal>
  144. </goals>
  145. <configuration>
  146. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  147. </configuration>
  148. </execution>
  149. </executions>
  150. </plugin>
  151. <!--添加打包插件声明 -->
  152. <plugin>
  153. <artifactId>maven-assembly-plugin</artifactId>
  154. <configuration>
  155. <descriptors>
  156. <descriptor>src/main/assembly/assembly.xml</descriptor>
  157. </descriptors>
  158. </configuration>
  159. <!--执行器 mvn assembly:assembly-->
  160. <executions>
  161. <execution>
  162. <!--名字任意 -->
  163. <id>make-assembly</id>
  164. <!-- 绑定到package生命周期阶段上 -->
  165. <phase>package</phase>
  166. <!-- 只运行一次 -->
  167. <goals>
  168. <goal>single</goal>
  169. </goals>
  170. </execution>
  171. </executions>
  172. </plugin>
  173. </plugins>
  174. </build>
  175. </project>