<?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>com.ovopark.shopweb</groupId>
		<artifactId>ovopark-shopweb</artifactId>
		<version>1.0-SNAPSHOT</version>
	</parent>
	<groupId>com.ovopark.shopweb.server</groupId>
	<artifactId>shopweb-server</artifactId>
	<packaging>war</packaging>
	<name>shopweb-server</name>


	<dependencies>
		<!-- open -->
		<dependency>
			<groupId>com.ovopark.open</groupId>
			<artifactId>ovopark-open-sdk</artifactId>
		</dependency>
	

	
		<!-- api -->
		<dependency>
			<groupId>com.ovopark.shopweb.api</groupId>
			<artifactId>shopweb-api</artifactId>
		</dependency>

		<!-- face api -->
		<!--<dependency>
			<groupId>com.ovopark.shopweb.api.face</groupId>
			<artifactId>shopweb-api-face</artifactId>
		</dependency>-->

		<dependency>
		  <groupId>com.ovopark.shopweb.common</groupId>
		  <artifactId>shopweb-common</artifactId>
	  	</dependency>

	  	<dependency>
		  <groupId>com.ovopark.shopweb.mybatis</groupId>
		  <artifactId>shopweb-mybatis</artifactId>
	  	</dependency>

		<dependency>
			<groupId>com.google.guava</groupId>
			<artifactId>guava</artifactId>
			<version>17.0</version>
		</dependency>


		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-test</artifactId>
			<scope>test</scope>
		</dependency>
			  	  			
		<!-- mysql连接 -->
		<dependency>
			<groupId>mysql</groupId>
			<artifactId>mysql-connector-java</artifactId>
		</dependency>

		<!-- 数据源 -->
		<dependency>
			<groupId>com.alibaba</groupId>
			<artifactId>druid</artifactId>
		</dependency>

		<dependency>
			<groupId>org.aspectj</groupId>
			<artifactId>aspectjweaver</artifactId>
		</dependency>

		<dependency>
			<groupId>com.fasterxml.jackson.core</groupId>
			<artifactId>jackson-annotations</artifactId>
		</dependency>

		<dependency>
			<groupId>com.fasterxml.jackson.core</groupId>
			<artifactId>jackson-core</artifactId>
		</dependency>

		<dependency>
			<groupId>com.fasterxml.jackson.core</groupId>
			<artifactId>jackson-databind</artifactId>
		</dependency>


		<dependency>
			<groupId>com.github.fge</groupId>
			<artifactId>json-schema-validator</artifactId>
			<version>2.2.6</version>
		</dependency>


		<!-- 文件上传 -->
		<dependency>
			<groupId>commons-io</groupId>
			<artifactId>commons-io</artifactId>
		</dependency>

		<dependency>
			<groupId>commons-fileupload</groupId>
			<artifactId>commons-fileupload</artifactId>
		</dependency>

		<dependency>
			<groupId>com.caucho</groupId>
			<artifactId>hessian</artifactId>
		</dependency>
		 <dependency>
			<groupId>javax.servlet</groupId>
			<artifactId>javax.servlet-api</artifactId>
			<scope>provided</scope>
		</dependency>	
		<!-- kafka -->
		<!-- https://mvnrepository.com/artifact/org.apache.kafka/kafka -->
		<dependency>
			<groupId>org.apache.kafka</groupId>
			<artifactId>kafka_2.11</artifactId>
			<version>2.1.0</version>
		</dependency>
		<!-- https://mvnrepository.com/artifact/org.apache.kafka/kafka-clients -->
		<dependency>
			<groupId>org.apache.kafka</groupId>
			<artifactId>kafka-clients</artifactId>
			<version>2.1.0</version>
		</dependency>
		<!-- https://mvnrepository.com/artifact/org.springframework.kafka/spring-kafka -->
		<dependency>
			<groupId>org.springframework.kafka</groupId>
			<artifactId>spring-kafka</artifactId>
			<version>2.1.0.RELEASE</version>
		</dependency>
        <dependency>
            <groupId>com.github.pagehelper</groupId>
            <artifactId>pagehelper</artifactId>
            <version>5.1.6</version>
            <scope>compile</scope>
        </dependency>

    </dependencies>

	<profiles>
		<profile>
	        <id>test</id>
	        <properties>
	            <package.environment>test</package.environment>
	        </properties>
	        <activation>
	            <activeByDefault>true</activeByDefault>
	        </activation>	
		</profile>
		<profile>
	        <id>dev</id>
	        <properties>
	            <package.environment>dev</package.environment>
	        </properties>
		</profile>		
		<profile>
	        <id>formal</id>
	        <properties>
	            <package.environment>formal</package.environment>
	        </properties>
		</profile>
		<profile>
	        <id>internal</id>
	        <properties>
	            <package.environment>internal</package.environment>
	        </properties>
		</profile>		
		<profile>
	        <id>taiji</id>
	        <properties>
	            <package.environment>taiji</package.environment>
	        </properties>
		</profile>		
		<profile>
	        <id>yidong</id>
	        <properties>
	            <package.environment>yidong</package.environment>
	        </properties>
		</profile>				
		<profile>
	        <id>inman</id>
	        <properties>
	            <package.environment>inman</package.environment>
	        </properties>
		</profile>
		<profile>
	        <id>jiantou</id>
	        <properties>
	            <package.environment>jiantou</package.environment>
	        </properties>
		</profile>
		<profile>
			<id>runlian</id>
			<properties>
				<package.environment>runlian</package.environment>
			</properties>
		</profile>
		<profile>
	        <id>mingchuang</id>
	        <properties>
	            <package.environment>mingchuang</package.environment>
	        </properties>
		</profile>	
		<profile>
	        <id>mingchuang-test</id>
	        <properties>
	            <package.environment>mingchuang-test</package.environment>
	        </properties>
		</profile>	
	</profiles>
	
  <build>
   		<finalName>shopweb-server</finalName>    
		<plugins>
            <plugin>
                <!-- maven war plugin-->
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.2</version>
                <configuration>
                    <webXml>src\main\webapp\WEB-INF\web.xml</webXml>
                    <warSourceDirectory>webapp</warSourceDirectory>
                    <archive>
                        <addMavenDescriptor>false</addMavenDescriptor>
                    </archive>
                    <webResources>
                        <resource>
                            <directory>src/main/resources/profiles/${package.environment}</directory>
                            <targetPath>WEB-INF/classes</targetPath>
                            <filtering>true</filtering>
                        </resource>
                    </webResources>
                </configuration>
            </plugin>		
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.1</version>
				<configuration>
					<source>1.8</source>
					<target>1.8</target>
					<encoding>UTF-8</encoding>
					<!-- 在windows下面用;分隔，linux下面用:分隔。 -->
					<compilerArguments>
						<verbose />
						<bootclasspath>${java.home}/lib/rt.jar${path.separator}${java.home}/lib/jce.jar</bootclasspath>
					</compilerArguments>
					<skip>true</skip>
				</configuration>
			</plugin>
		</plugins>  
  </build>
</project>