<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>com.tencent.tsf</groupId>
    <artifactId>femas-parent</artifactId>
    <version>2.0.1</version>
  </parent>
  <groupId>com.tencent.tsf</groupId>
  <artifactId>femas-agent</artifactId>
  <version>2.0.1</version>
  <packaging>pom</packaging>
  <name>${project.artifactId}</name>
  <description>The parent project of femas agent</description>
  <url>https://github.com/polarismesh/femas</url>
  <developers>
    <developer>
      <name>zilongTong</name>
      <email>flamingo.ge.895@gmail.com</email>
      <organization>Tencent</organization>
    </developer>
  </developers>
  <modules>
    <module>femas-agent-core</module>
    <module>femas-agent-starter</module>
    <module>femas-agent-tools</module>
    <module>femas-agent-plugin</module>
  </modules>
  <scm />
  <properties>
    <java.encoding>UTF-8</java.encoding>
    <java.source.version>1.8</java.source.version>
    <maven.jacoco.version>0.8.3</maven.jacoco.version>
    <maven.source.version>3.0.1</maven.source.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <maven.surefire.version>2.22.1</maven.surefire.version>
    <maven.compiler.version>3.8.0</maven.compiler.version>
    <maven.compiler.source>1.8</maven.compiler.source>
    <maven.pmd-plugin.version>3.8</maven.pmd-plugin.version>
    <maven.gpg.version>1.6</maven.gpg.version>
    <maven.deploy.version>2.8.2</maven.deploy.version>
    <maven.compiler.target>1.8</maven.compiler.target>
    <maven.javadoc.version>3.0.1</maven.javadoc.version>
    <java.target.version>1.8</java.target.version>
    <maven.jar.version>3.1.0</maven.jar.version>
  </properties>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <encoding>${project.build.sourceEncoding}</encoding>
          <source>${java.version}</source>
          <target>${java.version}</target>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>release</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.sonatype.plugins</groupId>
            <artifactId>nexus-staging-maven-plugin</artifactId>
            <version>1.6.3</version>
            <extensions>true</extensions>
            <configuration>
              <serverId>oss</serverId>
              <nexusUrl>https://oss.sonatype.org/</nexusUrl>
              <autoReleaseAfterClose>true</autoReleaseAfterClose>
            </configuration>
          </plugin>
          <plugin>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>1.6</version>
            <executions>
              <execution>
                <phase>verify</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <artifactId>maven-source-plugin</artifactId>
            <executions>
              <execution>
                <phase>package</phase>
                <goals>
                  <goal>jar-no-fork</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <artifactId>maven-javadoc-plugin</artifactId>
            <executions>
              <execution>
                <phase>package</phase>
                <goals>
                  <goal>jar</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
      <distributionManagement>
        <repository>
          <id>oss</id>
          <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
        </repository>
        <snapshotRepository>
          <id>oss</id>
          <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
        </snapshotRepository>
      </distributionManagement>
    </profile>
  </profiles>
</project>
