pom.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  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>com.ims.as</groupId>
  6. <artifactId>ims-as</artifactId>
  7. <version>2.5.0.RELEASE</version>
  8. <packaging>pom</packaging>
  9. <properties>
  10. <bladex.project.version>2.5.0.RELEASE</bladex.project.version>
  11. <ims.project.version>2.5.0.RELEASE</ims.project.version>
  12. <ims.core.version>1.0</ims.core.version>
  13. <java.version>1.8</java.version>
  14. <flowable.version>6.4.2</flowable.version>
  15. <dubbo.version>2.7.5</dubbo.version>
  16. <spring.boot.version>2.6.7</spring.boot.version>
  17. <spring.cloud.version>Greenwich.SR5</spring.cloud.version>
  18. <spring.platform.version>Cairo-SR8</spring.platform.version>
  19. <!-- 推荐使用Harbor -->
  20. <docker.registry.url>192.168.0.157</docker.registry.url>
  21. <docker.registry.host>http://${docker.registry.url}:2375</docker.registry.host>
  22. <docker.username>admin</docker.username>
  23. <docker.password>Harbor12345</docker.password>
  24. <docker.namespace>blade</docker.namespace>
  25. <docker.plugin.version>1.4.13</docker.plugin.version>
  26. <maven.compiler.source>1.8</maven.compiler.source>
  27. <maven.compiler.target>1.8</maven.compiler.target>
  28. <tomcat.version>9.0.52</tomcat.version>
  29. </properties>
  30. <modules>
  31. <module>ims-common</module>
  32. <module>ims-gateway</module>
  33. <module>ims-service</module>
  34. <module>ims-service-api</module>
  35. </modules>
  36. <dependencyManagement>
  37. <dependencies>
  38. <dependency>
  39. <groupId>org.springblade.platform</groupId>
  40. <artifactId>blade-bom</artifactId>
  41. <version>${bladex.project.version}</version>
  42. <type>pom</type>
  43. <scope>import</scope>
  44. </dependency>
  45. <dependency>
  46. <groupId>com.ims.as</groupId>
  47. <artifactId>ims-common</artifactId>
  48. <version>${project.version}</version>
  49. </dependency>
  50. <dependency>
  51. <groupId>com.alibaba</groupId>
  52. <artifactId>fastjson</artifactId>
  53. <version>1.2.83</version>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.springframework.boot</groupId>
  57. <artifactId>spring-boot-dependencies</artifactId>
  58. <version>${spring.boot.version}</version>
  59. <type>pom</type>
  60. <scope>import</scope>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.springframework.cloud</groupId>
  64. <artifactId>spring-cloud-dependencies</artifactId>
  65. <version>${spring.cloud.version}</version>
  66. <type>pom</type>
  67. <scope>import</scope>
  68. </dependency>
  69. <dependency>
  70. <groupId>io.spring.platform</groupId>
  71. <artifactId>platform-bom</artifactId>
  72. <version>${spring.platform.version}</version>
  73. <type>pom</type>
  74. <scope>import</scope>
  75. </dependency>
  76. <dependency>
  77. <groupId>com.ims.system</groupId>
  78. <artifactId>ims-query</artifactId>
  79. <version>${ims.project.version}</version>
  80. </dependency>
  81. <dependency>
  82. <groupId>com.ims.system</groupId>
  83. <artifactId>ims-permission-starter</artifactId>
  84. <version>2.5.0.RELEASE</version>
  85. </dependency>
  86. </dependencies>
  87. </dependencyManagement>
  88. <dependencies>
  89. <dependency>
  90. <groupId>org.projectlombok</groupId>
  91. <artifactId>lombok</artifactId>
  92. <scope>provided</scope>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.apache.tomcat.embed</groupId>
  96. <artifactId>tomcat-embed-core</artifactId>
  97. <version>${tomcat.version}</version>
  98. </dependency>
  99. <dependency>
  100. <groupId>org.apache.tomcat.embed</groupId>
  101. <artifactId>tomcat-embed-el</artifactId>
  102. <version>${tomcat.version}</version>
  103. </dependency>
  104. <dependency>
  105. <groupId>org.apache.tomcat.embed</groupId>
  106. <artifactId>tomcat-embed-websocket</artifactId>
  107. <version>${tomcat.version}</version>
  108. </dependency>
  109. <dependency>
  110. <groupId>org.apache.tomcat</groupId>
  111. <artifactId>tomcat-annotations-api</artifactId>
  112. <version>${tomcat.version}</version>
  113. </dependency>
  114. </dependencies>
  115. <build>
  116. <finalName>${project.name}</finalName>
  117. <resources>
  118. <resource>
  119. <directory>src/main/resources</directory>
  120. </resource>
  121. <resource>
  122. <directory>src/main/java</directory>
  123. <includes>
  124. <include>**/*.xml</include>
  125. </includes>
  126. </resource>
  127. </resources>
  128. <pluginManagement>
  129. <plugins>
  130. <plugin>
  131. <groupId>org.springframework.boot</groupId>
  132. <artifactId>spring-boot-maven-plugin</artifactId>
  133. <version>${spring.boot.version}</version>
  134. <configuration>
  135. <fork>true</fork>
  136. <finalName>${project.build.finalName}</finalName>
  137. </configuration>
  138. <executions>
  139. <execution>
  140. <goals>
  141. <goal>repackage</goal>
  142. </goals>
  143. </execution>
  144. </executions>
  145. </plugin>
  146. <plugin>
  147. <groupId>com.spotify</groupId>
  148. <artifactId>dockerfile-maven-plugin</artifactId>
  149. <version>${docker.plugin.version}</version>
  150. <configuration>
  151. <username>${docker.username}</username>
  152. <password>${docker.password}</password>
  153. <repository>${docker.registry.url}/${docker.namespace}/${project.artifactId}</repository>
  154. <tag>${project.version}</tag>
  155. <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
  156. <buildArgs>
  157. <JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE>
  158. </buildArgs>
  159. </configuration>
  160. <!--子服务添加如下配置,运行 mvn deploy 命令便会自动打包镜像-->
  161. <!--<executions>
  162. <execution>
  163. <id>default</id>
  164. <goals>
  165. <goal>build</goal>
  166. <goal>push</goal>
  167. </goals>
  168. </execution>
  169. </executions>-->
  170. </plugin>
  171. <plugin>
  172. <groupId>org.apache.maven.plugins</groupId>
  173. <artifactId>maven-antrun-plugin</artifactId>
  174. <executions>
  175. <execution>
  176. <phase>package</phase>
  177. <goals>
  178. <goal>run</goal>
  179. </goals>
  180. <configuration>
  181. <tasks>
  182. <!--suppress UnresolvedMavenProperty -->
  183. <copy overwrite="true"
  184. tofile="${session.executionRootDirectory}/target/${project.artifactId}.jar"
  185. file="${project.build.directory}/${project.artifactId}.jar" />
  186. </tasks>
  187. </configuration>
  188. </execution>
  189. </executions>
  190. </plugin>
  191. </plugins>
  192. </pluginManagement>
  193. <plugins>
  194. <plugin>
  195. <groupId>com.spotify</groupId>
  196. <artifactId>dockerfile-maven-plugin</artifactId>
  197. <configuration>
  198. <skip>true</skip>
  199. </configuration>
  200. </plugin>
  201. <plugin>
  202. <groupId>org.springframework.boot</groupId>
  203. <artifactId>spring-boot-maven-plugin</artifactId>
  204. </plugin>
  205. <plugin>
  206. <artifactId>maven-compiler-plugin</artifactId>
  207. <configuration>
  208. <source>${java.version}</source>
  209. <target>${java.version}</target>
  210. <encoding>UTF-8</encoding>
  211. <compilerArgs>
  212. <arg>-parameters</arg>
  213. </compilerArgs>
  214. </configuration>
  215. </plugin>
  216. </plugins>
  217. </build>
  218. <repositories>
  219. <!-- <repository>-->
  220. <!-- <id>ims</id>-->
  221. <!-- <url>http://39.100.131.102:8081/repository/ims/</url>-->
  222. <!-- <snapshots>-->
  223. <!-- <enabled>false</enabled>-->
  224. <!-- </snapshots>-->
  225. <!-- </repository>-->
  226. <repository>
  227. <id>localrepo</id>
  228. <name>Local Repository</name>
  229. <url>file://D:\java\maven\repository-gddl</url>
  230. </repository>
  231. <repository>
  232. <id>aliyun-repos</id>
  233. <url>https://maven.aliyun.com/nexus/content/groups/public/</url>
  234. <snapshots>
  235. <enabled>false</enabled>
  236. </snapshots>
  237. </repository>
  238. <repository>
  239. <id>blade-release</id>
  240. <name>Release Repository</name>
  241. <url>http://nexus.bladex.vip/repository/maven-releases/</url>
  242. </repository>
  243. </repositories>
  244. <pluginRepositories>
  245. <pluginRepository>
  246. <id>aliyun-plugin</id>
  247. <url>https://maven.aliyun.com/nexus/content/groups/public/</url>
  248. <snapshots>
  249. <enabled>false</enabled>
  250. </snapshots>
  251. </pluginRepository>
  252. </pluginRepositories>
  253. </project>