pom.xml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <artifactId>fm-cloud</artifactId>
  8. <groupId>com.persagy</groupId>
  9. <version>3.0.0</version>
  10. </parent>
  11. <artifactId>fm-person</artifactId>
  12. <version>3.0.0</version>
  13. <packaging>jar</packaging>
  14. <properties>
  15. <platform.version>1.0.0</platform.version>
  16. </properties>
  17. <dependencies>
  18. <!-- 配置中心(包含注册中心) -->
  19. <dependency>
  20. <groupId>com.persagy</groupId>
  21. <artifactId>integrated-config-client</artifactId>
  22. <version>${platform.version}</version>
  23. </dependency>
  24. <!-- 日志 -->
  25. <dependency>
  26. <groupId>com.persagy</groupId>
  27. <artifactId>integrated-log-spring-boot-starter</artifactId>
  28. </dependency>
  29. <!-- feign -->
  30. <dependency>
  31. <groupId>com.persagy</groupId>
  32. <artifactId>integrated-ribbon-spring-boot-starter</artifactId>
  33. <version>${platform.version}</version>
  34. </dependency>
  35. <!-- swagger -->
  36. <dependency>
  37. <groupId>com.persagy</groupId>
  38. <artifactId>integrated-swagger2-spring-boot-starter</artifactId>
  39. <version>${platform.version}</version>
  40. </dependency>
  41. <!-- &lt;!&ndash; prometheus &ndash;&gt;-->
  42. <!-- <dependency>-->
  43. <!-- <groupId>org.springframework.boot</groupId>-->
  44. <!-- <artifactId>spring-boot-starter-actuator</artifactId>-->
  45. <!-- </dependency>-->
  46. <!-- <dependency>-->
  47. <!-- <groupId>io.micrometer</groupId>-->
  48. <!-- <artifactId>micrometer-registry-prometheus</artifactId>-->
  49. <!-- </dependency>-->
  50. <!-- lombok -->
  51. <dependency>
  52. <groupId>org.projectlombok</groupId>
  53. <artifactId>lombok</artifactId>
  54. <optional>true</optional>
  55. </dependency>
  56. <!-- lang -->
  57. <dependency>
  58. <groupId>commons-lang</groupId>
  59. <artifactId>commons-lang</artifactId>
  60. <version>2.5</version>
  61. </dependency>
  62. <!-- gson json,java对象互转 -->
  63. <dependency>
  64. <groupId>com.google.code.gson</groupId>
  65. <artifactId>gson</artifactId>
  66. <version>2.8.6</version>
  67. </dependency>
  68. </dependencies>
  69. <build>
  70. <finalName>fm-person</finalName>
  71. <plugins>
  72. <plugin>
  73. <groupId>org.apache.maven.plugins</groupId>
  74. <artifactId>maven-compiler-plugin</artifactId>
  75. <version>3.8.1</version>
  76. <configuration>
  77. <source>1.8</source>
  78. <target>1.8</target>
  79. <encoding>UTF-8</encoding>
  80. <skip>true</skip>
  81. </configuration>
  82. </plugin>
  83. <plugin>
  84. <groupId>org.springframework.boot</groupId>
  85. <artifactId>spring-boot-maven-plugin</artifactId>
  86. <!-- 指定启动类 -->
  87. <configuration>
  88. <mainClass>com.persagy.ServerApplication</mainClass>
  89. </configuration>
  90. </plugin>
  91. <!-- 按照测试要求打成zip需要的配置 -->
  92. <plugin>
  93. <groupId>com.coderplus.maven.plugins</groupId>
  94. <artifactId>copy-rename-maven-plugin</artifactId>
  95. <version>1.0.1</version>
  96. <executions>
  97. <execution>
  98. <id>rename-file</id>
  99. <phase>compile</phase>
  100. <goals>
  101. <goal>rename</goal>
  102. </goals>
  103. <configuration>
  104. <destinationFile>${project.build.directory}/version.txt</destinationFile>
  105. </configuration>
  106. </execution>
  107. </executions>
  108. </plugin>
  109. <!--拷贝资源文件 copy-resources-->
  110. <plugin>
  111. <artifactId>maven-resources-plugin</artifactId>
  112. <executions>
  113. <execution>
  114. <id>copy-resources</id>
  115. <phase>package</phase>
  116. <goals>
  117. <goal>copy-resources</goal>
  118. </goals>
  119. <configuration>
  120. <resources>
  121. <resource>
  122. <directory>src/main/resources/</directory>
  123. <includes>
  124. <include>**/*.yml</include>
  125. </includes>
  126. </resource>
  127. <resource>
  128. <directory>${project.build.directory}</directory>
  129. <includes>
  130. <include>**/version.txt</include>
  131. </includes>
  132. </resource>
  133. </resources>
  134. <outputDirectory>${project.build.directory}/config</outputDirectory>
  135. </configuration>
  136. </execution>
  137. <!--拷贝启动脚本-->
  138. <execution>
  139. <id>copy-version</id>
  140. <phase>package</phase>
  141. <goals>
  142. <goal>copy-resources</goal>
  143. </goals>
  144. <configuration>
  145. <resources>
  146. <resource>
  147. <directory>src/script</directory>
  148. </resource>
  149. </resources>
  150. <outputDirectory>${project.build.directory}</outputDirectory>
  151. </configuration>
  152. </execution>
  153. </executions>
  154. </plugin>
  155. </plugins>
  156. </build>
  157. </project>