pom.xml 9.6 KB

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