<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://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>net.mingsoft</groupId>
    <artifactId>ms-pom-release</artifactId>
    <version>3.0.0</version>
  </parent>
  <groupId>net.mingsoft</groupId>
  <artifactId>ms-basic</artifactId>
  <version>1.0.32</version>
  <name>ms-basic</name>
  <description>ms-basic tools Library</description>
  <url>https://github.com/ming-soft/ms-basic</url>
  <licenses>
    <license>
      <name>The MIT License (MIT)</name>
      <url>http://mit-license.org</url>
    </license>
  </licenses>
  <developers>
    <developer>
      <name>mingsoft develop group</name>
      <email>service@mingsoft.net</email>
      <organization>mingsoft</organization>
      <organizationUrl>http://www.mingsoft.net</organizationUrl>
    </developer>
  </developers>
  <distributionManagement>
    <repository>
      <id>sonatype-nexus-staging</id>
      <name>Sonatype Nexus release repository</name>
      <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
    </repository>
    <snapshotRepository>
      <id>sonatype-nexus-snapshots</id>
      <name>Sonatype Nexus snapshot repository</name>
      <url>https://oss.sonatype.org/content/repositories/snapshots</url>
    </snapshotRepository>
  </distributionManagement>
  <properties>
    <java.version>1.8</java.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>
  <dependencies>
    <dependency>
      <groupId>net.mingsoft</groupId>
      <artifactId>ms-base</artifactId>
    </dependency>
  </dependencies>
  <build>
    <defaultGoal>compile</defaultGoal>
    <resources>
      <resource>
        <directory>src/main/webapp</directory>
        <excludes>
          <exclude>/static/plugins/</exclude>
          <exclude>/static/skin/</exclude>
          <exclude>/static/css/</exclude>
          <exclude>/static/images/</exclude>
          <exclude>/static/locale/</exclude>
          <exclude>html/</exclude>
          <exclude>upload/</exclude>
          <exclude>template/</exclude>
        </excludes>
      </resource>
      <resource>
        <directory>src/main/resources</directory>
      </resource>
      <resource>
        <directory>src/main/java</directory>
        <excludes>
          <exclude>**/*.java</exclude>
        </excludes>
      </resource>
    </resources>
    <finalName>ms-basic</finalName>
    <plugins>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <version>3.1.2</version>
        <configuration>
          <excludes>
            <exclude>**/static/plugins/</exclude>
            <exclude>**/static/skin/</exclude>
            <exclude>**/*.yml</exclude>
            <exclude>**/Dockerfile</exclude>
            <exclude>**/ehcache.xml</exclude>
            <exclude>**/upgrade/</exclude>
            <exclude>**/MSApplication.*</exclude>
            <exclude>**/MSServletInitializer.*</exclude>
          </excludes>
        </configuration>
      </plugin>
      <plugin>
        <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>
        <configuration>
          <excludes>
            <exclude>**/static/plugins/</exclude>
            <exclude>**/static/skin/</exclude>
            <exclude>**/*.yml</exclude>
            <exclude>**/Dockerfile</exclude>
            <exclude>**/ehcache.xml</exclude>
            <exclude>**/upgrade/</exclude>
            <exclude>**/config/</exclude>
            <exclude>**/MSApplication.java</exclude>
            <exclude>**/MSServletInitializer.java</exclude>
          </excludes>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>2.9.1</version>
        <executions>
          <execution>
            <id>attach-javadocs</id>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <charset>UTF-8</charset>
          <encoding>UTF-8</encoding>
          <docencoding>UTF-8</docencoding>
          <javadocExecutable>${java.home}/../bin/javadoc</javadocExecutable>
          <additionalparam>-Xdoclint:none</additionalparam>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.1</version>
        <dependencies>
          <dependency>
            <groupId>org.codehaus.plexus</groupId>
            <artifactId>plexus-compiler-eclipse</artifactId>
            <version>2.1</version>
          </dependency>
        </dependencies>
        <configuration>
          <source>${java.version}</source>
          <target>${java.version}</target>
          <encoding>${project.build.sourceEncoding}</encoding>
          <showDeprecation>true</showDeprecation>
          <showWarnings>true</showWarnings>
          <compilerArguments>
            <verbose />
            <bootclasspath>${java.home}/lib/rt.jar${path.separator}${java.home}/lib/jce.jar</bootclasspath>
          </compilerArguments>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-release-plugin</artifactId>
        <configuration>
          <arguments>-Dgpg.passphrase=${gpg.passphrase}</arguments>
        </configuration>
      </plugin>
      <plugin>
        <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>
      <plugin>
        <groupId>org.sonatype.plugins</groupId>
        <artifactId>nexus-staging-maven-plugin</artifactId>
        <version>1.6.7</version>
        <extensions>true</extensions>
        <configuration>
          <serverId>sonatype-nexus-staging</serverId>
          <nexusUrl>https://oss.sonatype.org/</nexusUrl>
          <autoReleaseAfterClose>true</autoReleaseAfterClose>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
