<?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>com.vortex.cloud</groupId>
		<artifactId>hw-cloud-parent</artifactId>
		<version>1.0.0</version>
	</parent>

	<artifactId>hw-cloud-gds-parent</artifactId>
	<name>hw-cloud-gds-parent</name>
	<packaging>pom</packaging>


	<properties>
		<!-- Plugin的属性定义 -->
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<jdk.version>1.8</jdk.version>

		<!-- vortex -->
		<hw-cloud-gds-api.version>1.0.0</hw-cloud-gds-api.version>
		<hw-cloud-gds-lib.version>1.0.0</hw-cloud-gds-lib.version>
		<hw-cloud-gds-sdk.version>1.0.0</hw-cloud-gds-sdk.version>
		<hw-cloud-gds-impl.version>1.0.0</hw-cloud-gds-impl.version>
		<hw-cloud-vfs.version>1.0.0</hw-cloud-vfs.version>
<!-- 		<util-kafka.version>2.1.0-SNAPSHOT</util-kafka.version> -->
<!-- 		<kafka-clients.version>0.10.1.0</kafka-clients.version> -->
		<hw-core.version>3.0.6</hw-core.version>
		<hw-cloud-lbs-api.version>1.0.0</hw-cloud-lbs-api.version>
		<hw-cloud-lbs-sdk.version>1.0.0</hw-cloud-lbs-sdk.version>
		<spring-cloud.version>Dalston.SR2</spring-cloud.version>
		<spring-boot.version>1.5.6.RELEASE</spring-boot.version>
	</properties>

	<!-- 预定义依赖项的version,scope与exclusions,子项目中只需定义groupId 和 artifactId 即可 -->
	<dependencyManagement>
		<dependencies>
			<!-- hw-begin -->
			<dependency>
				<groupId>com.vortex.cloud</groupId>
				<artifactId>hw-cloud-lbs-api</artifactId>
				<version>${hw-cloud-lbs-api.version}</version>
			</dependency>
			<dependency>
				<groupId>com.vortex.cloud</groupId>
				<artifactId>hw-cloud-lbs-sdk</artifactId>
				<version>${hw-cloud-lbs-sdk.version}</version>
			</dependency>
			<dependency>
				<groupId>com.vortex</groupId>
				<artifactId>hw-core</artifactId>
				<version>${hw-core.version}</version>
			</dependency>
			<dependency>
				<groupId>com.vortex.cloud</groupId>
				<artifactId>hw-cloud-gds-api</artifactId>
				<version>${hw-cloud-gds-api.version}</version>
			</dependency>
			<dependency>
				<groupId>com.vortex.cloud</groupId>
				<artifactId>hw-cloud-gds-impl</artifactId>
				<version>${hw-cloud-gds-impl.version}</version>
			</dependency>
			<dependency>
				<groupId>com.vortex.cloud</groupId>
				<artifactId>hw-cloud-gds-sdk</artifactId>
				<version>${hw-cloud-gds-sdk.version}</version>
			</dependency>
			<dependency>
				<groupId>com.vortex.cloud</groupId>
				<artifactId>hw-cloud-gds-lib</artifactId>
				<version>${hw-cloud-gds-lib.version}</version>
			</dependency>
			<dependency>
				<groupId>com.vortex.cloud</groupId>
				<artifactId>hw-cloud-vfs-common</artifactId>
				<version>${hw-cloud-vfs.version}</version>
			</dependency>
			<dependency>
				<groupId>com.vortex.cloud</groupId>
				<artifactId>hw-cloud-vfs-common-utils</artifactId>
				<version>${hw-cloud-vfs.version}</version>
			</dependency>
<!-- 			<dependency> -->
<!-- 				<groupId>com.vortex</groupId> -->
<!-- 				<artifactId>util-kafka</artifactId> -->
<!-- 				<version>${util-kafka.version}</version> -->
<!-- 			</dependency> -->
<!-- 			<dependency> -->
<!-- 				<groupId>org.apache.kafka</groupId> -->
<!-- 				<artifactId>kafka-clients</artifactId> -->
<!-- 				<version>${kafka-clients.version}</version> -->
<!-- 			</dependency> -->
			<dependency>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-starter-parent</artifactId>
				<version>${spring-boot.version}</version>
				<type>pom</type>
				<scope>import</scope>
			</dependency>
			<dependency>
				<groupId>org.springframework.cloud</groupId>
				<artifactId>spring-cloud-dependencies</artifactId>
				<version>${spring-cloud.version}</version>
				<type>pom</type>
				<scope>import</scope>
			</dependency>
			
		</dependencies>
	</dependencyManagement>

	<build>
		<plugins>
			<!-- eclipse plugin -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-eclipse-plugin</artifactId>
			</plugin>

			<!-- source attach plugin -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-source-plugin</artifactId>
				<executions>
					<execution>
						<id>attach-sources</id>
						<goals>
							<goal>jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>

			<!-- enforcer, 规则统一定义在parent -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-enforcer-plugin</artifactId>
			</plugin>
		</plugins>
	</build>
</project>