pom.xml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  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. <dependency>
  69. <groupId>com.persagy</groupId>
  70. <artifactId>fm-translate</artifactId>
  71. <version>3.0.0</version>
  72. <scope>compile</scope>
  73. </dependency>
  74. </dependencies>
  75. <build>
  76. <finalName>fm-person</finalName>
  77. <plugins>
  78. <plugin>
  79. <groupId>org.apache.maven.plugins</groupId>
  80. <artifactId>maven-compiler-plugin</artifactId>
  81. <version>3.8.1</version>
  82. <configuration>
  83. <source>1.8</source>
  84. <target>1.8</target>
  85. <encoding>UTF-8</encoding>
  86. <skip>true</skip>
  87. </configuration>
  88. </plugin>
  89. <plugin>
  90. <groupId>org.springframework.boot</groupId>
  91. <artifactId>spring-boot-maven-plugin</artifactId>
  92. <!-- 指定启动类 -->
  93. <configuration>
  94. <mainClass>com.persagy.ServerApplication</mainClass>
  95. </configuration>
  96. </plugin>
  97. <!-- 按照测试要求打成zip需要的配置 -->
  98. <plugin>
  99. <groupId>com.coderplus.maven.plugins</groupId>
  100. <artifactId>copy-rename-maven-plugin</artifactId>
  101. <version>1.0.1</version>
  102. <executions>
  103. <execution>
  104. <id>rename-file</id>
  105. <phase>compile</phase>
  106. <goals>
  107. <goal>rename</goal>
  108. </goals>
  109. <configuration>
  110. <destinationFile>${project.build.directory}/version.txt</destinationFile>
  111. </configuration>
  112. </execution>
  113. </executions>
  114. </plugin>
  115. <!--拷贝资源文件 copy-resources-->
  116. <plugin>
  117. <artifactId>maven-resources-plugin</artifactId>
  118. <executions>
  119. <execution>
  120. <id>copy-resources</id>
  121. <phase>package</phase>
  122. <goals>
  123. <goal>copy-resources</goal>
  124. </goals>
  125. <configuration>
  126. <resources>
  127. <resource>
  128. <directory>src/main/resources/</directory>
  129. <includes>
  130. <include>**/*.yml</include>
  131. </includes>
  132. </resource>
  133. <resource>
  134. <directory>${project.build.directory}</directory>
  135. <includes>
  136. <include>**/version.txt</include>
  137. </includes>
  138. </resource>
  139. </resources>
  140. <outputDirectory>${project.build.directory}/config</outputDirectory>
  141. </configuration>
  142. </execution>
  143. <!--拷贝启动脚本-->
  144. <execution>
  145. <id>copy-version</id>
  146. <phase>package</phase>
  147. <goals>
  148. <goal>copy-resources</goal>
  149. </goals>
  150. <configuration>
  151. <resources>
  152. <resource>
  153. <directory>src/script</directory>
  154. </resource>
  155. </resources>
  156. <outputDirectory>${project.build.directory}</outputDirectory>
  157. </configuration>
  158. </execution>
  159. </executions>
  160. </plugin>
  161. </plugins>
  162. </build>
  163. </project>