<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>com.easy.admin</groupId>
        <artifactId>easy-vben</artifactId>
        <version>1.1.0</version>
    </parent>

    <artifactId>easy-api</artifactId>
    <packaging>jar</packaging>
<!--    <packaging>war</packaging>-->

    <description>Easy Api</description>

    <dependencies>
        <dependency>
            <groupId>com.easy.admin</groupId>
            <artifactId>easy-sys</artifactId>
        </dependency>
        <dependency>
            <groupId>com.easy.admin</groupId>
            <artifactId>easy-file</artifactId>
        </dependency>
        <dependency>
            <groupId>com.easy.admin</groupId>
            <artifactId>easy-generator</artifactId>
        </dependency>
        <dependency>
            <groupId>com.easy.admin</groupId>
            <artifactId>easy-scheduler</artifactId>
        </dependency>
        <dependency>
            <groupId>com.easy.admin</groupId>
            <artifactId>easy-activiti</artifactId>
        </dependency>
        <dependency>
            <groupId>com.easy.admin</groupId>
            <artifactId>easy-sample</artifactId>
        </dependency>
        <dependency>
            <groupId>com.easy.admin</groupId>
            <artifactId>easy-cms</artifactId>
        </dependency>
        <dependency>
            <groupId>com.easy.admin</groupId>
            <!-- easy-xxx 请替换为实际名称 -->
            <artifactId>huzhou</artifactId>
        </dependency>
<!--        <dependency>-->
<!--            <groupId>com.easy.admin</groupId>-->
<!--            <artifactId>easy-huozhou</artifactId>-->
<!--        </dependency>-->
    </dependencies>

    <build>
        <finalName>huzhou</finalName>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
            </resource>
            <resource>
                <directory>src/main/webapp</directory>
            </resource>
        </resources>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <version>${spring-boot.version}</version>
                <configuration>
                    <finalName>${project.build.finalName}</finalName>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>repackage</goal>
                        </goals>
                    </execution>
                </executions>
                <dependencies>
                    <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>springloaded</artifactId>
                        <version>1.2.8.RELEASE</version>
                    </dependency>
                </dependencies>
            </plugin>
            <plugin>
                <!-- https://gitee.com/roseboy/classfinal -->
<!--                <groupId>cn.ywyu</groupId>-->
<!--                <artifactId>classfinal-maven-plugin</artifactId>-->
<!--                <version>1.3.2</version>-->
                <groupId>com.gitee.lcm742320521</groupId>
                <artifactId>classfinal-maven-plugin</artifactId>
                <version>1.4.1</version>
                <configuration>
                    <!--加密密码,如果是#号,则使用无密码模式加密,【加密后没有pom文件,不用担心泄漏】-->
                    <password>123456</password>
                    <!--加密的包名(可为空,多个用","分割)-->
                    <packages>com.easy.admin</packages>
                    <!--需要加密的配置文件,一般是classes目录下的yml或properties文件(可为空,多个用","分割)-->
                    <cfgfiles>*.properties,*.yml,com/easy/admin/**/mapping/*.xml</cfgfiles>
                    <!--外部依赖的jar目录,例如/tomcat/lib(可为空,多个用","分割)-->
                    <!--<classpath></classpath>-->
                    <libjars>huzhou-1.1.0.jar</libjars> <!--jar/war包lib下要加密jar文件名(可为空,多个用","分割)-->
                    <!--<cfgpasspath>/etc/.env</cfgpasspath>-->         <!--密码文件路径,可为空,默认 /etc/.env-->
                    <!--<excludes>com.Test</excludes>-->                <!--排除不需要加密的文件-->
                    <!--<classpath></classpath>-->                      <!--外部依赖jarlib-->
                    <!--<debug>true</debug>-->                          <!--调试模式,打印debug日志-->
                    <code>7E38231D00D8427BB1E463E0BD7375EDD41D8CD98F00B204E9800998ECF8427ED41D8CD98F00B204E9800998ECF8427E</code>
                </configuration>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>classFinal</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <repositories>
        <!--阿里云主仓库,代理了maven central和jcenter仓库-->
        <repository>
            <id>aliyun</id>
            <name>aliyun</name>
            <url>https://maven.aliyun.com/repository/public</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
    </repositories>
    <profiles>
        <profile>
            <id>dev</id>
            <properties>
                <!-- 环境标识,需要与配置文件的名称相对应 -->
                <profiles.active>dev</profiles.active>
            </properties>
            <activation>
                <!-- 默认环境 -->
                <activeByDefault>true</activeByDefault>
            </activation>
        </profile>
    </profiles>
</project>