pom.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358
  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. <suppressionsLocation>.style/suppressions.xml</suppressionsLocation>
  166. <consoleOutput>true</consoleOutput>
  167. <failsOnError>false</failsOnError>
  168. <linkXRef>false</linkXRef>
  169. <includeTestSourceDirectory>false</includeTestSourceDirectory>
  170. <sourceDirectories>${project.build.sourceDirectory}</sourceDirectories>
  171. </configuration>
  172. <executions>
  173. <execution>
  174. <id>validate</id>
  175. <phase>validate</phase>
  176. <goals>
  177. <goal>check</goal>
  178. </goals>
  179. </execution>
  180. </executions>
  181. </plugin>
  182. <!--&lt;!&ndash;代码格式插件,默认使用spring 规则&ndash;&gt;-->
  183. <plugin>
  184. <groupId>io.spring.javaformat</groupId>
  185. <artifactId>spring-javaformat-maven-plugin</artifactId>
  186. <version>${spring.checkstyle.version}</version>
  187. </plugin>
  188. <!--代码编译指定版本插件-->
  189. <plugin>
  190. <groupId>org.apache.maven.plugins</groupId>
  191. <artifactId>maven-compiler-plugin</artifactId>
  192. <version>${maven.compiler.version}</version>
  193. <configuration>
  194. <target>${maven.compiler.target}</target>
  195. <source>${maven.compiler.source}</source>
  196. <encoding>UTF-8</encoding>
  197. <skip>false</skip>
  198. </configuration>
  199. </plugin>
  200. <!--打包关联最新 git commit 信息插件-->
  201. <plugin>
  202. <groupId>pl.project13.maven</groupId>
  203. <artifactId>git-commit-id-plugin</artifactId>
  204. <version>${git.commit.version}</version>
  205. </plugin>
  206. <plugin>
  207. <groupId>org.apache.maven.plugins</groupId>
  208. <artifactId>maven-surefire-plugin</artifactId>
  209. <version>3.5.3</version>
  210. </plugin>
  211. <plugin>
  212. <groupId>org.xolstice.maven.plugins</groupId>
  213. <artifactId>protobuf-maven-plugin</artifactId>
  214. <version>0.6.1</version>
  215. <configuration>
  216. <!--
  217. <protocExecutable>/usr/local/bin/protoc</protocExecutable>
  218. -->
  219. <clearOutputDirectory>false</clearOutputDirectory>
  220. <protoSourceRoot>${project.basedir}/src/main/proto</protoSourceRoot>
  221. <outputDirectory>${project.basedir}/src/main/java</outputDirectory>
  222. </configuration>
  223. <executions>
  224. <execution>
  225. <goals>
  226. <goal>compile</goal>
  227. </goals>
  228. </execution>
  229. </executions>
  230. </plugin>
  231. </plugins>
  232. </build>
  233. <!-- 增加云效nexus示例仓库 (演示使用,可自行删除) -->
  234. <distributionManagement>
  235. <repository>
  236. <id>rdc-releases</id>
  237. <url>https://packages.aliyun.com/maven/repository/2161442-release-DcBZC1/</url>
  238. </repository>
  239. <snapshotRepository>
  240. <id>rdc-snapshots</id>
  241. <url>https://packages.aliyun.com/maven/repository/2161442-snapshot-FzKqZK/</url>
  242. </snapshotRepository>
  243. </distributionManagement>
  244. <repositories>
  245. <repository>
  246. <id>public</id>
  247. <name>aliyun nexus</name>
  248. <url>https://maven.aliyun.com/repository/public/</url>
  249. <releases>
  250. <enabled>true</enabled>
  251. </releases>
  252. </repository>
  253. </repositories>
  254. <pluginRepositories>
  255. <pluginRepository>
  256. <id>aliyun-plugin</id>
  257. <url>https://maven.aliyun.com/repository/public</url>
  258. <releases>
  259. <enabled>true</enabled>
  260. </releases>
  261. <snapshots>
  262. <enabled>false</enabled>
  263. </snapshots>
  264. </pluginRepository>
  265. </pluginRepositories>
  266. <profiles>
  267. <!-- 默认环境 -->
  268. <profile>
  269. <id>loc</id>
  270. <activation>
  271. <activeByDefault>true</activeByDefault>
  272. </activation>
  273. <properties>
  274. <profiles.active>loc</profiles.active>
  275. <nacos.username>nacos</nacos.username>
  276. <nacos.password>nacos</nacos.password>
  277. <nacos.server-addr>127.0.0.1:8848</nacos.server-addr>
  278. <nacos.namespace>f9b40f1d-c7e6-4be2-b0bc-f08375368dcb</nacos.namespace>
  279. <profiles.gateway.port>14010</profiles.gateway.port>
  280. <profiles.auth.port>14020</profiles.auth.port>
  281. <profiles.workspace.biz.port>14030</profiles.workspace.biz.port>
  282. <profiles.filerepo.biz.port>14050</profiles.filerepo.biz.port>
  283. <profiles.warehouse.biz.port>14080</profiles.warehouse.biz.port>
  284. <profiles.quartz.biz.port>14090</profiles.quartz.biz.port>
  285. <profiles.report.biz.port>14070</profiles.report.biz.port>
  286. </properties>
  287. </profile>
  288. <profile>
  289. <id>pre</id>
  290. <properties>
  291. <profiles.active>pre</profiles.active>
  292. <nacos.username>nacos</nacos.username>
  293. <nacos.password>n1a2c3o4s5</nacos.password>
  294. <nacos.server-addr>nacos2.yaoyi.net:57260</nacos.server-addr>
  295. <nacos.namespace>ef23465c-e198-4ada-a3f2-88e014c69a3f</nacos.namespace>
  296. <profiles.gateway.port>14010</profiles.gateway.port>
  297. <profiles.auth.port>14020</profiles.auth.port>
  298. <profiles.workspace.biz.port>14030</profiles.workspace.biz.port>
  299. <profiles.filerepo.biz.port>14050</profiles.filerepo.biz.port>
  300. <profiles.warehouse.biz.port>14080</profiles.warehouse.biz.port>
  301. <profiles.quartz.biz.port>14090</profiles.quartz.biz.port>
  302. <profiles.report.biz.port>14070</profiles.report.biz.port>
  303. </properties>
  304. </profile>
  305. <profile>
  306. <id>demo</id>
  307. <properties>
  308. <profiles.active>demo</profiles.active>
  309. <nacos.username>nacos</nacos.username>
  310. <nacos.password>n1a2c3o4s5</nacos.password>
  311. <nacos.server-addr>nacos2.yaoyi.net:57260</nacos.server-addr>
  312. <nacos.namespace>ef23465c-e198-4ada-a3f2-88e014c69a3f</nacos.namespace>
  313. <profiles.gateway.port>14010</profiles.gateway.port>
  314. <profiles.auth.port>14020</profiles.auth.port>
  315. <profiles.workspace.biz.port>14030</profiles.workspace.biz.port>
  316. <profiles.filerepo.biz.port>14050</profiles.filerepo.biz.port>
  317. <profiles.warehouse.biz.port>14080</profiles.warehouse.biz.port>
  318. <profiles.quartz.biz.port>14090</profiles.quartz.biz.port>
  319. <profiles.report.biz.port>14070</profiles.report.biz.port>
  320. </properties>
  321. </profile>
  322. <profile>
  323. <id>prod</id>
  324. <properties>
  325. <profiles.active>prod</profiles.active>
  326. <nacos.username>nacos</nacos.username>
  327. <nacos.password>n1a2c3o4s5</nacos.password>
  328. <nacos.server-addr>nacos2.yaoyi.net:57260</nacos.server-addr>
  329. <nacos.namespace>ef23465c-e198-4ada-a3f2-88e014c69a3f</nacos.namespace>
  330. <profiles.gateway.port>14010</profiles.gateway.port>
  331. <profiles.auth.port>14020</profiles.auth.port>
  332. <profiles.workspace.biz.port>14030</profiles.workspace.biz.port>
  333. <profiles.filerepo.biz.port>14050</profiles.filerepo.biz.port>
  334. <profiles.warehouse.biz.port>14080</profiles.warehouse.biz.port>
  335. <profiles.quartz.biz.port>14090</profiles.quartz.biz.port>
  336. <profiles.report.biz.port>14070</profiles.report.biz.port>
  337. </properties>
  338. </profile>
  339. </profiles>
  340. </project>