pom.xml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
  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.5.4</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.jiayue</groupId>
  12. <artifactId>ipfcst-client</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>ipfcst-client</name>
  15. <description>ipfcst-client</description>
  16. <properties>
  17. <java.version>1.8</java.version>
  18. <spring-boot-admin.version>2.4.3</spring-boot-admin.version>
  19. <hutool.version>5.7.13</hutool.version>
  20. </properties>
  21. <dependencies>
  22. <dependency>
  23. <groupId>org.springframework.boot</groupId>
  24. <artifactId>spring-boot-starter-jdbc</artifactId>
  25. </dependency>
  26. <dependency>
  27. <groupId>org.springframework.boot</groupId>
  28. <artifactId>spring-boot-starter-quartz</artifactId>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.springframework.boot</groupId>
  32. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.springframework.boot</groupId>
  36. <artifactId>spring-boot-starter-web</artifactId>
  37. </dependency>
  38. <dependency>
  39. <groupId>de.codecentric</groupId>
  40. <artifactId>spring-boot-admin-starter-client</artifactId>
  41. </dependency>
  42. <dependency>
  43. <groupId>mysql</groupId>
  44. <artifactId>mysql-connector-java</artifactId>
  45. <scope>runtime</scope>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.projectlombok</groupId>
  49. <artifactId>lombok</artifactId>
  50. <optional>true</optional>
  51. </dependency>
  52. <dependency>
  53. <groupId>org.springframework.boot</groupId>
  54. <artifactId>spring-boot-starter-test</artifactId>
  55. <scope>test</scope>
  56. </dependency>
  57. <!--hutool-->
  58. <dependency>
  59. <groupId>cn.hutool</groupId>
  60. <artifactId>hutool-all</artifactId>
  61. <version>${hutool.version}</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>junit</groupId>
  65. <artifactId>junit</artifactId>
  66. <scope>test</scope>
  67. </dependency>
  68. <dependency>
  69. <groupId>ch.ethz.ganymed</groupId>
  70. <artifactId>ganymed-ssh2</artifactId>
  71. <version>build210</version>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.jetbrains</groupId>
  75. <artifactId>annotations</artifactId>
  76. <version>RELEASE</version>
  77. <scope>compile</scope>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.apache.commons</groupId>
  81. <artifactId>commons-collections4</artifactId>
  82. <version>4.4</version>
  83. </dependency>
  84. </dependencies>
  85. <dependencyManagement>
  86. <dependencies>
  87. <dependency>
  88. <groupId>de.codecentric</groupId>
  89. <artifactId>spring-boot-admin-dependencies</artifactId>
  90. <version>${spring-boot-admin.version}</version>
  91. <type>pom</type>
  92. <scope>import</scope>
  93. </dependency>
  94. </dependencies>
  95. </dependencyManagement>
  96. <build>
  97. <finalName>focus-client</finalName>
  98. <plugins>
  99. <plugin>
  100. <groupId>org.codehaus.mojo</groupId>
  101. <artifactId>build-helper-maven-plugin</artifactId>
  102. <version>1.9.1</version>
  103. <executions>
  104. <execution>
  105. <id>timestamp-property</id>
  106. <goals>
  107. <goal>timestamp-property</goal>
  108. </goals>
  109. </execution>
  110. </executions>
  111. <configuration>
  112. <name>current.time</name>
  113. <pattern>yyyy-MM-dd HH:mm:ss</pattern>
  114. <timeZone>GMT+8</timeZone>
  115. </configuration>
  116. </plugin>
  117. <!-- jar运行配置 -->
  118. <plugin>
  119. <groupId>org.springframework.boot</groupId>
  120. <artifactId>spring-boot-maven-plugin</artifactId>
  121. <configuration>
  122. <!-- main 入口 -->
  123. <mainClass>com.jiayue.client.IpfcstClientApplication</mainClass>
  124. <!-- 设置为ZIP,此模式下spring-boot-maven-plugin会将Manifest.MF文件中的Main-Class设置为org.springframework.boot.loader.PropertiesLauncher -->
  125. <layout>ZIP</layout>
  126. <!-- 需要包含的jar包 -->
  127. <includes>
  128. <!-- 不包含任何jar包 -->
  129. <include>
  130. <groupId>nothing</groupId>
  131. <artifactId>nothing</artifactId>
  132. </include>
  133. </includes>
  134. </configuration>
  135. <executions>
  136. <execution>
  137. <goals>
  138. <goal>build-info</goal>
  139. <goal>repackage</goal>
  140. </goals>
  141. </execution>
  142. </executions>
  143. </plugin>
  144. <!-- third-party jar into lib directory -->
  145. <plugin>
  146. <groupId>org.apache.maven.plugins</groupId>
  147. <artifactId>maven-dependency-plugin</artifactId>
  148. <executions>
  149. <execution>
  150. <id>copy-dependencies</id>
  151. <phase>prepare-package</phase>
  152. <goals>
  153. <goal>copy-dependencies</goal>
  154. </goals>
  155. <configuration>
  156. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  157. <!-- 需要排除的jar的 groupId
  158. <excludeGroupIds>
  159. com.bdfint.logistics
  160. </excludeGroupIds>-->
  161. </configuration>
  162. </execution>
  163. </executions>
  164. </plugin>
  165. </plugins>
  166. </build>
  167. </project>