<?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">
<!--    以下代码在发布jar包时屏蔽-->
    <parent>
        <artifactId>Bro-Admin</artifactId>
        <groupId>cn.bronet.admin</groupId>
        <version>1.0.0</version>
    </parent>
    <!--    以下代码在发布jar包时放开-->
    <groupId>cn.bronet.admin</groupId>


    <modelVersion>4.0.0</modelVersion>
     <artifactId>bro-admin-system</artifactId>
    <version>${bro-admin-system.version}</version>
    <description>
        system系统模块
    </description>

    <properties>

        <!--   环境区分参数  -  开始     -->
        <!--    发布版本    -->
<!--           <bro-admin-system.version>1.0.0</bro-admin-system.version>-->
        <!--   本地使用版本     -->
        <bro-admin-system.version>1.0.0-LOCATION</bro-admin-system.version>
        <!--   环境区分参数  -  结束     -->



        <!--  编译配置开始  -->
        <!--  JDK版本  -->
        <bro-admin.version>1.0.0</bro-admin.version>
        <bro-admin.location.version>1.0.0-LOCATION</bro-admin.location.version>
        <java.version>1.8</java.version>
        <!--  编译插件版本  -->
        <compiler.version>3.1</compiler.version>
        <!--  部署插件版本  -->
        <deploy.version>2.8</deploy.version>
        <!--  是否跳过部署到制品仓库   true-跳过,不部署     false-不跳过,部署  -->
        <deploy.skip>false</deploy.skip>
        <!--  部署源码插件版本  -->
        <source.version>3.0.0</source.version>
        <!--  编译编码  -->
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <!--  编译配置结束  -->
    </properties>
    <dependencies>

        <!-- 通用工具 -->
        <dependency>
            <groupId>cn.bronet.admin</groupId>
            <artifactId>bro-admin-common</artifactId>
            <version>${bro-admin.version}</version>
            <scope>provided</scope>
        </dependency>

    </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>${compiler.version}</version>
                <configuration>
                    <source>${java.version}</source>
                    <target>${java.version}</target>
                    <encoding>${project.build.sourceEncoding}</encoding>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-deploy-plugin</artifactId>
                <version>${deploy.version}</version>
                <configuration>
                    <skip>${deploy.skip}</skip>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <version>${source.version}</version>
                <!-- 绑定source插件到Maven的生命周期,并在生命周期后执行绑定的source的goal -->
                <executions>
                    <execution>
                        <!-- 绑定source插件到Maven的生命周期 -->
                        <phase>compile</phase>
                        <!--在生命周期后执行绑定的source插件的goals -->
                        <goals>
                            <goal>jar-no-fork</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>