pom.xml 6.4 KB

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