<?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.websocket</groupId>
  <artifactId>shopweb-websocket</artifactId>
  <packaging>war</packaging>
  <name>shopweb-websocket</name>


  <dependencies>
	  	<dependency>
		  <groupId>com.ovopark.shopweb.common</groupId>
		  <artifactId>shopweb-common</artifactId>
	  	</dependency>
	  	<dependency>
		  <groupId>com.ovopark.shopweb.model</groupId>
		  <artifactId>shopweb-model</artifactId>
	  	</dependency>	  	
  	
		<dependency>
			<groupId>javax.servlet</groupId>
			<artifactId>jstl</artifactId>
		</dependency>
		<!-- json -->
		<dependency>
			<groupId>org.codehaus.jackson</groupId>
			<artifactId>jackson-mapper-asl</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>commons-io</groupId>
			<artifactId>commons-io</artifactId>
		</dependency>

		<dependency>
			<groupId>commons-fileupload</groupId>
			<artifactId>commons-fileupload</artifactId>
		</dependency>				
		 <dependency>
			<groupId>javax.servlet</groupId>
			<artifactId>javax.servlet-api</artifactId>
			<scope>provided</scope>
		</dependency>			
		<dependency>  
		    <groupId>org.springframework</groupId>  
		    <artifactId>spring-websocket</artifactId>  
		</dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-messaging</artifactId>
        </dependency>  	
		<dependency>
		    <groupId>commons-httpclient</groupId>
		    <artifactId>commons-httpclient</artifactId>
		    <version>3.1</version>
		</dependency>
		<dependency>
			<groupId>cn.hutool</groupId>
			<artifactId>hutool-all</artifactId>
			<version>5.4.2</version>
		</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>taiji</id>
	        <properties>
	            <package.environment>taiji</package.environment>
	        </properties>
		</profile>		
		<profile>
	        <id>inman</id>
	        <properties>
	            <package.environment>inman</package.environment>
	        </properties>
		</profile>			
		<profile>
	        <id>internal</id>
	        <properties>
	            <package.environment>internal</package.environment>
	        </properties>
		</profile>
		<profile>
			<id>runlian</id>
			<properties>
				<package.environment>runlian</package.environment>
			</properties>
		</profile>
		<profile>
			<id>greenland</id>
			<properties>
				<package.environment>greenland</package.environment>
			</properties>
		</profile>
		<profile>
			<id>yidong</id>
			<properties>
				<package.environment>yidong</package.environment>
			</properties>
		</profile>
		<profile>
			<id>jinhua</id>
			<properties>
				<package.environment>jinhua</package.environment>
			</properties>
		</profile>
		<profile>
			<id>aws</id>
			<properties>
				<package.environment>aws</package.environment>
			</properties>
		</profile>
	</profiles>  
  <build>
    <finalName>shopweb-websocket</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>
