pom.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.yaoyicloud</groupId>
  6. <artifactId>easier-render</artifactId>
  7. <version>0.0.1-SNAPSHOT</version>
  8. <packaging>pom</packaging>
  9. <name>easier-render</name>
  10. <description>easier-render</description>
  11. <modules>
  12. <!-- <module>easier-common</module>-->
  13. <module>easier-report-biz</module>
  14. <module>easier-report-api</module>
  15. </modules>
  16. <properties>
  17. <maven.compiler.version>3.11.0</maven.compiler.version>
  18. <maven.compiler.source>17</maven.compiler.source>
  19. <maven.compiler.target>17</maven.compiler.target>
  20. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  21. <spring-boot.version>2.7.18</spring-boot.version>
  22. <spring-cloud.version>2021.0.8</spring-cloud.version>
  23. <spring-cloud-alibaba.version>2021.0.5.0</spring-cloud-alibaba.version>
  24. <checkstyle.skip>false</checkstyle.skip>
  25. <spring.checkstyle.version>0.0.34</spring.checkstyle.version>
  26. <git.commit.version>2.2.5</git.commit.version>
  27. <jasypt.version>3.0.5</jasypt.version>
  28. <spring-boot-admin.version>2.7.14</spring-boot-admin.version>
  29. <cas.sdk.version>3.6.4</cas.sdk.version>
  30. </properties>
  31. <dependencies>
  32. <!--feign 依赖-->
  33. <!-- <dependency>-->
  34. <!-- <groupId>org.springframework.cloud</groupId>-->
  35. <!-- <artifactId>spring-cloud-starter-openfeign</artifactId>-->
  36. <!-- </dependency>-->
  37. <dependency>
  38. <groupId>org.springframework.cloud</groupId>
  39. <artifactId>spring-cloud-context</artifactId>
  40. </dependency>
  41. <!--配置文件处理器-->
  42. <dependency>
  43. <groupId>org.springframework.boot</groupId>
  44. <artifactId>spring-boot-configuration-processor</artifactId>
  45. <optional>true</optional>
  46. </dependency>
  47. <!--jasypt配置文件加解密-->
  48. <dependency>
  49. <groupId>com.github.ulisesbocchio</groupId>
  50. <artifactId>jasypt-spring-boot-starter</artifactId>
  51. <version>${jasypt.version}</version>
  52. </dependency>
  53. <!--监控-->
  54. <dependency>
  55. <groupId>org.springframework.boot</groupId>
  56. <artifactId>spring-boot-starter-actuator</artifactId>
  57. </dependency>
  58. <!--监控客户端-->
  59. <dependency>
  60. <groupId>de.codecentric</groupId>
  61. <artifactId>spring-boot-admin-starter-client</artifactId>
  62. <version>${spring-boot-admin.version}</version>
  63. </dependency>
  64. <!--Lombok-->
  65. <dependency>
  66. <groupId>org.projectlombok</groupId>
  67. <artifactId>lombok</artifactId>
  68. <scope>provided</scope>
  69. </dependency>
  70. <!--测试依赖-->
  71. <dependency>
  72. <groupId>org.springframework.boot</groupId>
  73. <artifactId>spring-boot-starter-test</artifactId>
  74. <scope>test</scope>
  75. </dependency>
  76. </dependencies>
  77. <dependencyManagement>
  78. <dependencies>
  79. <!--spring boot 公共版本定义-->
  80. <dependency>
  81. <groupId>org.springframework.boot</groupId>
  82. <artifactId>spring-boot-dependencies</artifactId>
  83. <version>${spring-boot.version}</version>
  84. <type>pom</type>
  85. <scope>import</scope>
  86. </dependency>
  87. <!--spring cloud 公共版本定义-->
  88. <dependency>
  89. <groupId>org.springframework.cloud</groupId>
  90. <artifactId>spring-cloud-dependencies</artifactId>
  91. <version>${spring-cloud.version}</version>
  92. <type>pom</type>
  93. <scope>import</scope>
  94. </dependency>
  95. <!--spring cloud alibaba-->
  96. <dependency>
  97. <groupId>com.alibaba.cloud</groupId>
  98. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  99. <version>${spring-cloud-alibaba.version}</version>
  100. <type>pom</type>
  101. <scope>import</scope>
  102. </dependency>
  103. <!--web 模块-->
  104. <dependency>
  105. <groupId>org.springframework.boot</groupId>
  106. <artifactId>spring-boot-starter-web</artifactId>
  107. <version>${spring-boot.version}</version>
  108. <!-- <exclusions>-->
  109. <!-- &lt;!&ndash;排除tomcat依赖&ndash;&gt;-->
  110. <!-- <exclusion>-->
  111. <!-- <artifactId>spring-boot-starter-tomcat</artifactId>-->
  112. <!-- <groupId>org.springframework.boot</groupId>-->
  113. <!-- </exclusion>-->
  114. <!-- </exclusions>-->
  115. </dependency>
  116. </dependencies>
  117. </dependencyManagement>
  118. <build>
  119. <finalName>${project.name}</finalName>
  120. <resources>
  121. <resource>
  122. <directory>src/main/resources</directory>
  123. <filtering>true</filtering>
  124. </resource>
  125. </resources>
  126. <pluginManagement>
  127. <plugins>
  128. <!--spring boot 默认插件-->
  129. <plugin>
  130. <groupId>org.springframework.boot</groupId>
  131. <artifactId>spring-boot-maven-plugin</artifactId>
  132. <version>${spring-boot.version}</version>
  133. <executions>
  134. <execution>
  135. <goals>
  136. <goal>repackage</goal>
  137. </goals>
  138. </execution>
  139. </executions>
  140. </plugin>
  141. <plugin>
  142. <groupId>org.apache.maven.plugins</groupId>
  143. <artifactId>maven-resources-plugin</artifactId>
  144. <version>3.1.0</version>
  145. </plugin>
  146. </plugins>
  147. </pluginManagement>
  148. <plugins>
  149. <!--checkstyle插件-->
  150. <plugin>
  151. <groupId>org.apache.maven.plugins</groupId>
  152. <artifactId>maven-checkstyle-plugin</artifactId>
  153. <version>3.6.0</version>
  154. <dependencies>
  155. <dependency>
  156. <groupId>com.puppycrawl.tools</groupId>
  157. <artifactId>checkstyle</artifactId>
  158. <version>9.3</version>
  159. </dependency>
  160. </dependencies>
  161. <configuration>
  162. <outputEncoding>UTF-8</outputEncoding>
  163. <skip>${checkstyle.skip}</skip>
  164. <configLocation>.style/alibaba.xml</configLocation>
  165. <consoleOutput>true</consoleOutput>
  166. <failsOnError>false</failsOnError>
  167. <linkXRef>false</linkXRef>
  168. <includeTestSourceDirectory>false</includeTestSourceDirectory>
  169. <sourceDirectories>${project.build.sourceDirectory}</sourceDirectories>
  170. </configuration>
  171. <executions>
  172. <execution>
  173. <id>validate</id>
  174. <phase>validate</phase>
  175. <goals>
  176. <goal>check</goal>
  177. </goals>
  178. </execution>
  179. </executions>
  180. </plugin>
  181. <!--&lt;!&ndash;代码格式插件,默认使用spring 规则&ndash;&gt;-->
  182. <plugin>
  183. <groupId>io.spring.javaformat</groupId>
  184. <artifactId>spring-javaformat-maven-plugin</artifactId>
  185. <version>${spring.checkstyle.version}</version>
  186. </plugin>
  187. <!--代码编译指定版本插件-->
  188. <plugin>
  189. <groupId>org.apache.maven.plugins</groupId>
  190. <artifactId>maven-compiler-plugin</artifactId>
  191. <version>${maven.compiler.version}</version>
  192. <configuration>
  193. <target>${maven.compiler.target}</target>
  194. <source>${maven.compiler.source}</source>
  195. <encoding>UTF-8</encoding>
  196. <skip>true</skip>
  197. </configuration>
  198. </plugin>
  199. <!--打包关联最新 git commit 信息插件-->
  200. <plugin>
  201. <groupId>pl.project13.maven</groupId>
  202. <artifactId>git-commit-id-plugin</artifactId>
  203. <version>${git.commit.version}</version>
  204. </plugin>
  205. <plugin>
  206. <groupId>org.apache.maven.plugins</groupId>
  207. <artifactId>maven-surefire-plugin</artifactId>
  208. <version>3.5.3</version>
  209. </plugin>
  210. </plugins>
  211. </build>
  212. <!-- 增加云效nexus示例仓库 (演示使用,可自行删除) -->
  213. <distributionManagement>
  214. <repository>
  215. <id>rdc-releases</id>
  216. <url>https://packages.aliyun.com/maven/repository/2161442-release-DcBZC1/</url>
  217. </repository>
  218. <snapshotRepository>
  219. <id>rdc-snapshots</id>
  220. <url>https://packages.aliyun.com/maven/repository/2161442-snapshot-FzKqZK/</url>
  221. </snapshotRepository>
  222. </distributionManagement>
  223. <repositories>
  224. <repository>
  225. <id>public</id>
  226. <name>aliyun nexus</name>
  227. <url>https://maven.aliyun.com/repository/public/</url>
  228. <releases>
  229. <enabled>true</enabled>
  230. </releases>
  231. </repository>
  232. </repositories>
  233. <pluginRepositories>
  234. <pluginRepository>
  235. <id>aliyun-plugin</id>
  236. <url>https://maven.aliyun.com/repository/public</url>
  237. <releases>
  238. <enabled>true</enabled>
  239. </releases>
  240. <snapshots>
  241. <enabled>false</enabled>
  242. </snapshots>
  243. </pluginRepository>
  244. </pluginRepositories>
  245. <profiles>
  246. <!-- 默认环境 -->
  247. <profile>
  248. <id>loc</id>
  249. <activation>
  250. <activeByDefault>true</activeByDefault>
  251. </activation>
  252. <properties>
  253. <profiles.active>loc</profiles.active>
  254. <nacos.username>nacos</nacos.username>
  255. <nacos.password>nacos</nacos.password>
  256. <nacos.server-addr>127.0.0.1:8848</nacos.server-addr>
  257. <nacos.namespace>f9b40f1d-c7e6-4be2-b0bc-f08375368dcb</nacos.namespace>
  258. <profiles.gateway.port>14010</profiles.gateway.port>
  259. <profiles.auth.port>14020</profiles.auth.port>
  260. <profiles.workspace.biz.port>14030</profiles.workspace.biz.port>
  261. <profiles.filerepo.biz.port>14050</profiles.filerepo.biz.port>
  262. <profiles.warehouse.biz.port>14080</profiles.warehouse.biz.port>
  263. <profiles.quartz.biz.port>14090</profiles.quartz.biz.port>
  264. <profiles.report.biz.port>14070</profiles.report.biz.port>
  265. </properties>
  266. </profile>
  267. <profile>
  268. <id>pre</id>
  269. <properties>
  270. <profiles.active>pre</profiles.active>
  271. <nacos.username>nacos</nacos.username>
  272. <nacos.password>n1a2c3o4s5</nacos.password>
  273. <nacos.server-addr>nacos2.yaoyi.net:57260</nacos.server-addr>
  274. <nacos.namespace>ef23465c-e198-4ada-a3f2-88e014c69a3f</nacos.namespace>
  275. <profiles.gateway.port>14010</profiles.gateway.port>
  276. <profiles.auth.port>14020</profiles.auth.port>
  277. <profiles.workspace.biz.port>14030</profiles.workspace.biz.port>
  278. <profiles.filerepo.biz.port>14050</profiles.filerepo.biz.port>
  279. <profiles.warehouse.biz.port>14080</profiles.warehouse.biz.port>
  280. <profiles.quartz.biz.port>14090</profiles.quartz.biz.port>
  281. <profiles.report.biz.port>14070</profiles.report.biz.port>
  282. </properties>
  283. </profile>
  284. <profile>
  285. <id>demo</id>
  286. <properties>
  287. <profiles.active>demo</profiles.active>
  288. <nacos.username>nacos</nacos.username>
  289. <nacos.password>n1a2c3o4s5</nacos.password>
  290. <nacos.server-addr>nacos2.yaoyi.net:57260</nacos.server-addr>
  291. <nacos.namespace>ef23465c-e198-4ada-a3f2-88e014c69a3f</nacos.namespace>
  292. <profiles.gateway.port>14010</profiles.gateway.port>
  293. <profiles.auth.port>14020</profiles.auth.port>
  294. <profiles.workspace.biz.port>14030</profiles.workspace.biz.port>
  295. <profiles.filerepo.biz.port>14050</profiles.filerepo.biz.port>
  296. <profiles.warehouse.biz.port>14080</profiles.warehouse.biz.port>
  297. <profiles.quartz.biz.port>14090</profiles.quartz.biz.port>
  298. <profiles.report.biz.port>14070</profiles.report.biz.port>
  299. </properties>
  300. </profile>
  301. <profile>
  302. <id>prod</id>
  303. <properties>
  304. <profiles.active>prod</profiles.active>
  305. <nacos.username>nacos</nacos.username>
  306. <nacos.password>n1a2c3o4s5</nacos.password>
  307. <nacos.server-addr>nacos2.yaoyi.net:57260</nacos.server-addr>
  308. <nacos.namespace>ef23465c-e198-4ada-a3f2-88e014c69a3f</nacos.namespace>
  309. <profiles.gateway.port>14010</profiles.gateway.port>
  310. <profiles.auth.port>14020</profiles.auth.port>
  311. <profiles.workspace.biz.port>14030</profiles.workspace.biz.port>
  312. <profiles.filerepo.biz.port>14050</profiles.filerepo.biz.port>
  313. <profiles.warehouse.biz.port>14080</profiles.warehouse.biz.port>
  314. <profiles.quartz.biz.port>14090</profiles.quartz.biz.port>
  315. <profiles.report.biz.port>14070</profiles.report.biz.port>
  316. </properties>
  317. </profile>
  318. </profiles>
  319. </project>