<?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">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>cn.iisme</groupId>
		<artifactId>iisme-tools</artifactId>
		<version>1.0.0</version>
	</parent>
	<artifactId>iisme-eureka</artifactId>
	<packaging>jar</packaging>

	<dependencies>
		<dependency>
			<groupId>org.springframework.cloud</groupId>
			<artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
		</dependency>
	</dependencies>
	
	<profiles>
		<profile>
			<id>dev</id>
			<properties>
				<env>dev</env>
			</properties>
			<activation>
				<activeByDefault>true</activeByDefault>
			</activation>
		</profile>
		<profile>
			<id>test</id>
			<properties>
				<env>test</env>
			</properties>
		</profile>
		<profile>
			<id>test2</id>
			<properties>
				<env>test2</env>
			</properties>
		</profile>
		<profile>
			<id>prod</id>
			<properties>
				<env>prod</env>
			</properties>
		</profile>
	</profiles>
	
	<build>
		<finalName>/${env}/iisme-eureka-server</finalName>
		<filters>
			<filter>src/main/resources/filters/application-${env}.yml</filter>
		</filters>
		<resources>
			<resource>
				<directory>src/main/resources</directory>
				<filtering>true</filtering>
			</resource>
		</resources>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-war-plugin</artifactId>
				<version>3.0.0</version>
				<configuration>
					<failOnMissingWebXml>false</failOnMissingWebXml>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-maven-plugin</artifactId>
				<configuration>
					<mainClass>cn.iisme.eureka.EurekaApplication</mainClass>
					<layout>ZIP</layout>
					<!--去除在生产环境中不变的依赖 -->
					<excludeGroupIds>
						ch.qos.logback,
						com.101tec,
						com.alibaba,
						com.alibaba.boot,
						com.baomidou,
						com.belerweb,
						com.fasterxml,
						com.fasterxml.jackson.core,
						com.fasterxml.jackson.dataformat,
						com.fasterxml.jackson.datatype,
						com.fasterxml.jackson.module,
						com.fasterxml.woodstox,
						com.github.jsqlparser,
						com.github.pagehelper,
						com.google.guava,
						com.jayway.jsonpath,
						com.spring4all,
						com.thoughtworks.xstream,
						com.vaadin.external.google,
						com.zaxxer,
						commons-codec,
						commons-logging,
						dom4j,
						io.lettuce,
						io.netty,
						io.projectreactor,
						io.springfox,
						io.swagger,
						javax.annotation,
						javax.servlet,
						javax.validation,
						jline,
						junit,
						mysql,
						net.bytebuddy,
						net.minidev,
						org.apache,
						org.apache.common,
						org.apache.commons,
						org.apache.curator,
						org.apache.httpcomponents,
						org.apache.logging.log4j,
						org.apache.tomcat,
						org.apache.tomcat.embed,
						org.apache.zookeeper,
						org.aspectj,
						org.assertj,
						org.codehaus.woodstox,
						org.hamcrest,
						org.hibernate,
						org.hibernate.validator,
						org.javassist,
						org.jboss.logging,
						org.jboss.netty,
						org.mapstruct,
						org.mockito,
						org.mybatis,
						org.mybatis.spring.boot,
						org.objenesis,
						org.ow2.asm,
						org.reactivestreams,
						org.reflections,
						org.skyscreamer,
						org.slf4j,
						org.springframework,
						org.springframework.boot,
						org.springframework.cloud,
						org.springframework.data,
						org.springframework.plugin,
						org.xmlunit,
						org.yaml,
						xml-apis,
						xmlpull,
						xpp3,
						org.bouncycastle,
						org.freemarker,
						io.reactivex,
						org.glassfish.jaxb,
						com.sun.jersey,
						com.google.inject,
						joda-time,
						commons-collections
					</excludeGroupIds>
				</configuration>
				<executions>
					<execution>
						<goals>
							<goal>repackage</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-deploy-plugin</artifactId>
				<version>2.8.2</version>
				<configuration>
					<skip>true</skip>
				</configuration>
			</plugin>
		</plugins>
	</build>

</project>