pom.xml 9.0 KB

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