<?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>tech.hdis</groupId>
    <artifactId>framework</artifactId>
    <packaging>pom</packaging>
    <version>1.2</version>

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>1.5.13.RELEASE</version>
    </parent>

    <modules>
        <module>framework-starter-data-jpa</module>
        <module>framework-starter-data-mongo</module>
        <module>framework-starter-security</module>
        <module>framework-starter-web</module>
        <module>framework-controller</module>
        <module>framework-data-mongo</module>
        <module>framework-dictionary</module>
        <module>framework-exception</module>
        <module>framework-data-jpa</module>
        <module>framework-log</module>
        <module>framework-log-aliyun</module>
        <module>framework-page</module>
        <module>framework-response</module>
        <module>framework-security</module>
        <module>framework-swagger</module>
        <module>framework-test</module>
        <module>framework-utils</module>
    </modules>

    <properties>
        <!--环境-->
        <project.builder.sourcesEncoding>UTF-8</project.builder.sourcesEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
        <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
        <maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
        <!--JAR版本-->
        <org.hibernate.hibernate-java8>5.0.12.Final</org.hibernate.hibernate-java8>
        <commons-lang.commons-lang>2.6</commons-lang.commons-lang>
        <com.google.protobuf.protobuf-java>2.5.0</com.google.protobuf.protobuf-java>
        <com.aliyun.openservices.aliyun-log-log4j2-appender>0.1.10</com.aliyun.openservices.aliyun-log-log4j2-appender>
        <com.alibaba.fastjson>1.2.49</com.alibaba.fastjson>
        <io.springfox.springfox-swagger2>2.8.0</io.springfox.springfox-swagger2>
        <io.springfox.springfox-swagger-ui>2.8.0</io.springfox.springfox-swagger-ui>
        <!--插件版本-->
        <org.codehaus.mojo.native2ascii-maven-plugin>1.0-beta-1</org.codehaus.mojo.native2ascii-maven-plugin>
        <org.apache.maven.plugins.maven-gpg-plugin>1.4</org.apache.maven.plugins.maven-gpg-plugin>
    </properties>

    <name>HDIS-Framework</name>
    <description>支撑Java项目的，基于SpringBoot、阿里云的一系列公共组件，规定的一系列架构约束。</description>
    <url>https://gitee.com/w6513017/HDIS-Framework</url>

    <licenses>
        <license>
            <name>Apache License Version 2.0</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0</url>
        </license>
    </licenses>

    <scm>
        <url>https://gitee.com/w6513017/HDIS-Framework.git</url>
        <connection>scm:git:https://gitee.com/w6513017/HDIS-Framework.git</connection>
        <developerConnection>scm:git:https://gitee.com/w6513017/HDIS-Framework.git</developerConnection>
        <tag>master</tag>
    </scm>

    <developers>
        <developer>
            <name>Nicholas.ZW.H</name>
            <email>w6513017@163.com</email>
        </developer>
    </developers>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>tech.hdis</groupId>
                <artifactId>framework-starter-data-jpa</artifactId>
                <version>1.2</version>
            </dependency>
            <dependency>
                <groupId>tech.hdis</groupId>
                <artifactId>framework-starter-data-mongo</artifactId>
                <version>1.2</version>
            </dependency>
            <dependency>
                <groupId>tech.hdis</groupId>
                <artifactId>framework-starter-security</artifactId>
                <version>1.2</version>
            </dependency>
            <dependency>
                <groupId>tech.hdis</groupId>
                <artifactId>framework-starter-web</artifactId>
                <version>1.2</version>
            </dependency>
            <dependency>
                <groupId>tech.hdis</groupId>
                <artifactId>framework-controller</artifactId>
                <version>1.2</version>
            </dependency>
            <dependency>
                <groupId>tech.hdis</groupId>
                <artifactId>framework-data-mongo</artifactId>
                <version>1.2</version>
            </dependency>
            <dependency>
                <groupId>tech.hdis</groupId>
                <artifactId>framework-dictionary</artifactId>
                <version>1.2</version>
            </dependency>
            <dependency>
                <groupId>tech.hdis</groupId>
                <artifactId>framework-exception</artifactId>
                <version>1.2</version>
            </dependency>
            <dependency>
                <groupId>tech.hdis</groupId>
                <artifactId>framework-data-jpa</artifactId>
                <version>1.2</version>
            </dependency>
            <dependency>
                <groupId>tech.hdis</groupId>
                <artifactId>framework-log</artifactId>
                <version>1.2</version>
            </dependency>
            <dependency>
                <groupId>tech.hdis</groupId>
                <artifactId>framework-log-aliyun</artifactId>
                <version>1.2</version>
            </dependency>
            <dependency>
                <groupId>tech.hdis</groupId>
                <artifactId>framework-page</artifactId>
                <version>1.2</version>
            </dependency>
            <dependency>
                <groupId>tech.hdis</groupId>
                <artifactId>framework-response</artifactId>
                <version>1.2</version>
            </dependency>
            <dependency>
                <groupId>tech.hdis</groupId>
                <artifactId>framework-security</artifactId>
                <version>1.2</version>
            </dependency>
            <dependency>
                <groupId>tech.hdis</groupId>
                <artifactId>framework-swagger</artifactId>
                <version>1.2</version>
            </dependency>
            <dependency>
                <groupId>tech.hdis</groupId>
                <artifactId>framework-test</artifactId>
                <version>1.2</version>
            </dependency>
            <dependency>
                <groupId>tech.hdis</groupId>
                <artifactId>framework-utils</artifactId>
                <version>1.2</version>
            </dependency>
            <dependency>
                <groupId>org.hibernate</groupId>
                <artifactId>hibernate-java8</artifactId>
                <version>${org.hibernate.hibernate-java8}</version>
            </dependency>
            <dependency>
                <groupId>commons-lang</groupId>
                <artifactId>commons-lang</artifactId>
                <version>${commons-lang.commons-lang}</version>
            </dependency>
            <dependency>
                <groupId>com.google.protobuf</groupId>
                <artifactId>protobuf-java</artifactId>
                <version>${com.google.protobuf.protobuf-java}</version>
            </dependency>
            <dependency>
                <groupId>com.aliyun.openservices</groupId>
                <artifactId>aliyun-log-log4j2-appender</artifactId>
                <version>${com.aliyun.openservices.aliyun-log-log4j2-appender}</version>
            </dependency>
            <dependency>
                <groupId>com.alibaba</groupId>
                <artifactId>fastjson</artifactId>
                <version>${com.alibaba.fastjson}</version>
            </dependency>
            <dependency>
                <groupId>io.springfox</groupId>
                <artifactId>springfox-swagger2</artifactId>
                <version>${io.springfox.springfox-swagger2}</version>
            </dependency>
            <dependency>
                <groupId>io.springfox</groupId>
                <artifactId>springfox-swagger-ui</artifactId>
                <version>${io.springfox.springfox-swagger-ui}</version>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-actuator</artifactId>
        </dependency>
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
        </dependency>
    </dependencies>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>native2ascii-maven-plugin</artifactId>
                    <version>${org.codehaus.mojo.native2ascii-maven-plugin}</version>
                    <configuration>
                        <encoding>UTF-8</encoding>
                    </configuration>
                    <executions>
                        <execution>
                            <id>native2ascii-utf8</id>
                            <phase>compile</phase>
                            <goals>
                                <goal>native2ascii</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>

    <distributionManagement>
        <repository>
            <id>releases</id>
            <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
        </repository>
    </distributionManagement>

    <profiles>
        <profile>
            <id>release</id>
            <properties>
                <gpg.executable>D:\Program Files (x86)\GNU\GnuPG\gpg.exe</gpg.executable>
            </properties>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>versions-maven-plugin</artifactId>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-source-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>attach-sources</id>
                                <goals>
                                    <goal>jar</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-javadoc-plugin</artifactId>
                        <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.4</version>
                        <executions>
                            <execution>
                                <id>sign-artifacts</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
</project>