pom.xml 3.5 KB
Newer Older
Y
Yiming Liu 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13
<?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/maven-v4_0_0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<groupId>com.ctrip.apollo</groupId>
	<artifactId>apollo</artifactId>
	<version>0.0.1</version>
	<name>Apollo</name>
	<packaging>pom</packaging>
	<modules>
		<module>apollo-core</module>
		<module>apollo-metaserver</module>
		<module>apollo-client</module>
Y
Yiming 已提交
14
		<module>apollo-configserver</module>
Y
Yiming Liu 已提交
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
		<module>apollo-portal</module>
		<module>apollo-assembly</module>
	</modules>
	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>com.ctrip.apollo</groupId>
				<artifactId>apollo-core</artifactId>
				<version>${project.version}</version>
			</dependency>
			<dependency>
				<groupId>com.dianping.cat</groupId>
				<artifactId>cat-client</artifactId>
				<version>1.4.4</version>
			</dependency>
			<!--third party -->
			<dependency>
32 33 34 35 36
				<groupId>org.springframework.cloud</groupId>
				<artifactId>spring-cloud-starter-parent</artifactId>
				<version>Angel.SR6</version>
				<type>pom</type>
				<scope>import</scope>
Y
Yiming Liu 已提交
37 38 39 40 41 42 43 44 45 46 47 48 49 50
			</dependency>
			<dependency>
				<groupId>mysql</groupId>
				<artifactId>mysql-connector-java</artifactId>
				<version>5.1.38</version>
			</dependency>
			<!--for test -->
			<dependency>
				<groupId>com.h2database</groupId>
				<artifactId>h2</artifactId>
				<version>1.4.191</version>
			</dependency>
		</dependencies>
	</dependencyManagement>
Y
Yiming 已提交
51 52 53 54 55 56 57 58 59
	<build>
		<plugins>
			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>${java.source}</source>
					<target>${java.target}</target>
				</configuration>
			</plugin>
Y
Yiming 已提交
60 61 62 63 64 65 66 67 68 69 70
			<plugin>
				<artifactId>maven-source-plugin</artifactId>
				<executions>
					<execution>
						<id>attach-sources</id>
						<goals>
							<goal>jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
Y
Yiming 已提交
71 72 73 74 75 76 77
			<plugin>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-maven-plugin</artifactId>
				<version>1.3.3.RELEASE</version>
			</plugin>
		</plugins>
	</build>
Y
Yiming Liu 已提交
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
	<profiles>
		<profile>
			<id>travis</id>
			<activation>
				<property>
					<name>env.TRAVIS</name>
					<value>true</value>
				</property>
			</activation>
			<build>
				<plugins>
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>cobertura-maven-plugin</artifactId>
						<version>2.7</version>
						<configuration>
							<format>xml</format>
							<maxmem>256m</maxmem>
							<aggregate>true</aggregate>
						</configuration>
					</plugin>
					<plugin>
						<groupId>org.eluder.coveralls</groupId>
						<artifactId>coveralls-maven-plugin</artifactId>
						<version>3.1.0</version>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>
Y
Yiming Liu 已提交
108 109 110 111 112 113 114 115 116 117
	<distributionManagement>
		<repository>
			<id>releases</id>
			<url>http://maven.dev.sh.ctripcorp.com:8081/nexus/content/repositories/fxrelease</url>
		</repository>
		<snapshotRepository>
			<id>snapshots</id>
			<url>http://maven.dev.sh.ctripcorp.com:8081/nexus/content/repositories/fxsnapshot</url>
		</snapshotRepository>
	</distributionManagement>
118 119 120 121 122 123 124 125 126 127
	<repositories>
		<repository>
			<id>spring-milestones</id>
			<name>Spring Milestones</name>
			<url>https://repo.spring.io/libs-milestone</url>
			<snapshots>
				<enabled>false</enabled>
			</snapshots>
		</repository>
	</repositories>
Y
Yiming Liu 已提交
128 129
	<properties>
		<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
130
		<java.version>1.8</java.version>
Y
Yiming Liu 已提交
131 132 133
	</properties>
</project>