居家业务模块,通过sdk调用机构业务的基础框架
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

266 lines
9.1 KiB

  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>com.iec</groupId>
  5. <artifactId>iec-jjyl</artifactId>
  6. <version>${revision}</version>
  7. <packaging>pom</packaging>
  8. <name>${project.artifactId}</name>
  9. <modules>
  10. <module>iec-jjyl-common</module>
  11. <module>iec-jjyl-business</module>
  12. <module>iec-jjyl-sdk</module>
  13. </modules>
  14. <properties>
  15. <!-- 项目版本号 -->
  16. <revision>1.0-SNAPSHOT</revision>
  17. <spring-boot.version>2.7.18</spring-boot.version>
  18. <spring-cloud.version>2021.0.8</spring-cloud.version>
  19. <spring-cloud-alibaba.version>2021.0.6.1</spring-cloud-alibaba.version>
  20. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  21. <maven.compiler.source>1.8</maven.compiler.source>
  22. <maven.compiler.target>1.8</maven.compiler.target>
  23. <spring-boot-admin.version>2.7.15</spring-boot-admin.version>
  24. <spring.authorization.version>0.4.5</spring.authorization.version>
  25. <captcha.version>2.2.3</captcha.version>
  26. <screw.version>0.0.1</screw.version>
  27. <lombok.version>1.18.30</lombok.version>
  28. <velocity.version>2.3</velocity.version>
  29. <velocity.tool.version>3.1</velocity.tool.version>
  30. <configuration.version>1.10</configuration.version>
  31. <jasypt.version>3.0.5</jasypt.version>
  32. <knife4j.version>3.0.5</knife4j.version>
  33. <springdoc.version>1.6.9</springdoc.version>
  34. <xxl-job.version>2.4.0</xxl-job.version>
  35. <docker.plugin.version>0.32.0</docker.plugin.version>
  36. <docker.host>http://192.168.0.100:2375</docker.host>
  37. <docker.registry>192.168.0.100</docker.registry>
  38. <docker.namespace>pig4cloud</docker.namespace>
  39. <docker.username>username</docker.username>
  40. <docker.password>password</docker.password>
  41. <git.commit.plugin>4.9.9</git.commit.plugin>
  42. <spring.checkstyle.plugin>0.0.39</spring.checkstyle.plugin>
  43. <flatten-maven-plugin.version>1.6.0</flatten-maven-plugin.version>
  44. </properties>
  45. <!-- 以下依赖 全局所有的模块都会引入 -->
  46. <dependencies>
  47. <!--配置文件处理器-->
  48. <dependency>
  49. <groupId>org.springframework.boot</groupId>
  50. <artifactId>spring-boot-configuration-processor</artifactId>
  51. <optional>true</optional>
  52. </dependency>
  53. <!--配置文件加解密-->
  54. <dependency>
  55. <groupId>com.github.ulisesbocchio</groupId>
  56. <artifactId>jasypt-spring-boot-starter</artifactId>
  57. <version>${jasypt.version}</version>
  58. </dependency>
  59. <!--监控-->
  60. <dependency>
  61. <groupId>org.springframework.boot</groupId>
  62. <artifactId>spring-boot-starter-actuator</artifactId>
  63. </dependency>
  64. <!--监控客户端-->
  65. <dependency>
  66. <groupId>de.codecentric</groupId>
  67. <artifactId>spring-boot-admin-starter-client</artifactId>
  68. <version>${spring-boot-admin.version}</version>
  69. </dependency>
  70. <!--Lombok-->
  71. <dependency>
  72. <groupId>org.projectlombok</groupId>
  73. <artifactId>lombok</artifactId>
  74. <version>${lombok.version}</version>
  75. <scope>provided</scope>
  76. </dependency>
  77. <!--测试依赖-->
  78. <dependency>
  79. <groupId>org.springframework.boot</groupId>
  80. <artifactId>spring-boot-starter-test</artifactId>
  81. <scope>test</scope>
  82. </dependency>
  83. </dependencies>
  84. <dependencyManagement>
  85. <dependencies>
  86. <!--pig 公共版本定义-->
  87. <dependency>
  88. <groupId>com.iec</groupId>
  89. <artifactId>iec-jjyl-common-bom</artifactId>
  90. <version>${project.version}</version>
  91. <type>pom</type>
  92. <scope>import</scope>
  93. </dependency>
  94. <!-- spring boot 依赖 -->
  95. <dependency>
  96. <groupId>org.springframework.boot</groupId>
  97. <artifactId>spring-boot-dependencies</artifactId>
  98. <version>${spring-boot.version}</version>
  99. <type>pom</type>
  100. <scope>import</scope>
  101. </dependency>
  102. <!-- spring cloud 依赖 -->
  103. <dependency>
  104. <groupId>org.springframework.cloud</groupId>
  105. <artifactId>spring-cloud-dependencies</artifactId>
  106. <version>${spring-cloud.version}</version>
  107. <type>pom</type>
  108. <scope>import</scope>
  109. </dependency>
  110. <!-- spring cloud alibaba 依赖 -->
  111. <dependency>
  112. <groupId>com.alibaba.cloud</groupId>
  113. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  114. <version>${spring-cloud-alibaba.version}</version>
  115. <type>pom</type>
  116. <scope>import</scope>
  117. </dependency>
  118. </dependencies>
  119. </dependencyManagement>
  120. <profiles>
  121. <profile>
  122. <id>dev</id>
  123. <properties>
  124. <!-- 环境标识,需要与配置文件的名称相对应 -->
  125. <profiles.active>dev</profiles.active>
  126. <nacos.username>nacos</nacos.username>
  127. <nacos.password>nacos</nacos.password>
  128. </properties>
  129. <activation>
  130. <!-- 默认环境 -->
  131. <activeByDefault>true</activeByDefault>
  132. </activation>
  133. </profile>
  134. <profile>
  135. <id>pro</id>
  136. <properties>
  137. <!-- 环境标识,需要与配置文件的名称相对应 -->
  138. <profiles.active>pro</profiles.active>
  139. <nacos.username>nacos</nacos.username>
  140. <nacos.password>nacos</nacos.password>
  141. </properties>
  142. </profile>
  143. </profiles>
  144. <build>
  145. <finalName>${project.name}</finalName>
  146. <resources>
  147. <resource>
  148. <directory>src/main/resources</directory>
  149. <filtering>true</filtering>
  150. </resource>
  151. </resources>
  152. <pluginManagement>
  153. <plugins>
  154. <plugin>
  155. <groupId>org.springframework.boot</groupId>
  156. <artifactId>spring-boot-maven-plugin</artifactId>
  157. <version>${spring-boot.version}</version>
  158. <configuration>
  159. <finalName>${project.build.finalName}</finalName>
  160. <layers>
  161. <enabled>true</enabled>
  162. </layers>
  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.plugin.version}</version>
  176. <configuration>
  177. <!-- Docker Remote Api-->
  178. <dockerHost>${docker.host}</dockerHost>
  179. <!-- Docker 镜像私服-->
  180. <registry>${docker.registry}</registry>
  181. <!-- 认证信息-->
  182. <authConfig>
  183. <push>
  184. <username>${docker.username}</username>
  185. <password>${docker.password}</password>
  186. </push>
  187. </authConfig>
  188. <images>
  189. <image>
  190. <!-- 镜像名称: 172.17.0.111/library/pig-gateway:2.6.3-->
  191. <name>${docker.registry}/${docker.namespace}/${project.name}:${project.version}</name>
  192. <build>
  193. <dockerFile>${project.basedir}/Dockerfile</dockerFile>
  194. </build>
  195. </image>
  196. </images>
  197. </configuration>
  198. </plugin>
  199. </plugins>
  200. </pluginManagement>
  201. <plugins>
  202. <!-- 统一 revision 版本 -->
  203. <plugin>
  204. <groupId>org.codehaus.mojo</groupId>
  205. <artifactId>flatten-maven-plugin</artifactId>
  206. <version>${flatten-maven-plugin.version}</version>
  207. <configuration>
  208. <flattenMode>resolveCiFriendliesOnly</flattenMode>
  209. <updatePomFile>true</updatePomFile>
  210. </configuration>
  211. <executions>
  212. <execution>
  213. <id>flatten</id>
  214. <phase>process-resources</phase>
  215. <goals>
  216. <goal>flatten</goal>
  217. </goals>
  218. </execution>
  219. <execution>
  220. <id>flatten.clean</id>
  221. <phase>clean</phase>
  222. <goals>
  223. <goal>clean</goal>
  224. </goals>
  225. </execution>
  226. </executions>
  227. </plugin>
  228. <!--打包jar 与git commit 关联插件-->
  229. <plugin>
  230. <groupId>io.github.git-commit-id</groupId>
  231. <artifactId>git-commit-id-maven-plugin</artifactId>
  232. <version>${git.commit.plugin}</version>
  233. <executions>
  234. <execution>
  235. <id>get-the-git-infos</id>
  236. <goals>
  237. <goal>revision</goal>
  238. </goals>
  239. <phase>initialize</phase>
  240. </execution>
  241. </executions>
  242. <configuration>
  243. <failOnNoGitDirectory>false</failOnNoGitDirectory>
  244. <generateGitPropertiesFile>true</generateGitPropertiesFile>
  245. <dateFormat>yyyy-MM-dd HH:mm:ss</dateFormat>
  246. <includeOnlyProperties>
  247. <includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
  248. <includeOnlyProperty>^git.commit.(id|message|time).*$</includeOnlyProperty>
  249. </includeOnlyProperties>
  250. </configuration>
  251. </plugin>
  252. <plugin>
  253. <groupId>io.spring.javaformat</groupId>
  254. <artifactId>spring-javaformat-maven-plugin</artifactId>
  255. <version>${spring.checkstyle.plugin}</version>
  256. </plugin>
  257. </plugins>
  258. </build>
  259. </project>