<?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>ns-jckj2</artifactId>
        <groupId>com.geoway</groupId>
        <version>2.0.0-SNAPSHOT</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>

    <artifactId>ns-jckj-biz</artifactId>

    <dependencies>
        <dependency>
            <groupId>com.geoway</groupId>
            <artifactId>ns-jckj-base</artifactId>
            <version>${project.version}</version>
        </dependency>

        <dependency>
            <groupId>com.geoway</groupId>
            <artifactId>ns-sso-server</artifactId>
            <version>${sso.server.version}</version>
            <exclusions>
                <exclusion>
                    <artifactId>ns-design-base</artifactId>
                    <groupId>com.geoway</groupId>
                </exclusion>
            </exclusions>
        </dependency>

        <!-- 第三方使用加密组件 -->
        <dependency>
            <groupId>com.iam</groupId>
            <artifactId>enc_Codec</artifactId>
            <version>1.0</version>
        </dependency>
        <dependency>
            <groupId>bjca</groupId>
            <artifactId>bjca-log</artifactId>
            <version>1.0</version>
            <scope>system</scope>
            <systemPath>${project.basedir}/../lib/BJCA_LOG.jar</systemPath>
        </dependency>
        <dependency>
            <groupId>bjca</groupId>
            <artifactId>SVSClient</artifactId>
            <version>1.0</version>
            <scope>system</scope>
            <systemPath>${project.basedir}/../lib/SVSClient.jar</systemPath>
        </dependency>
        <!--基于redis 的session共享单点登录客户端-->
        <!--        <dependency>-->
        <!--            <groupId>com.geoway</groupId>-->
        <!--            <artifactId>ns-sso-client-redis</artifactId>-->
        <!--            <version>1.0.4</version>-->
        <!--        </dependency>-->

        <!--<dependency>
            <groupId>com.geoway</groupId>
            <artifactId>client</artifactId>
            <version>1.0.1</version>
        </dependency>
        <dependency>
            <groupId>com.geoway</groupId>
            <artifactId>client-redis</artifactId>
            <version>1.0.1</version>
            <scope>compile</scope>
        </dependency>-->

        <!--Elastic Search依赖-->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-elasticsearch</artifactId>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <!-- 上传源码 -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <version>${maven-jar-plugin.version}</version>
                <configuration>
                    <attach>true</attach>
                </configuration>
                <executions>
                    <execution>
                        <phase>compile</phase>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

            <!-- Allatori plugin start -->
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>exec-maven-plugin</artifactId>
                <version>${codehaus.mojo.version}</version>
                <executions>
                    <execution>
                        <id>run-allatori</id>
                        <phase>site</phase>
                        <goals>
                            <goal>exec</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <executable>java</executable>
                    <arguments>
                        <argument>-Xms128m</argument>
                        <argument>-Xmx512m</argument>
                        <argument>-jar</argument>
                        <argument>../lib/allatori.jar</argument>
                        <argument>${basedir}/target/allatori.xml</argument>
                    </arguments>
                </configuration>
            </plugin>
            <!-- Allatori plugin end -->

        </plugins>
    </build>
</project>