<?xml version="1.0" encoding="UTF-8"?>
<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>
  <groupId>net.mingsoft</groupId>
  <artifactId>ms-basic</artifactId>
  <version>3.0.3</version>
  <name>ms-basic</name>
  <description>ms-basic</description>
  <url>https://github.com/mingsoft/ms-basic</url>
  <licenses>
    <license>
      <name>MS协议</name>
      <url>https://www.mingsoft.net</url>
      <distribution>repo</distribution>
    </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>
  <scm>
    <connection>scm:git:https://github.com/mingsoft/ms-basic.git</connection>
    <developerConnection>scm:git:https://github.com/mingsoft/ms-basic.git</developerConnection>
    <url>https://github.com/mingsoft/ms-basic</url>
  </scm>
  <properties>
    <java.version>17</java.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>
  <dependencies>
    <dependency>
      <groupId>net.mingsoft</groupId>
      <artifactId>ms-base</artifactId>
      <version>3.0.3</version>
    </dependency>
    <dependency>
      <groupId>javax.cache</groupId>
      <artifactId>cache-api</artifactId>
      <version>1.1.1</version>
    </dependency>
  </dependencies>
  <build>
    <defaultGoal>compile</defaultGoal>
    <resources>
      <resource>
        <directory>src/main/webapp</directory>
      </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>
        <configuration>
          <excludes>
            <exclude>**/static/plugins/</exclude>
            <exclude>**/static/skin/</exclude>
            <exclude>**/webapp/upload/</exclude>
            <exclude>**/webapp/template/</exclude>
            <exclude>**/*.yml</exclude>
            <exclude>**/Dockerfile</exclude>
            <exclude>**/ehcache.xml</exclude>
            <exclude>**/upgrade/</exclude>
            <exclude>**/MSApplication.*</exclude>
            <exclude>**/MSServletInitializer.*</exclude>
            <exclude>**/*AdapterImpl.*</exclude>
          </excludes>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-source-plugin</artifactId>
        <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>**/webapp/upload/</exclude>
            <exclude>**/webapp/template/</exclude>
            <exclude>**/*.yml</exclude>
            <exclude>**/Dockerfile</exclude>
            <exclude>**/ehcache.xml</exclude>
            <exclude>**/upgrade/</exclude>
            <exclude>**/MSApplication.java</exclude>
            <exclude>**/MSServletInitializer.java</exclude>
            <exclude>**/*AdapterImpl.java</exclude>
          </excludes>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
      </plugin>
      <plugin>
        <artifactId>maven-source-plugin</artifactId>
        <executions>
          <execution>
            <id>attach-sources</id>
            <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>
        <configuration>
          <doclint>none</doclint>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <compilerArgs>
            <arg>-parameters</arg>
          </compilerArgs>
          <source>${java.version}</source>
          <target>${java.version}</target>
          <encoding>${project.build.sourceEncoding}</encoding>
          <showDeprecation>true</showDeprecation>
          <showWarnings>true</showWarnings>
        </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.6</version>
        <executions>
          <execution>
            <id>sign-artifacts</id>
            <phase>verify</phase>
            <goals>
              <goal>sign</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.sonatype.central</groupId>
        <artifactId>central-publishing-maven-plugin</artifactId>
        <version>0.7.0</version>
        <extensions>true</extensions>
        <configuration>
          <publishingServerId>central</publishingServerId>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
