<?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-design</artifactId>
        <groupId>com.geoway</groupId>
        <version>1.1.2-snapshot</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>

    <artifactId>ns-design-biz</artifactId>

    <dependencies>
        <dependency>
            <groupId>com.geoway</groupId>
            <artifactId>ns-design-base</artifactId>
            <version>1.1.2-snapshot</version>
        </dependency>

        <dependency>
            <groupId>com.geoway</groupId>
            <artifactId>ns-sso-server</artifactId>
            <version>1.1.2-snapshot</version>
        </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>
        <dependency>
            <groupId>com.geoway</groupId>
            <artifactId>ns-sso-client</artifactId>
            <version>1.1.2-snapshot</version>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <!-- 上传源码 -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <version>3.0.1</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>3.0.0</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>