<?xml version="1.0" encoding="UTF-8"?>
<!--

    Copyright 2019 The JoyQueue Authors.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->
<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>joyqueue-server</artifactId>
        <groupId>org.joyqueue</groupId>
        <version>4.2.5.2</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>

    <artifactId>joyqueue-server-runtime</artifactId>
    <name>JoyQueue-Server-Runtime</name>
    <description>Server runtime</description>
    <properties>
        <maven.deploy.skip>true</maven.deploy.skip>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.apache.logging.log4j</groupId>
            <artifactId>log4j-api</artifactId>
            <scope>runtime</scope>
        </dependency>

        <dependency>
            <groupId>org.apache.logging.log4j</groupId>
            <artifactId>log4j-core</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency> <!-- 桥接：告诉Slf4j使用Log4j2 -->
            <groupId>org.apache.logging.log4j</groupId>
            <artifactId>log4j-slf4j-impl</artifactId>
            <scope>runtime</scope>
        </dependency>

        <dependency>
            <groupId>org.joyqueue</groupId>
            <artifactId>joyqueue-retry-h2</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.joyqueue</groupId>
            <artifactId>joyqueue-datasource-hikaricp</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-validator</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>javax.el</groupId>
            <artifactId>javax.el-api</artifactId>
        </dependency>
        <dependency>
            <groupId>org.glassfish.web</groupId>
            <artifactId>javax.el</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.joyqueue</groupId>
            <artifactId>joyqueue-archive-hbase</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.joyqueue</groupId>
            <artifactId>joyqueue-broker-kafka</artifactId>
        </dependency>
        <dependency>
            <groupId>org.joyqueue</groupId>
            <artifactId>joyqueue-broker-mqtt</artifactId>
        </dependency>
        <dependency>
            <groupId>org.joyqueue</groupId>
            <artifactId>joyqueue-broker-protocol</artifactId>
        </dependency>
        <dependency>
            <groupId>org.joyqueue</groupId>
            <artifactId>joyqueue-nsr-core</artifactId>
        </dependency>
        <dependency>
            <groupId>org.joyqueue</groupId>
            <artifactId>joyqueue-nsr-journalkeeper</artifactId>
        </dependency>
        <dependency>
            <groupId>org.joyqueue</groupId>
            <artifactId>joyqueue-broker-monitor-pth</artifactId>
        </dependency>
        <dependency>
            <groupId>org.joyqueue</groupId>
            <artifactId>joyqueue-store-core</artifactId>
        </dependency>
        <dependency>
            <groupId>org.joyqueue</groupId>
            <artifactId>joyqueue-client-all</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>org.joyqueue</groupId>
                    <artifactId>joyqueue-client-core-shaded</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.joyqueue</groupId>
            <artifactId>joyqueue-client-core</artifactId>
        </dependency>
        <dependency>
            <groupId>com.beust</groupId>
            <artifactId>jcommander</artifactId>
        </dependency>
    </dependencies>
    <build>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
            </resource>
        </resources>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <version>2.3.2</version>
                <configuration>
                    <excludes>
                        <exclude>*.xml</exclude>
                        <exclude>*.properties</exclude>
                    </excludes>
                </configuration>
            </plugin>
            <plugin>
                <!-- Description: https://github.com/ktoso/maven-git-commit-id-plugin -->
                <groupId>pl.project13.maven</groupId>
                <artifactId>git-commit-id-plugin</artifactId>
                <executions>
                    <execution>
                        <goals>
                            <goal>revision</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <dotGitDirectory>${project.basedir}/../.git</dotGitDirectory>
                    <generateGitPropertiesFile>true</generateGitPropertiesFile>
                    <failOnNoGitDirectory>false</failOnNoGitDirectory>
                    <skipPoms>false</skipPoms>
                    <generateGitPropertiesFilename>src/main/resources/.version.properties</generateGitPropertiesFilename>
                    <gitDescribe>
                        <!-- don't generate the describe property -->
                        <skip>true</skip>
                    </gitDescribe>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>