<?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">
	<parent>
		<groupId>net.mingsoft</groupId>
		<artifactId>ms-pom</artifactId>
		<version>2.0.0-SNAPSHOT</version>
	</parent>
	<modelVersion>4.0.0</modelVersion>
	<groupId>net.mingsoft</groupId>
	<artifactId>ms-mcms</artifactId>
	<version>5.2-SNAPSHOT</version>
	<name>ms-mcms</name>
	<!-- 打包jar包 -->
	<packaging>jar</packaging>
	<!-- 打包war包 -->
	<!-- <packaging>war</packaging> -->
	<properties>
		<java.version>1.8</java.version>
	<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>
	<repositories>
		<repository>
			<id>deploy</id>
			<name>ms</name>
			<url>http://192.168.0.8:5000/repository/maven-public/</url>
			<releases>
				<enabled>true</enabled>
			</releases>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
		</repository>
	</repositories>
	<dependencies>
		<dependency>
			<groupId>net.mingsoft</groupId>
			<artifactId>ms-mpeople</artifactId>
		</dependency>

		<dependency>
			<groupId>net.mingsoft</groupId>
			<artifactId>ms-ad</artifactId>
		</dependency>
<!--		<dependency>-->
<!--			<groupId>net.mingsoft</groupId>-->
<!--			<artifactId>ms-clean</artifactId>-->
<!--		</dependency>-->
		<dependency>
			<groupId>net.mingsoft</groupId>
			<artifactId>ms-mattention</artifactId>
		</dependency>
		<dependency>
			<groupId>net.mingsoft</groupId>
			<artifactId>ms-mcomment</artifactId>
		</dependency>
		<dependency>
			<groupId>net.mingsoft</groupId>
			<artifactId>ms-mpay</artifactId>
		</dependency>
		<dependency>
			<groupId>net.mingsoft</groupId>
			<artifactId>ms-msend</artifactId>
		</dependency>

<!--		<dependency>-->
<!--			<groupId>net.mingsoft</groupId>-->
<!--			<artifactId>ms-quartz</artifactId>-->
<!--		</dependency>-->
		<dependency>
			<groupId>net.mingsoft</groupId>
			<artifactId>ms-spider</artifactId>
		</dependency>
		<dependency>
			<groupId>net.mingsoft</groupId>
			<artifactId>ms-mweixin</artifactId>
		</dependency>

		<!-- 此部分是铭飞平台MStroe的客户端（MStore不在铭飞开源产品范围），如果不需要使用MStore可以删除掉 -->
		<dependency>
			<groupId>net.mingsoft</groupId>
			<artifactId>store-client</artifactId>
			<version>5.2-SNAPSHOT</version>
		</dependency>

	</dependencies>

	<build>
		<finalName>ms-mcms</finalName>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<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>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-source-plugin</artifactId>
				<version>2.2.1</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>**/config/</exclude>
						<exclude>**/MSApplication.java</exclude>
						<exclude>**/MSServletInitializer.java</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>2.9.1</version>
				<configuration>
					<charset>UTF-8</charset>
					<encoding>UTF-8</encoding>
					<docencoding>UTF-8</docencoding>
					<javadocExecutable>${java.home}/../bin/javadoc</javadocExecutable>
					<additionalparam>-Xdoclint:none</additionalparam>
				</configuration>
				<executions>
					<execution>
						<id>attach-javadocs</id>
						<goals>
							<goal>jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.1</version>
				<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>
				<dependencies>
					<dependency>
						<groupId>org.codehaus.plexus</groupId>
						<artifactId>plexus-compiler-eclipse</artifactId>
						<version>2.1</version>
					</dependency>
				</dependencies>
			</plugin>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-release-plugin</artifactId>
				<configuration>
					<arguments>-Dgpg.passphrase=${gpg.passphrase}</arguments>
                </configuration>
            </plugin>


            <!-- 打包war包使用 -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <configuration>
                    <warSourceExcludes>src/main/resources/**</warSourceExcludes>
                    <warName>mcms</warName>
                </configuration>
            </plugin>

        </plugins>
        <resources>
            <resource>

                <directory>src/main/webapp</directory>
				<excludes>
					<!--打包生产 -->
					 <exclude>static/</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>
		<defaultGoal>compile</defaultGoal>
	</build>
</project>