<?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>

    <groupId>com.xugudb</groupId>
    <artifactId>xugu-jdbc</artifactId>
    <version>12.2.0</version>
    <name>XuGuJdbcDriver</name>
    <url>https://xugudb.com/</url>
    <description>The JDBC Driver for XuGu Database.</description>
    <developers>
        <developer>
            <name>xugudb</name>
            <email>mrliufox@foxmail.com</email>
        </developer>
    </developers>
    <licenses>
        <license>
            <name>Apache License, Version 2.0</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0</url>
        </license>
    </licenses>

    <scm>
        <connection>http://192.168.2.208:8012/xugu-itfs/cloudjdbc.git</connection>
        <developerConnection>http://192.168.2.208:8012/xugu-itfs/cloudjdbc.git</developerConnection>
        <url>http://192.168.2.208:8012/xugu-itfs/cloudjdbc</url>
    </scm>
    <properties>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
<!--        <commons-beanutils.version>1.9.4</commons-beanutils.version>-->
<!--        <commons-collections.version>3.2.2</commons-collections.version>-->
<!--        <commons-logging.version>1.2</commons-logging.version>-->
<!--        <commons-lang.version>2.4</commons-lang.version>-->
<!--        <ezmorph.version>1.0.6</ezmorph.version>-->
<!--        <json-lib.version>2.4</json-lib.version>-->
        <junit.version>4.13.1</junit.version>
<!--        <log4j.version>1.2.17</log4j.version>-->
<!--        <slf4j-version>1.7.25</slf4j-version>-->
        <logback-version>1.4.11</logback-version>
<!--        <hamcrest-all>1.3</hamcrest-all>-->
    </properties>

    <dependencies>
<!--        <dependency>-->
<!--            <groupId>com.alibaba</groupId>-->
<!--            <artifactId>fastjson</artifactId>-->
<!--            <version>1.2.31_noneautotype</version>-->
<!--        </dependency>-->
<!--        <dependency>-->
<!--            <groupId>commons-beanutils</groupId>-->
<!--            <artifactId>commons-beanutils</artifactId>-->
<!--            <version>${commons-beanutils.version}</version>-->
<!--        </dependency>-->
<!--        <dependency>-->
<!--            <groupId>commons-collections</groupId>-->
<!--            <artifactId>commons-collections</artifactId>-->
<!--            <version>${commons-collections.version}</version>-->
<!--        </dependency>-->
<!--        <dependency>-->
<!--            <groupId>commons-logging</groupId>-->
<!--            <artifactId>commons-logging</artifactId>-->
<!--            <version>${commons-logging.version}</version>-->
<!--        </dependency>-->
<!--        <dependency>-->
<!--            <groupId>commons-lang</groupId>-->
<!--            <artifactId>commons-lang</artifactId>-->
<!--            <version>${commons-lang.version}</version>-->
<!--        </dependency>-->
<!--        <dependency>-->
<!--            <groupId>net.sf.ezmorph</groupId>-->
<!--            <artifactId>ezmorph</artifactId>-->
<!--            <version>${ezmorph.version}</version>-->
<!--        </dependency>-->
<!--        <dependency>-->
<!--            <groupId>net.sf.json-lib</groupId>-->
<!--            <artifactId>json-lib</artifactId>-->
<!--            <version>${json-lib.version}</version>-->
<!--            <classifier>jdk15</classifier>-->
<!--        </dependency>-->
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>${junit.version}</version>
            <scope>test</scope>
        </dependency>
<!--        <dependency>-->
<!--            <groupId>log4j</groupId>-->
<!--            <artifactId>log4j</artifactId>-->
<!--            <version>${log4j.version}</version>-->
<!--        </dependency>-->
<!--        <dependency>-->
<!--            <groupId>org.slf4j</groupId>-->
<!--            <artifactId>slf4j-api</artifactId>-->
<!--            <version>${slf4j-version}</version>-->
<!--        </dependency>-->
        <!-- 添加logback-classic依赖 -->
        <dependency>
            <groupId>ch.qos.logback</groupId>
            <artifactId>logback-classic</artifactId>
            <version>${logback-version}</version>
        </dependency>
        <!-- 添加logback-core依赖 -->
<!--        <dependency>-->
<!--            <groupId>ch.qos.logback</groupId>-->
<!--            <artifactId>logback-core</artifactId>-->
<!--            <version>${logback-version}</version>-->
<!--        </dependency>-->
<!--        <dependency>-->
<!--            <groupId>org.hamcrest</groupId>-->
<!--            <artifactId>hamcrest-all</artifactId>-->
<!--            <version>${hamcrest-all}</version>-->
<!--            <scope>test</scope>-->
<!--        </dependency>-->
    </dependencies>


    <distributionManagement>
        <snapshotRepository>
            <id>ossrh</id>
            <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
        </snapshotRepository>
        <repository>
            <id>ossrh</id>
            <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
        </repository>
    </distributionManagement>


    <build>
        <!--打包时，精细控制指定资源-->
        <resources>
            <resource>
                <!--指定资源目录-->
                <directory>src/main/resources</directory>
                <filtering>false</filtering>
                <includes>
                    <!--细粒度控制，打包包含文件-->
                    <include>**/JdbcErrorCode.txt</include>
                    <include>**/JdbcVersion.properties</include>
                    <include>**/java.sql.Driver</include>
                </includes>
                <excludes>
                    <!--细粒度控制，打包排除文件-->
                    <exclude>*.md</exclude>
                    <exclude>*.xml</exclude>
                    <exclude>*.jpg</exclude>
                    <exclude>*.png</exclude>
                </excludes>
            </resource>
            <resource>
                <!--指定资源目录-->
                <directory>src/main/java</directory>
                <filtering>false</filtering>
                <includes>
                    <!--细粒度控制，打包包含文件-->
                    <include>**/*.properties</include>
                    <include>**/*.dll</include>
                    <include>**/*.so</include>
                </includes>
                <excludes>
                    <!--细粒度控制，打包排除文件-->
                    <exclude>*.txt</exclude>
                </excludes>
            </resource>
        </resources>
        <plugins>
            <plugin>
                <!-- 请复制 toolchains.xml 文件至目录 ${user.dir}/.m2 -->
                <!-- 并修改文件中 1.8 JDK 目录位置 -->
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-toolchains-plugin</artifactId>
                <version>3.0.0</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>toolchain</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <toolchains>
                        <jdk>
                            <version>1.8</version>
                            <vendor>Oracle</vendor>
                        </jdk>
                    </toolchains>
                </configuration>
            </plugin>
            <!--            <plugin>-->
            <!--                <groupId>org.apache.maven.plugins</groupId>-->
            <!--                <artifactId>maven-jar-plugin</artifactId>-->
            <!--                <version>3.2.0</version>-->
            <!--                <configuration>-->
            <!--                    <archive>-->
            <!--                        &lt;!&ndash; 生成的jar中，不要包含pom.xml和pom.properties这两个文件 &ndash;&gt;-->
            <!--                        <addMavenDescriptor>false</addMavenDescriptor>-->
            <!--                        <manifest>-->
            <!--                            &lt;!&ndash; 是否添加依赖的jar路径配置 &ndash;&gt;-->
            <!--                            <addClasspath>false</addClasspath>-->
            <!--                            &lt;!&ndash; 依赖的jar包存放位置，和生成的jar放在同一级目录下 &ndash;&gt;-->
            <!--                            <classpathPrefix>lib/</classpathPrefix>-->
            <!--                            <addDefaultImplementationEntries>true</addDefaultImplementationEntries>-->
            <!--                            <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>-->
            <!--                        </manifest>-->
            <!--                        <manifestEntries>-->
            <!--                            &lt;!&ndash;填写配置文件相对于项目jar包的路径&ndash;&gt;-->
            <!--                            &lt;!&ndash;<Class-Path>./</Class-Path>&ndash;&gt;-->
            <!--                            &lt;!&ndash;最低编译器及版本号&ndash;&gt;-->
            <!--                            <MinSdkVersion>JDK ${maven.compiler.source}</MinSdkVersion>-->
            <!--                            &lt;!&ndash;版权&ndash;&gt;-->
            <!--                            <groupId>${project.groupId}</groupId>-->
            <!--                            &lt;!&ndash;有效的/核心包名&ndash;&gt;-->
            <!--                            <ApplicationId>${project.groupId}.cloudjdbc</ApplicationId>-->
            <!--                            &lt;!&ndash;版本名称&ndash;&gt;-->
            <!--                            <Version-Name>${project.artifactId}-${project.version}</Version-Name>-->
            <!--                            &lt;!&ndash;JDBC驱动介绍信息&ndash;&gt;-->
            <!--                            &lt;!&ndash;<Info-URL>https://gitee.com/XuguDB/xugu-jdbc</Info-URL>&ndash;&gt;-->
            <!--                            &lt;!&ndash;打包时间&ndash;&gt;-->
            <!--                            <Build-Time>${maven.build.timestamp}</Build-Time>-->
            <!--                        </manifestEntries>-->
            <!--                    </archive>-->
            <!--                </configuration>-->
            <!--            </plugin>-->
            <plugin>
                <!-- maven执行测试用例插件 -->
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.12.4</version>
                <configuration>
                    <!-- 不进行测试验证 -->
                    <skip>true</skip>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>8</source>
                    <target>8</target>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.sonatype.plugins</groupId>
                <artifactId>nexus-staging-maven-plugin</artifactId>
                <version>1.6.7</version>
                <extensions>true</extensions>
                <configuration>
                    <serverId>ossrh</serverId>
                    <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
                    <autoReleaseAfterClose>true</autoReleaseAfterClose>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <version>2.2.1</version>
                <executions>
                    <execution>
                        <id>attach-sources</id>
                        <goals>
                            <goal>jar-no-fork</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>2.9.1</version>
                <configuration>
                    <!-- jdk1.8要加上，1.7要去掉，否则会报错 -->
                    <additionalJOptions>
                        <additionalJOption>-Xdoclint:none</additionalJOption>
                    </additionalJOptions>
                </configuration>
                <executions>
                    <execution>
                        <id>attach-javadocs</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-gpg-plugin</artifactId>
                <version>1.5</version>
                <executions>
                    <execution>
                        <id>sign-artifacts</id>
                        <phase>verify</phase>
                        <goals>
                            <goal>sign</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>