<?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-oil-parent</artifactId>
	<name>hw-cloud-oil-parent</name>
	<packaging>pom</packaging>


	<properties>
		<!-- Plugin的属性定义 -->
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<jdk.version>1.8</jdk.version>

		<!-- vortex -->
		<hw-cloud-oil-api.version>1.0.0</hw-cloud-oil-api.version>
		<hw-cloud-oil-sdk.version>1.0.0</hw-cloud-oil-sdk.version>
		<hw-cloud-oil-impl.version>1.0.0</hw-cloud-oil-impl.version>
		<hw-cloud-oil-ui.version>1.1.0</hw-cloud-oil-ui.version>
		<hw-cloud-tts-sdk.version>1.0.0</hw-cloud-tts-sdk.version>
		<hw-cloud-gps-manage.version>1.1.0</hw-cloud-gps-manage.version>
		<hw-cloud-gps-ui.version>1.1.0</hw-cloud-gps-ui.version>

		<spring-boot.version>1.5.6.RELEASE</spring-boot.version>
		<spring-cloud.version>Dalston.SR2</spring-cloud.version>
		<hw-cloud-tts-cloud-client-springboot.version>1.0.0</hw-cloud-tts-cloud-client-springboot.version>
	</properties>

	<!-- 预定义依赖项的version,scope与exclusions,子项目中只需定义groupId 和 artifactId 即可 -->
	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-dependencies</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>

			<!-- hw-begin -->
			<dependency>
				<groupId>com.vortex.cloud</groupId>
				<artifactId>hw-cloud-gps-manage</artifactId>
				<version>${hw-cloud-gps-manage.version}</version>
			</dependency>
			<dependency>
				<groupId>com.vortex.cloud</groupId>
				<artifactId>hw-cloud-gps-ui</artifactId>
				<version>${hw-cloud-gps-ui.version}</version>
			</dependency>
			<dependency>
				<groupId>com.vortex.cloud</groupId>
				<artifactId>hw-cloud-tts-cloud-client-springboot</artifactId>
				<version>${hw-cloud-tts-cloud-client-springboot.version}</version>
			</dependency>
			<dependency>
				<groupId>com.vortex.cloud</groupId>
				<artifactId>hw-cloud-tts-sdk</artifactId>
				<version>${hw-cloud-tts-sdk.version}</version>
			</dependency>
			<dependency>
				<groupId>com.vortex.cloud</groupId>
				<artifactId>hw-cloud-oil-api</artifactId>
				<version>${hw-cloud-oil-api.version}</version>
			</dependency>
			<dependency>
				<groupId>com.vortex.cloud</groupId>
				<artifactId>hw-cloud-oil-impl</artifactId>
				<version>${hw-cloud-oil-impl.version}</version>
			</dependency>
			<dependency>
				<groupId>com.vortex.cloud</groupId>
				<artifactId>hw-cloud-oil-sdk</artifactId>
				<version>${hw-cloud-oil-sdk.version}</version>
			</dependency>
			<dependency>
				<groupId>com.vortex.cloud</groupId>
				<artifactId>hw-cloud-oil-ui</artifactId>
				<version>${hw-cloud-oil-ui.version}</version>
			</dependency>
			<!-- 代码直接调用common-logging会被桥接到slf4j -->
			<dependency>
				<groupId>org.slf4j</groupId>
				<artifactId>jcl-over-slf4j</artifactId>
				<version>${slf4j.version}</version>
				<scope>runtime</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>