pom.xml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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.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. </dependencies>
  74. <dependencyManagement>
  75. <dependencies>
  76. <dependency>
  77. <groupId>de.codecentric</groupId>
  78. <artifactId>spring-boot-admin-dependencies</artifactId>
  79. <version>${spring-boot-admin.version}</version>
  80. <type>pom</type>
  81. <scope>import</scope>
  82. </dependency>
  83. </dependencies>
  84. </dependencyManagement>
  85. <build>
  86. <finalName>focus-client</finalName>
  87. <plugins>
  88. <plugin>
  89. <groupId>org.codehaus.mojo</groupId>
  90. <artifactId>build-helper-maven-plugin</artifactId>
  91. <version>1.9.1</version>
  92. <executions>
  93. <execution>
  94. <id>timestamp-property</id>
  95. <goals>
  96. <goal>timestamp-property</goal>
  97. </goals>
  98. </execution>
  99. </executions>
  100. <configuration>
  101. <name>current.time</name>
  102. <pattern>yyyy-MM-dd HH:mm:ss</pattern>
  103. <timeZone>GMT+8</timeZone>
  104. </configuration>
  105. </plugin>
  106. <!-- jar运行配置 -->
  107. <plugin>
  108. <groupId>org.springframework.boot</groupId>
  109. <artifactId>spring-boot-maven-plugin</artifactId>
  110. <configuration>
  111. <!-- main 入口 -->
  112. <mainClass>com.jiayue.client.IpfcstClientApplication</mainClass>
  113. <!-- 设置为ZIP,此模式下spring-boot-maven-plugin会将Manifest.MF文件中的Main-Class设置为org.springframework.boot.loader.PropertiesLauncher -->
  114. <layout>ZIP</layout>
  115. <!-- 需要包含的jar包 -->
  116. <includes>
  117. <!-- 不包含任何jar包 -->
  118. <include>
  119. <groupId>nothing</groupId>
  120. <artifactId>nothing</artifactId>
  121. </include>
  122. </includes>
  123. </configuration>
  124. <executions>
  125. <execution>
  126. <goals>
  127. <goal>build-info</goal>
  128. <goal>repackage</goal>
  129. </goals>
  130. </execution>
  131. </executions>
  132. </plugin>
  133. <!-- third-party jar into lib directory -->
  134. <plugin>
  135. <groupId>org.apache.maven.plugins</groupId>
  136. <artifactId>maven-dependency-plugin</artifactId>
  137. <executions>
  138. <execution>
  139. <id>copy-dependencies</id>
  140. <phase>prepare-package</phase>
  141. <goals>
  142. <goal>copy-dependencies</goal>
  143. </goals>
  144. <configuration>
  145. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  146. <!-- 需要排除的jar的 groupId
  147. <excludeGroupIds>
  148. com.bdfint.logistics
  149. </excludeGroupIds>-->
  150. </configuration>
  151. </execution>
  152. </executions>
  153. </plugin>
  154. </plugins>
  155. </build>
  156. </project>