<?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">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>com.icetech</groupId>
        <artifactId>ice-parent</artifactId>
        <version>1.0.1-THIRD-SNAPSHOT</version>
    </parent>
    <artifactId>ice-socket-proxy</artifactId>
    <version>1.0.0</version>
    
    <properties>
        <ice.components.version>1.0.1-THIRD-SNAPSHOT</ice.components.version>
        <dockerfile-version>1.4.9</dockerfile-version>
    </properties>

    <dependencies>
        <dependency>
            <groupId>com.icetech</groupId>
            <artifactId>ice-common-spring-boot-starter</artifactId>
            <version>${ice.components.version}</version>
        </dependency>
        <dependency>
            <groupId>com.icetech</groupId>
            <artifactId>ice-redis-spring-boot-starter</artifactId>
            <version>${ice.components.version}</version>
        </dependency>
        <dependency>
            <groupId>com.icetech</groupId>
            <artifactId>ice-rabbitmq-spring-boot-starter</artifactId>
            <version>${ice.components.version}</version>
        </dependency>
        <dependency>
            <groupId>com.icetech</groupId>
            <artifactId>ice-rpc-spring-boot-starter</artifactId>
            <version>${ice.components.version}</version>
        </dependency>
        <dependency>
            <groupId>org.yeauty</groupId>
            <artifactId>netty-websocket-spring-boot-starter</artifactId>
        </dependency>
        <dependency>
            <groupId>com.icetech</groupId>
            <artifactId>ice-log-spring-boot-starter</artifactId>
            <version>${ice.components.version}</version>
        </dependency>
        <dependency>
            <groupId>com.icetech</groupId>
            <artifactId>ice-base-api</artifactId>
            <version>1.0.0</version>
        </dependency>
        <dependency>
            <groupId>com.alibaba.boot</groupId>
            <artifactId>nacos-config-spring-boot-starter</artifactId>
        </dependency>
    </dependencies>

    <!--deploy 配置-->
    <distributionManagement>
        <repository>
            <id>nexus-releases</id>
            <name>Nexus Release Repository</name>
            <url>http://mvn.icecloud-car.com/nexus/content/repositories/releases/</url>
        </repository>

        <snapshotRepository>
            <id>nexus-snapshots</id>
            <name>Nexus snapshots Repository</name>
            <url>http://mvn.icecloud-car.com/nexus/content/repositories/snapshots/</url>
        </snapshotRepository>
    </distributionManagement>
    <!--私服仓库配置-->
    <repositories>
        <repository>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
            <id>public</id>
            <name>public</name>
            <url>http://mvn.icecloud-car.com/nexus/content/groups/public/</url>
        </repository>
    </repositories>

    <build>
        <finalName>${project.artifactId}</finalName>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <version>${spring-boot-dependencies.version}</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>repackage</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>com.spotify</groupId>
                <artifactId>dockerfile-maven-plugin</artifactId>
                <version>${dockerfile-version}</version>
                <configuration>
                    <repository>${project.build.finalName}</repository>
                    <buildArgs>
                        <JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE>
                    </buildArgs>
                </configuration>
            </plugin>
        </plugins>
    </build>

</project>