pom.xml 6.7 KB

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