pom.xml 5.61 KB
<?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>com.zteits.boot</groupId>
        <artifactId>parking-cloud</artifactId>
        <version>${revision}</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>

    <artifactId>parking-server</artifactId>
    <packaging>jar</packaging>

    <name>${project.artifactId}</name>
    <description>
        后端 Server 的主项目,通过引入需要 parking-module-xxx 的依赖,
        从而实现提供 RESTful API 给 parking-cloud-ui(管理后台,含停车与政务域)以及 parking-cloud-screen(可视化大屏)。
        本质上来说,它就是个空壳(容器)!最终发布物**只有一个 Jar**。
    </description>

    <dependencies>
        <!-- 跨模块契约层(BizResult 兼容层等) -->
        <dependency>
            <groupId>com.zteits.boot</groupId>
            <artifactId>parking-module-api</artifactId>
        </dependency>

        <!-- ========== 框架层:技术组件 ========== -->
        <dependency>
            <groupId>com.zteits.boot</groupId>
            <artifactId>parking-spring-boot-starter-web</artifactId>
        </dependency>
        <dependency>
            <groupId>com.zteits.boot</groupId>
            <artifactId>parking-spring-boot-starter-security</artifactId>
        </dependency>
        <dependency>
            <groupId>com.zteits.boot</groupId>
            <artifactId>parking-spring-boot-starter-mybatis</artifactId>
        </dependency>
        <dependency>
            <groupId>com.zteits.boot</groupId>
            <artifactId>parking-spring-boot-starter-redis</artifactId>
        </dependency>
        <dependency>
            <groupId>com.zteits.boot</groupId>
            <artifactId>parking-spring-boot-starter-job</artifactId>
        </dependency>
        <dependency>
            <groupId>com.zteits.boot</groupId>
            <artifactId>parking-spring-boot-starter-mq</artifactId>
        </dependency>
        <dependency>
            <groupId>com.zteits.boot</groupId>
            <artifactId>parking-spring-boot-starter-excel</artifactId>
        </dependency>

        <!-- ========== 业务模块 ========== -->
        <!-- 本文件是「模块进入唯一 Jar」的唯一入口:新增模块必须在这里加依赖,否则不生效 -->
        <dependency>
            <groupId>com.zteits.boot</groupId>
            <artifactId>parking-module-system</artifactId>
        </dependency>

        <!-- 存量核心业务模块(P2 迁入)。park/order/pay/bill 之间有循环调用,
             必须一起进 Jar,单独引其中一个都会因 Mapper/Service 缺失而启动失败。 -->
        <dependency>
            <groupId>com.zteits.boot</groupId>
            <artifactId>parking-module-park</artifactId>
        </dependency>
        <dependency>
            <groupId>com.zteits.boot</groupId>
            <artifactId>parking-module-order</artifactId>
        </dependency>
        <dependency>
            <groupId>com.zteits.boot</groupId>
            <artifactId>parking-module-pay</artifactId>
        </dependency>
        <dependency>
            <groupId>com.zteits.boot</groupId>
            <artifactId>parking-module-bill</artifactId>
        </dependency>
        <dependency>
            <groupId>com.zteits.boot</groupId>
            <artifactId>parking-module-charge</artifactId>
        </dependency>
        <dependency>
            <groupId>com.zteits.boot</groupId>
            <artifactId>parking-module-business</artifactId>
        </dependency>
        <!-- 设备采集(德飞地锁):P2 只有空实现,供 order 装配 DfGroundLockMsgPushService -->
        <dependency>
            <groupId>com.zteits.boot</groupId>
            <artifactId>parking-module-datacollect</artifactId>
        </dependency>

        <!-- P1 起逐个打开:
        <dependency>
            <groupId>com.zteits.boot</groupId>
            <artifactId>parking-module-infra</artifactId>
        </dependency>
        -->

        <!-- spring boot 配置所需依赖 -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-configuration-processor</artifactId>
            <optional>true</optional>
        </dependency>

        <!-- 服务保障相关:健康检查等 -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-actuator</artifactId>
        </dependency>

        <!-- 测试相关 -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <!-- 设置构建的 jar 包名 -->
        <finalName>${project.artifactId}-${maven.build.timestamp}</finalName>
        <plugins>
            <!-- 打包:将引入的 jar 打入其中,产出唯一可执行 Jar -->
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <version>${spring.boot.version}</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>repackage</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

</project>