pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>org.springblade</groupId>
  6. <artifactId>BladeX</artifactId>
  7. <version>${revision}</version>
  8. <packaging>pom</packaging>
  9. <properties>
  10. <!-- bladex version -->
  11. <revision>4.0.1.RELEASE</revision>
  12. <java.version>17</java.version>
  13. <maven.plugin.version>3.11.0</maven.plugin.version>
  14. <maven.flatten.version>1.3.0</maven.flatten.version>
  15. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  17. <!-- Docker仓库服务配置 -->
  18. <docker.registry.url>192.168.0.188</docker.registry.url>
  19. <docker.username>admin</docker.username>
  20. <docker.password>admin12345</docker.password>
  21. <docker.namespace>blade</docker.namespace>
  22. <docker.fabric.skip>false</docker.fabric.skip>
  23. <docker.fabric.version>0.42.0</docker.fabric.version>
  24. </properties>
  25. <modules>
  26. <module>blade-auth</module>
  27. <module>blade-common</module>
  28. <module>blade-gateway</module>
  29. <module>blade-ops</module>
  30. <module>blade-ops-api</module>
  31. <module>blade-plugin</module>
  32. <module>blade-plugin-api</module>
  33. <module>blade-service</module>
  34. <module>blade-service-api</module>
  35. <module>blade-service/blade-rhzfFzLs</module>
  36. <module>blade-service/blade-rhzfFwLs</module>
  37. <module>blade-service/blade-sydw</module>
  38. <module>blade-service/blade-rhzfRyLs</module>
  39. </modules>
  40. <dependencyManagement>
  41. <dependencies>
  42. <dependency>
  43. <groupId>org.springblade.platform</groupId>
  44. <artifactId>blade-bom</artifactId>
  45. <version>${revision}</version>
  46. <type>pom</type>
  47. <scope>import</scope>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.springblade</groupId>
  51. <artifactId>blade-common</artifactId>
  52. <version>${revision}</version>
  53. </dependency>
  54. <!-- blade api -->
  55. <dependency>
  56. <groupId>org.springblade</groupId>
  57. <artifactId>blade-dict-api</artifactId>
  58. <version>${revision}</version>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.springblade</groupId>
  62. <artifactId>blade-scope-api</artifactId>
  63. <version>${revision}</version>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.springblade</groupId>
  67. <artifactId>blade-desk-api</artifactId>
  68. <version>${revision}</version>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.springblade</groupId>
  72. <artifactId>blade-resource-api</artifactId>
  73. <version>${revision}</version>
  74. </dependency>
  75. <dependency>
  76. <groupId>org.springblade</groupId>
  77. <artifactId>blade-user-api</artifactId>
  78. <version>${revision}</version>
  79. </dependency>
  80. <dependency>
  81. <groupId>org.springblade</groupId>
  82. <artifactId>blade-flow-api</artifactId>
  83. <version>${revision}</version>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.springblade</groupId>
  87. <artifactId>blade-system-api</artifactId>
  88. <version>${revision}</version>
  89. </dependency>
  90. </dependencies>
  91. </dependencyManagement>
  92. <dependencies>
  93. <!-- Oracle -->
  94. <!--<dependency>
  95. <groupId>com.oracle</groupId>
  96. <artifactId>ojdbc7</artifactId>
  97. </dependency>-->
  98. <!-- PostgreSql -->
  99. <dependency>
  100. <groupId>org.postgresql</groupId>
  101. <artifactId>postgresql</artifactId>
  102. </dependency>
  103. <dependency>
  104. <groupId>org.springblade</groupId>
  105. <artifactId>blade-core-auto</artifactId>
  106. <scope>provided</scope>
  107. </dependency>
  108. <!-- SqlServer -->
  109. <!--<dependency>
  110. <groupId>com.microsoft.sqlserver</groupId>
  111. <artifactId>mssql-jdbc</artifactId>
  112. </dependency>-->
  113. <!-- DaMeng -->
  114. <!--<dependency>
  115. <groupId>com.dameng</groupId>
  116. <artifactId>DmJdbcDriver18</artifactId>
  117. </dependency>-->
  118. <!--YashanDB-->
  119. <!--<dependency>
  120. <groupId>com.yashandb.jdbc</groupId>
  121. <artifactId>yasdb-jdbc</artifactId>
  122. </dependency>-->
  123. <!--lombok-->
  124. <dependency>
  125. <groupId>org.projectlombok</groupId>
  126. <artifactId>lombok</artifactId>
  127. <scope>provided</scope>
  128. </dependency>
  129. <dependency>
  130. <groupId>com.zaxxer</groupId>
  131. <artifactId>HikariCP</artifactId>
  132. <version>3.2.0</version>
  133. </dependency>
  134. </dependencies>
  135. <build>
  136. <finalName>${project.name}</finalName>
  137. <resources>
  138. <resource>
  139. <directory>src/main/resources</directory>
  140. </resource>
  141. <resource>
  142. <directory>src/main/java</directory>
  143. <includes>
  144. <include>**/*.xml</include>
  145. </includes>
  146. </resource>
  147. </resources>
  148. <pluginManagement>
  149. <plugins>
  150. <plugin>
  151. <groupId>org.springframework.boot</groupId>
  152. <artifactId>spring-boot-maven-plugin</artifactId>
  153. <version>3.2.4</version>
  154. <configuration>
  155. <finalName>${project.build.finalName}</finalName>
  156. <excludes>
  157. <!-- 打包的 jar 中排除 lombok -->
  158. <exclude>
  159. <groupId>org.projectlombok</groupId>
  160. <artifactId>lombok</artifactId>
  161. </exclude>
  162. </excludes>
  163. </configuration>
  164. <executions>
  165. <execution>
  166. <goals>
  167. <goal>repackage</goal>
  168. </goals>
  169. </execution>
  170. </executions>
  171. </plugin>
  172. <plugin>
  173. <groupId>io.fabric8</groupId>
  174. <artifactId>docker-maven-plugin</artifactId>
  175. <version>${docker.fabric.version}</version>
  176. <configuration>
  177. <skip>true</skip>
  178. <authConfig>
  179. <username>${docker.username}</username>
  180. <password>${docker.password}</password>
  181. </authConfig>
  182. <registry>${docker.registry.url}</registry>
  183. <images>
  184. <image>
  185. <name>${docker.namespace}/${project.build.finalName}:${project.version}</name>
  186. <alias>${project.name}</alias>
  187. <build>
  188. <dockerFile>${project.basedir}/Dockerfile</dockerFile>
  189. </build>
  190. </image>
  191. </images>
  192. <buildArgs>
  193. <JAR_FILE>${basedir}/target/${project.build.finalName}.jar</JAR_FILE>
  194. </buildArgs>
  195. </configuration>
  196. </plugin>
  197. <plugin>
  198. <groupId>org.apache.maven.plugins</groupId>
  199. <artifactId>maven-antrun-plugin</artifactId>
  200. <version>3.1.0</version>
  201. <executions>
  202. <execution>
  203. <phase>package</phase>
  204. <goals>
  205. <goal>run</goal>
  206. </goals>
  207. <configuration>
  208. <target>
  209. <!--suppress UnresolvedMavenProperty -->
  210. <copy overwrite="true"
  211. todir="${project.root.directory}/target"
  212. file="${project.build.directory}/${project.artifactId}.jar"/>
  213. </target>
  214. </configuration>
  215. </execution>
  216. </executions>
  217. </plugin>
  218. </plugins>
  219. </pluginManagement>
  220. <plugins>
  221. <plugin>
  222. <groupId>org.springframework.boot</groupId>
  223. <artifactId>spring-boot-maven-plugin</artifactId>
  224. </plugin>
  225. <plugin>
  226. <artifactId>maven-compiler-plugin</artifactId>
  227. <version>${maven.plugin.version}</version>
  228. <configuration>
  229. <source>${java.version}</source>
  230. <target>${java.version}</target>
  231. <encoding>UTF-8</encoding>
  232. <compilerArgs>
  233. <arg>-parameters</arg>
  234. </compilerArgs>
  235. </configuration>
  236. </plugin>
  237. <plugin>
  238. <groupId>org.codehaus.mojo</groupId>
  239. <artifactId>flatten-maven-plugin</artifactId>
  240. <version>${maven.flatten.version}</version>
  241. <configuration>
  242. <updatePomFile>true</updatePomFile>
  243. <flattenMode>oss</flattenMode>
  244. <pomElements>
  245. <url>remove</url>
  246. <scm>remove</scm>
  247. <developers>remove</developers>
  248. <properties>remove</properties>
  249. <repositories>remove</repositories>
  250. <distributionManagement>remove</distributionManagement>
  251. </pomElements>
  252. </configuration>
  253. <executions>
  254. <execution>
  255. <id>flatten</id>
  256. <phase>process-resources</phase>
  257. <goals>
  258. <goal>flatten</goal>
  259. </goals>
  260. </execution>
  261. <execution>
  262. <id>flatten.clean</id>
  263. <phase>clean</phase>
  264. <goals>
  265. <goal>clean</goal>
  266. </goals>
  267. </execution>
  268. </executions>
  269. </plugin>
  270. <plugin>
  271. <groupId>org.commonjava.maven.plugins</groupId>
  272. <artifactId>directory-maven-plugin</artifactId>
  273. <version>1.0</version>
  274. <executions>
  275. <execution>
  276. <id>directories</id>
  277. <goals>
  278. <goal>highest-basedir</goal>
  279. </goals>
  280. <phase>initialize</phase>
  281. <configuration>
  282. <property>project.root.directory</property>
  283. </configuration>
  284. </execution>
  285. </executions>
  286. </plugin>
  287. </plugins>
  288. </build>
  289. <repositories>
  290. <repository>
  291. <id>aliyun-repos</id>
  292. <name>Aliyun Public Repository</name>
  293. <url>https://maven.aliyun.com/repository/public</url>
  294. <snapshots>
  295. <enabled>false</enabled>
  296. </snapshots>
  297. </repository>
  298. <repository>
  299. <id>bladex</id>
  300. <name>BladeX Release Repository</name>
  301. <url>https://center.javablade.com/api/packages/blade/maven</url>
  302. </repository>
  303. </repositories>
  304. <pluginRepositories>
  305. <pluginRepository>
  306. <id>aliyun-plugin</id>
  307. <name>Aliyun Public Plugin</name>
  308. <url>https://maven.aliyun.com/repository/public</url>
  309. <snapshots>
  310. <enabled>false</enabled>
  311. </snapshots>
  312. </pluginRepository>
  313. </pluginRepositories>
  314. <distributionManagement>
  315. <repository>
  316. <id>bladex</id>
  317. <name>BladeX Release Repository</name>
  318. <url>https://center.javablade.com/api/packages/blade/maven</url>
  319. </repository>
  320. <snapshotRepository>
  321. <id>bladex</id>
  322. <name>BladeX Snapshot Repository</name>
  323. <url>https://center.javablade.com/api/packages/blade/maven</url>
  324. </snapshotRepository>
  325. </distributionManagement>
  326. </project>