pom.xml 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xmlns="http://maven.apache.org/POM/4.0.0"
  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. <groupId>org.springblade</groupId>
  7. <artifactId>wt-service-okr</artifactId>
  8. <version>2.9.1.RELEASE</version>
  9. <packaging>pom</packaging>
  10. <modules>
  11. <module>blade-biz-common</module>
  12. <module>blade-service</module>
  13. <module>blade-service-api</module>
  14. </modules>
  15. <properties>
  16. <bladex.project.version>2.9.1.RELEASE</bladex.project.version>
  17. <java.version>1.8</java.version>
  18. <maven.plugin.version>3.8.1</maven.plugin.version>
  19. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  20. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  21. <spring.boot.version>2.3.12.RELEASE</spring.boot.version>
  22. <spring.cloud.version>Hoxton.SR12</spring.cloud.version>
  23. <spring.platform.version>Cairo-SR8</spring.platform.version>
  24. <!-- 推荐使用Harbor -->
  25. <docker.registry.url>192.168.0.157</docker.registry.url>
  26. <docker.registry.host>http://${docker.registry.url}:2375</docker.registry.host>
  27. <docker.username>admin</docker.username>
  28. <docker.password>Harbor12345</docker.password>
  29. <docker.namespace>blade</docker.namespace>
  30. <docker.plugin.version>1.4.13</docker.plugin.version>
  31. </properties>
  32. <dependencyManagement>
  33. <dependencies>
  34. <dependency>
  35. <groupId>org.springblade.platform</groupId>
  36. <artifactId>blade-bom</artifactId>
  37. <version>${bladex.project.version}</version>
  38. <type>pom</type>
  39. <scope>import</scope>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.springblade</groupId>
  43. <artifactId>blade-biz-common</artifactId>
  44. <version>2.9.1.RELEASE</version>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.springframework.boot</groupId>
  48. <artifactId>spring-boot-dependencies</artifactId>
  49. <version>${spring.boot.version}</version>
  50. <type>pom</type>
  51. <scope>import</scope>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.springframework.cloud</groupId>
  55. <artifactId>spring-cloud-dependencies</artifactId>
  56. <version>${spring.cloud.version}</version>
  57. <type>pom</type>
  58. <scope>import</scope>
  59. </dependency>
  60. <dependency>
  61. <groupId>io.spring.platform</groupId>
  62. <artifactId>platform-bom</artifactId>
  63. <version>${spring.platform.version}</version>
  64. <type>pom</type>
  65. <scope>import</scope>
  66. </dependency>
  67. </dependencies>
  68. </dependencyManagement>
  69. <dependencies>
  70. <dependency>
  71. <groupId>org.projectlombok</groupId>
  72. <artifactId>lombok</artifactId>
  73. <scope>provided</scope>
  74. </dependency>
  75. </dependencies>
  76. <build>
  77. <finalName>${project.name}</finalName>
  78. <resources>
  79. <resource>
  80. <directory>src/main/resources</directory>
  81. </resource>
  82. <resource>
  83. <directory>src/main/java</directory>
  84. <includes>
  85. <include>**/*.xml</include>
  86. </includes>
  87. </resource>
  88. </resources>
  89. <pluginManagement>
  90. <plugins>
  91. <plugin>
  92. <groupId>org.springframework.boot</groupId>
  93. <artifactId>spring-boot-maven-plugin</artifactId>
  94. <version>${spring.boot.version}</version>
  95. <configuration>
  96. <fork>true</fork>
  97. <finalName>${project.build.finalName}</finalName>
  98. </configuration>
  99. <executions>
  100. <execution>
  101. <goals>
  102. <goal>repackage</goal>
  103. </goals>
  104. </execution>
  105. </executions>
  106. </plugin>
  107. <plugin>
  108. <groupId>com.spotify</groupId>
  109. <artifactId>dockerfile-maven-plugin</artifactId>
  110. <version>${docker.plugin.version}</version>
  111. <configuration>
  112. <username>${docker.username}</username>
  113. <password>${docker.password}</password>
  114. <repository>${docker.registry.url}/${docker.namespace}/${project.artifactId}</repository>
  115. <tag>${project.version}</tag>
  116. <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
  117. <buildArgs>
  118. <JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE>
  119. </buildArgs>
  120. </configuration>
  121. <!--子服务添加如下配置,运行 mvn deploy 命令便会自动打包镜像-->
  122. <!--<executions>
  123. <execution>
  124. <id>default</id>
  125. <goals>
  126. <goal>build</goal>
  127. <goal>push</goal>
  128. </goals>
  129. </execution>
  130. </executions>-->
  131. </plugin>
  132. <plugin>
  133. <groupId>org.apache.maven.plugins</groupId>
  134. <artifactId>maven-antrun-plugin</artifactId>
  135. <executions>
  136. <execution>
  137. <phase>package</phase>
  138. <goals>
  139. <goal>run</goal>
  140. </goals>
  141. <configuration>
  142. <tasks>
  143. <!--suppress UnresolvedMavenProperty -->
  144. <copy overwrite="true"
  145. tofile="${session.executionRootDirectory}/target/${project.artifactId}.jar"
  146. file="${project.build.directory}/${project.artifactId}.jar"/>
  147. </tasks>
  148. </configuration>
  149. </execution>
  150. </executions>
  151. </plugin>
  152. </plugins>
  153. </pluginManagement>
  154. <plugins>
  155. <plugin>
  156. <groupId>com.spotify</groupId>
  157. <artifactId>dockerfile-maven-plugin</artifactId>
  158. <configuration>
  159. <skip>true</skip>
  160. </configuration>
  161. </plugin>
  162. <plugin>
  163. <groupId>org.springframework.boot</groupId>
  164. <artifactId>spring-boot-maven-plugin</artifactId>
  165. </plugin>
  166. <plugin>
  167. <artifactId>maven-compiler-plugin</artifactId>
  168. <version>${maven.plugin.version}</version>
  169. <configuration>
  170. <source>${java.version}</source>
  171. <target>${java.version}</target>
  172. <encoding>UTF-8</encoding>
  173. <compilerArgs>
  174. <arg>-parameters</arg>
  175. </compilerArgs>
  176. </configuration>
  177. </plugin>
  178. </plugins>
  179. </build>
  180. <repositories>
  181. <repository>
  182. <id>aliyun-repos</id>
  183. <url>https://maven.aliyun.com/repository/public/</url>
  184. <snapshots>
  185. <enabled>false</enabled>
  186. </snapshots>
  187. </repository>
  188. </repositories>
  189. <pluginRepositories>
  190. <pluginRepository>
  191. <id>aliyun-plugin</id>
  192. <url>https://maven.aliyun.com/repository/public/</url>
  193. <snapshots>
  194. <enabled>false</enabled>
  195. </snapshots>
  196. </pluginRepository>
  197. </pluginRepositories>
  198. <distributionManagement>
  199. <repository>
  200. <id>central</id>
  201. <name>930953dcce96-releases</name>
  202. <url>https://jfrog.wutongshucloud.com/artifactory/wutong</url>
  203. </repository>
  204. <snapshotRepository>
  205. <id>snapshots</id>
  206. <name>930953dcce96-snapshots</name>
  207. <url>https://jfrog.wutongshucloud.com/artifactory/wutong</url>
  208. </snapshotRepository>
  209. </distributionManagement>
  210. </project>