<?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>
        <artifactId>bpm-platform</artifactId>
        <groupId>com.artfess</groupId>
        <version>1.0</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>

    <artifactId>bpm-assembly</artifactId>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.deploy.skip>true</maven.deploy.skip><!-- 不上传此jar包 -->
    </properties>
    <dependencies>

        <!-- 养护系统业务服务 -->
        <dependency>
            <groupId>com.artfess</groupId>
            <artifactId>biz-cqxy-server</artifactId>
            <version>${parent.version}</version>
        </dependency>
        <!-- 人员组织权限微服务 -->
        <dependency>
            <groupId>com.artfess</groupId>
            <artifactId>bpm-userCenter-server</artifactId>
            <version>${parent.version}</version>
            <exclusions>
                <exclusion>
                    <groupId>com.artfess</groupId>
                    <artifactId>rest-auth-service</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

        <!-- 系统配置微服务 -->
       <dependency>
            <groupId>com.artfess</groupId>
            <artifactId>bpm-systemConfig-server</artifactId>
            <version>${parent.version}</version>
        </dependency>
        <!-- 应用中心微服务 -->
        <dependency>
            <groupId>com.artfess</groupId>
            <artifactId>bpm-application-server</artifactId>
            <version>${parent.version}</version>
        </dependency>
        <!-- 表单设计微服务 -->
        <dependency>
            <groupId>com.artfess</groupId>
            <artifactId>bpm-formDesign-server</artifactId>
            <version>${parent.version}</version>
            <exclusions>
                <exclusion>
                    <groupId>com.artfess</groupId>
                    <artifactId>rest-auth-service</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <!-- 流程引擎微服务 -->
        <dependency>
            <groupId>com.artfess</groupId>
            <artifactId>bpm-workflow-server</artifactId>
            <version>${parent.version}</version>
            <exclusions>
                <exclusion>
                    <groupId>com.artfess</groupId>
                    <artifactId>rest-auth-service</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <!-- 业务配置微服务 -->
        <dependency>
            <groupId>com.artfess</groupId>
            <artifactId>biz-cqxy-server</artifactId>
            <version>${parent.version}</version>
        </dependency>
        <!-- 基础 -->
        <dependency>
            <groupId>com.artfess</groupId>
            <artifactId>bpm-base</artifactId>
            <version>${parent.version}</version>
            <exclusions>
                <exclusion>
                    <groupId>org.springframework.cloud</groupId>
                    <artifactId>
                        spring-cloud-starter-netflix-eureka-client
                    </artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.alibaba.cloud</groupId>
                    <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
                </exclusion>
                <!-- <exclusion>
                    <groupId>org.springframework.cloud</groupId>
                    <artifactId>
                        spring-cloud-starter-openfeign
                    </artifactId>
                </exclusion> -->
                <exclusion>
                    <groupId>org.springframework.cloud</groupId>
                    <artifactId>
                        spring-cloud-starter-netflix-hystrix
                    </artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.springframework.cloud</groupId>
                    <artifactId>
                        spring-cloud-starter-netflix-hystrix-dashboard
                    </artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.alibaba.cloud</groupId>
                    <artifactId>spring-cloud-alibaba-seata</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>io.seata</groupId>
                    <artifactId>seata-spring-boot-starter</artifactId>
                </exclusion>
            </exclusions>
        </dependency>


    </dependencies>

    <build>
        <finalName>xypm-platform</finalName>
        <plugins>
            <!-- 让配置文件可以读取pom中的信息 -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-resources-plugin</artifactId>
                <version>2.7</version>
                <dependencies>
                    <dependency>
                        <groupId>org.apache.maven.shared</groupId>
                        <artifactId>maven-filtering</artifactId>
                        <version>1.3</version>
                    </dependency>
                </dependencies>
                <configuration>
                    <nonFilteredFileExtensions>
                        <nonFilteredFileExtension>bpmn</nonFilteredFileExtension>
                        <nonFilteredFileExtension>ttf</nonFilteredFileExtension>
                    </nonFilteredFileExtensions>
                    <delimiters>
                        <delimiter>@@</delimiter>
                    </delimiters>
                    <useDefaultDelimiters>false</useDefaultDelimiters>
                </configuration>
            </plugin>
            <!-- 用于生成jar文件 -->
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <mainClass>com.artfess.assembly.Application</mainClass>
                    <layout>JAR</layout>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>repackage</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>
