pom.xml 6.1 KB

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