274 lines
13 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>cn.iocoder.cloud</groupId>
<artifactId>muse</artifactId>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>muse-server</artifactId>
<packaging>jar</packaging>
<name>${project.artifactId}</name>
<description>
后端 Server 的主项目,通过引入需要 muse-module-xxx 的依赖,
从而实现提供 RESTful API 给 muse-ui-admin、muse-ui-user 等前端项目。
本质上来说,它就是个空壳(容器)!
</description>
<url>https://github.com/YunaiV/ruoyi-vue-pro</url>
<dependencies>
<dependency>
<groupId>cn.iocoder.cloud</groupId>
<artifactId>muse-module-system-server</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>cn.iocoder.cloud</groupId>
<artifactId>muse-module-infra-server</artifactId>
<version>${revision}</version>
</dependency>
<!-- PostgreSQL 运行时驱动muse-spring-boot-starter-mybatis 中为 optional容器项目需显式声明 -->
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
</dependency>
<!-- Muse 业务表 Flyway 迁移入口,迁移目录见 application.yaml 的 spring.flyway.locations -->
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-core</artifactId>
</dependency>
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-database-postgresql</artifactId>
</dependency>
<!-- Muse 创作业务模块 -->
<dependency>
<groupId>cn.iocoder.cloud</groupId>
<artifactId>muse-module-content-server</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>cn.iocoder.cloud</groupId>
<artifactId>muse-module-meta-server</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>cn.iocoder.cloud</groupId>
<artifactId>muse-module-events-server</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>cn.iocoder.cloud</groupId>
<artifactId>muse-module-knowledge-server</artifactId>
<version>${revision}</version>
</dependency>
<!-- 2.0.0 单人版保留 market 对外契约,供 knowledge/content 依赖 fail-closed facade默认不装配 market-server。 -->
<dependency>
<groupId>cn.iocoder.cloud</groupId>
<artifactId>muse-module-market-api</artifactId>
<version>${revision}</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>cn.iocoder.cloud</groupId>-->
<!-- <artifactId>muse-module-market-server</artifactId>-->
<!-- <version>${revision}</version>-->
<!-- </dependency>-->
<!-- 会员中心。默认注释,保证编译速度 -->
<dependency>
<groupId>cn.iocoder.cloud</groupId>
<artifactId>muse-module-member-server</artifactId>
<version>${revision}</version>
</dependency>
<!-- 数据报表。默认注释,保证编译速度 -->
<!-- <dependency>-->
<!-- <groupId>cn.iocoder.cloud</groupId>-->
<!-- <artifactId>muse-module-report-server</artifactId>-->
<!-- <version>${revision}</version>-->
<!-- </dependency>-->
<!-- 工作流。默认注释,保证编译速度 -->
<!-- <dependency>-->
<!-- <groupId>cn.iocoder.cloud</groupId>-->
<!-- <artifactId>muse-module-bpm-server</artifactId>-->
<!-- <version>${revision}</version>-->
<!-- </dependency>-->
<!-- 支付服务。默认注释,保证编译速度 -->
<!-- <dependency>-->
<!-- <groupId>cn.iocoder.cloud</groupId>-->
<!-- <artifactId>muse-module-pay-server</artifactId>-->
<!-- <version>${revision}</version>-->
<!-- </dependency>-->
<!-- 微信公众号模块。默认注释,保证编译速度 -->
<!-- <dependency>-->
<!-- <groupId>cn.iocoder.cloud</groupId>-->
<!-- <artifactId>muse-module-mp-server</artifactId>-->
<!-- <version>${revision}</version>-->
<!-- </dependency>-->
<!-- Muse AI 运行时入口P1R-4 起由 ai-server 持有 dedicated AI 基础设施与后续真实路由 -->
<dependency>
<groupId>cn.iocoder.cloud</groupId>
<artifactId>muse-module-ai-server</artifactId>
<version>${revision}</version>
</dependency>
<!-- 服务保障相关 -->
<dependency>
<groupId>cn.iocoder.cloud</groupId>
<artifactId>muse-spring-boot-starter-protection</artifactId>
</dependency>
<!-- Registry 注册中心相关 -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
</dependency>
<!-- RPC 远程调用相关 -->
<dependency>
<groupId>cn.iocoder.cloud</groupId>
<artifactId>muse-spring-boot-starter-rpc</artifactId>
<!-- 目的muse-server 单体启动,禁用 openfeign -->
<exclusions>
<exclusion>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>cn.iocoder.cloud</groupId>
<artifactId>muse-spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<!-- ArchUnitBC 边界等架构约束的机械门禁(见 .agents/rules/bc-boundaries.md仅测试期生效 -->
<dependency>
<groupId>com.tngtech.archunit</groupId>
<artifactId>archunit-junit5</artifactId>
<version>1.3.0</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<!-- 设置构建的 jar 包名 -->
<finalName>${project.artifactId}</finalName>
<plugins>
<!-- 打包 -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring.boot.version}</version>
<executions>
<execution>
<goals>
<goal>repackage</goal> <!-- 将引入的 jar 打入其中 -->
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>market-detached-test-tree</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<!-- 2.0.0 S3 默认剥离依赖 market-server 装配态的测试树;恢复时显式启用 market-assembled。 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<testExcludes>
<testExclude>**/P1rMarketAdminAppealCompletedApprovalIT.java</testExclude>
<testExclude>**/P1rMarketAdminAssetReadsCompletedApprovalIT.java</testExclude>
<testExclude>**/P1rMarketAdminPublishReviewCompletedApprovalIT.java</testExclude>
<testExclude>**/P1rMarketDiscoveryFavoriteCompletedApprovalIT.java</testExclude>
<testExclude>**/P1rMarketEventsPublishEndToEndTest.java</testExclude>
<testExclude>**/P1rMarketGovernanceWriteCompletedApprovalIT.java</testExclude>
<testExclude>**/P1rMarketHandoffClusterCompletedApprovalIT.java</testExclude>
<testExclude>**/P1rMarketKbForkMaterializationIT.java</testExclude>
<testExclude>**/P1rMarketLicenseInstallCompletedApprovalIT.java</testExclude>
<testExclude>**/P1rMarketProducerAppealCompletedApprovalIT.java</testExclude>
<testExclude>**/P1rMarketPublishProducerCompletedApprovalIT.java</testExclude>
<testExclude>**/P1rMarketplaceDiscoveryReadsCompletedApprovalIT.java</testExclude>
<testExclude>**/P1rAccountAdminPurchaseRecordsCompletedApprovalIT.java</testExclude>
<testExclude>**/P1rAccountMarketRecordsCompletedApprovalIT.java</testExclude>
<testExclude>**/P1rMarketRealApiGateTest.java</testExclude>
</testExcludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<excludes>
<exclude>**/P1rMarketAdminAppealCompletedApprovalIT.java</exclude>
<exclude>**/P1rMarketAdminAssetReadsCompletedApprovalIT.java</exclude>
<exclude>**/P1rMarketAdminPublishReviewCompletedApprovalIT.java</exclude>
<exclude>**/P1rMarketDiscoveryFavoriteCompletedApprovalIT.java</exclude>
<exclude>**/P1rMarketEventsPublishEndToEndTest.java</exclude>
<exclude>**/P1rMarketGovernanceWriteCompletedApprovalIT.java</exclude>
<exclude>**/P1rMarketHandoffClusterCompletedApprovalIT.java</exclude>
<exclude>**/P1rMarketKbForkMaterializationIT.java</exclude>
<exclude>**/P1rMarketLicenseInstallCompletedApprovalIT.java</exclude>
<exclude>**/P1rMarketProducerAppealCompletedApprovalIT.java</exclude>
<exclude>**/P1rMarketPublishProducerCompletedApprovalIT.java</exclude>
<exclude>**/P1rMarketplaceDiscoveryReadsCompletedApprovalIT.java</exclude>
<exclude>**/P1rAccountAdminPurchaseRecordsCompletedApprovalIT.java</exclude>
<exclude>**/P1rAccountMarketRecordsCompletedApprovalIT.java</exclude>
<exclude>**/P1rMarketRealApiGateTest.java</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>market-assembled</id>
<dependencies>
<dependency>
<groupId>cn.iocoder.cloud</groupId>
<artifactId>muse-module-market-server</artifactId>
<version>${revision}</version>
</dependency>
</dependencies>
<build>
<plugins>
<!-- 恢复/全量装配口径:即使同时带上 dry-run profile也以全测试树为准。 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<testExcludes combine.self="override" />
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<excludes combine.self="override" />
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>