<?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.vantfo.framework</groupId>
  <artifactId>parent</artifactId>
  <packaging>pom</packaging>
  <version>1.1.0</version>
  <modules>
    <module>core</module>
    <module>admin</module>
  </modules>

  <name>vantfo-framework</name>
  <url>http://www.vantfo.com</url>
  <description>钒特公司开发框架</description>
  <licenses>
    <license>
      <name>The Apache Software License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
    </license>
  </licenses>
  <developers>
    <developer>
      <name>liuyang</name>
      <email>liuyang@vantfo.com</email>
      <timezone>+8</timezone>
    </developer>
  </developers>
  <scm>
    <connection>scm:git:git://github.com/xjyh/vantfo-framework.git</connection>
    <developerConnection>scm:git:ssh://github.com/xjyh/vantfo-framework.git</developerConnection>
    <url>http://github.com/xjyh/vantfo-framework</url>
  </scm>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    <maven.compiler.source>1.8</maven.compiler.source>
    <maven.compiler.target>1.8</maven.compiler.target>
    <spring-boot.version>2.3.9.RELEASE</spring-boot.version>
    <spring-cloud.version>Hoxton.SR10</spring-cloud.version>
  </properties>

  <!--部署构件至远程仓库-->
  <distributionManagement>
<!--    &lt;!&ndash;正式仓库&ndash;&gt;-->
<!--    <repository>-->
<!--      <id>releases</id>-->
<!--      <name>Nexus Release Repository</name>-->
<!--      <url>http://192.168.0.200:8888/repository/maven-releases/</url>-->
<!--    </repository>-->
<!--    &lt;!&ndash;快照仓库&ndash;&gt;-->
<!--    <snapshotRepository>-->
<!--      <id>snapshots</id>-->
<!--      <name>Nexus snapshot Repository</name>-->
<!--      <url>http://192.168.0.200:8888/repository/maven-snapshots/</url>-->
<!--    </snapshotRepository>-->
    <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>

  <dependencies>

  </dependencies>

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-dependencies</artifactId>
        <version>${spring-boot.version}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>

      <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-dependencies</artifactId>
        <version>${spring-cloud.version}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
      <dependency>
        <groupId>org.apache.logging.log4j</groupId>
        <artifactId>log4j-api</artifactId>
        <version>2.15.0</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
      <dependency>
        <groupId>org.apache.logging.log4j</groupId>
        <artifactId>log4j-to-slf4j</artifactId>
        <version>2.15.0</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <build>
    <plugins>
      <plugin>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-maven-plugin</artifactId>
        <version>${spring-boot.version}</version>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.10.1</version>
        <configuration>
          <source>1.8</source>
          <target>1.8</target>
        </configuration>
      </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>
            <configuration>
              <keyname>DDC061C7</keyname>
              <passphrase>Ftxx1234!@#$</passphrase>
            </configuration>
          </execution>
        </executions>
      </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>false</autoReleaseAfterClose>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-source-plugin</artifactId>
        <version>2.2.1</version>
        <configuration>
          <excludeResources>true</excludeResources>
          <excludes>
            <exclude>
              com/vantfo/framework/**
            </exclude>
          </excludes>
        </configuration>
        <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>3.4.0</version>
      <inherited>true</inherited>
      <executions>
        <execution>
          <id>attach-javadocs</id>
          <goals>
            <goal>jar</goal>
          </goals>
          <!-- JDK8必须使用下面的配置 -->
          <configuration>
            <encoding>UTF-8</encoding>
            <charset>UTF-8</charset>
          </configuration>
        </execution>
      </executions>
        <configuration>
<!--                  <show>public</show>-->
<!--                  <sourceFileExcludes>-->
<!--                    <sourceFileExclude>-->
<!--                      **/com/vantfo/framework/**/*.java-->
<!--                    </sourceFileExclude>-->
<!--                  </sourceFileExcludes>-->
          <sourcepath>${project.basedir}/src/main/java/com/vantfo/framework/core/ajax;${project.basedir}/src/main/java/com/vantfo/framework/system/base</sourcepath>
<!--          <excludePackageNames>com.vantfo.framework.core.ajax.*</excludePackageNames>-->
          <doclint>none</doclint>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
