pom.xml 8.43 KB
Newer Older
1 2
<?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"
Phillip Webb committed
3 4
	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>
5
	<artifactId>spring-cloud-netflix</artifactId>
buildmaster committed
6
	<version>2.0.0.BUILD-SNAPSHOT</version>
7 8 9
	<packaging>pom</packaging>
	<name>Spring Cloud Netflix</name>
	<description>Spring Cloud Netflix</description>
Phillip Webb committed
10 11 12
	<parent>
		<groupId>org.springframework.cloud</groupId>
		<artifactId>spring-cloud-build</artifactId>
buildmaster committed
13
		<version>2.0.0.BUILD-SNAPSHOT</version>
Phillip Webb committed
14 15
		<relativePath />
	</parent>
Dave Syer committed
16 17 18 19 20 21
	<scm>
		<url>https://github.com/spring-cloud/spring-cloud-netflix</url>
		<connection>scm:git:git://github.com/spring-cloud/spring-cloud-netflix.git</connection>
		<developerConnection>scm:git:ssh://git@github.com/spring-cloud/spring-cloud-netflix.git</developerConnection>
		<tag>HEAD</tag>
	</scm>
Phillip Webb committed
22
	<properties>
23
		<bintray.package>netflix</bintray.package>
24
		<main.basedir>${basedir}</main.basedir>
25
		<jackson.version>2.7.3</jackson.version>
buildmaster committed
26 27 28
		<spring-cloud-commons.version>2.0.0.BUILD-SNAPSHOT</spring-cloud-commons.version>
		<spring-cloud-config.version>2.0.0.BUILD-SNAPSHOT</spring-cloud-config.version>
		<spring-cloud-stream.version>Elmhurst.BUILD-SNAPSHOT</spring-cloud-stream.version>
Dave Syer committed
29
		<!-- Has to be a stable version (not one that depends on this version of netflix): -->
30
		<donotreplacespring-cloud-contract.version>1.2.0.RELEASE</donotreplacespring-cloud-contract.version>
31

32 33 34
		<!-- Plugin versions -->
		<maven-compiler-plugin.version>3.6.1</maven-compiler-plugin.version>
		<maven-eclipse-plugin.version>2.10</maven-eclipse-plugin.version>
35 36 37 38 39 40
		<!-- Sonar -->
		<surefire.plugin.version>2.19.1</surefire.plugin.version>
		<sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
		<sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
		<sonar.jacoco.reportPath>${project.basedir}/../target/jacoco.exec</sonar.jacoco.reportPath>
		<sonar.language>java</sonar.language>
Phillip Webb committed
41
	</properties>
42 43 44 45 46
	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-eclipse-plugin</artifactId>
47
				<version>${maven-eclipse-plugin.version}</version>
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
				<configuration>
					<useProjectReferences>false</useProjectReferences>
					<additionalConfig>
						<file>
							<name>.settings/org.eclipse.jdt.ui.prefs</name>
							<location>${main.basedir}/eclipse/org.eclipse.jdt.ui.prefs</location>
						</file>
						<file>
							<name>.settings/org.eclipse.jdt.core.prefs</name>
							<location>${main.basedir}/eclipse/org.eclipse.jdt.core.prefs</location>
						</file>
					</additionalConfig>
				</configuration>
			</plugin>
			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
64
				<version>${maven-compiler-plugin.version}</version>
65
				<configuration>
66 67
					<source>1.8</source>
					<target>1.8</target>
68 69 70 71
				</configuration>
			</plugin>
		</plugins>
	</build>
Phillip Webb committed
72 73
	<dependencyManagement>
		<dependencies>
Dave Syer committed
74 75 76 77 78 79
			<dependency>
				<groupId>org.springframework.cloud</groupId>
				<artifactId>spring-cloud-netflix-hystrix-contract</artifactId>
				<version>${project.version}</version>
				<scope>test</scope>
			</dependency>
Phillip Webb committed
80 81
			<dependency>
				<groupId>org.springframework.cloud</groupId>
82 83
				<artifactId>spring-cloud-netflix-dependencies</artifactId>
				<version>${project.version}</version>
84 85
				<type>pom</type>
				<scope>import</scope>
86
			</dependency>
87 88 89 90 91 92 93
			<dependency>
				<groupId>org.springframework.cloud</groupId>
				<artifactId>spring-cloud-commons-dependencies</artifactId>
				<version>${spring-cloud-commons.version}</version>
				<type>pom</type>
				<scope>import</scope>
			</dependency>
94 95
			<dependency>
				<groupId>org.springframework.cloud</groupId>
96
				<artifactId>spring-cloud-test-support</artifactId>
97 98 99
				<scope>test</scope>
				<version>${spring-cloud-commons.version}</version>
			</dependency>
100 101 102 103 104 105 106 107 108 109 110
			<dependency>
				<groupId>org.springframework.cloud</groupId>
				<artifactId>spring-cloud-config-dependencies</artifactId>
				<version>${spring-cloud-config.version}</version>
				<type>pom</type>
				<scope>import</scope>
			</dependency>
			<dependency>
				<groupId>org.springframework.cloud</groupId>
				<artifactId>spring-cloud-stream-dependencies</artifactId>
				<version>${spring-cloud-stream.version}</version>
111 112
				<type>pom</type>
				<scope>import</scope>
113
			</dependency>
Dave Syer committed
114 115 116
			<dependency>
				<groupId>org.springframework.cloud</groupId>
				<artifactId>spring-cloud-contract-dependencies</artifactId>
117
				<version>${donotreplacespring-cloud-contract.version}</version>
Dave Syer committed
118 119 120
				<type>pom</type>
				<scope>import</scope>
			</dependency>
121 122 123 124 125
			<dependency>
				<groupId>com.fasterxml.jackson.dataformat</groupId>
				<artifactId>jackson-dataformat-smile</artifactId>
				<version>${jackson.version}</version>
			</dependency>
Phillip Webb committed
126 127 128
		</dependencies>
	</dependencyManagement>
	<modules>
129
		<module>spring-cloud-netflix-dependencies</module>
130
		<module>spring-cloud-netflix-archaius</module>
131 132
		<!-- Not part of the reactor build: build and deploy separately -->
		<!--module>spring-cloud-netflix-hystrix-contract</module-->
Phillip Webb committed
133 134
		<module>spring-cloud-netflix-core</module>
		<module>spring-cloud-netflix-hystrix-dashboard</module>
135
		<module>spring-cloud-netflix-hystrix-stream</module>
136
		<module>spring-cloud-netflix-eureka-client</module>
Phillip Webb committed
137 138
		<module>spring-cloud-netflix-eureka-server</module>
		<module>spring-cloud-netflix-turbine</module>
139
		<module>spring-cloud-netflix-turbine-stream</module>
Phillip Webb committed
140
		<module>spring-cloud-netflix-sidecar</module>
141
		<module>spring-cloud-netflix-zuul</module>
142
		<module>spring-cloud-netflix-ribbon</module>
143
		<module>spring-cloud-starter-netflix</module>
Phillip Webb committed
144
		<module>docs</module>
145
    </modules>
Dave Syer committed
146 147 148 149 150 151 152
	<profiles>
		<profile>
			<id>spring</id>
			<repositories>
				<repository>
					<id>spring-snapshots</id>
					<name>Spring Snapshots</name>
Dave Syer committed
153
					<url>https://repo.spring.io/libs-snapshot-local</url>
Dave Syer committed
154 155 156
					<snapshots>
						<enabled>true</enabled>
					</snapshots>
157 158 159
					<releases>
						<enabled>false</enabled>
					</releases>
Dave Syer committed
160 161 162 163
				</repository>
				<repository>
					<id>spring-milestones</id>
					<name>Spring Milestones</name>
Dave Syer committed
164
					<url>https://repo.spring.io/libs-milestone-local</url>
Dave Syer committed
165 166 167 168 169 170 171
					<snapshots>
						<enabled>false</enabled>
					</snapshots>
				</repository>
				<repository>
					<id>spring-releases</id>
					<name>Spring Releases</name>
Dave Syer committed
172
					<url>https://repo.spring.io/release</url>
Dave Syer committed
173 174 175 176 177 178 179 180 181
					<snapshots>
						<enabled>false</enabled>
					</snapshots>
				</repository>
			</repositories>
			<pluginRepositories>
				<pluginRepository>
					<id>spring-snapshots</id>
					<name>Spring Snapshots</name>
Dave Syer committed
182
					<url>https://repo.spring.io/libs-snapshot-local</url>
Dave Syer committed
183 184 185
					<snapshots>
						<enabled>true</enabled>
					</snapshots>
186 187 188
					<releases>
						<enabled>false</enabled>
					</releases>
Dave Syer committed
189 190 191 192
				</pluginRepository>
				<pluginRepository>
					<id>spring-milestones</id>
					<name>Spring Milestones</name>
Dave Syer committed
193
					<url>https://repo.spring.io/libs-milestone-local</url>
Dave Syer committed
194 195 196 197
					<snapshots>
						<enabled>false</enabled>
					</snapshots>
				</pluginRepository>
198 199 200
				<pluginRepository>
					<id>spring-releases</id>
					<name>Spring Releases</name>
Dave Syer committed
201
					<url>https://repo.spring.io/libs-release-local</url>
202 203 204 205
					<snapshots>
						<enabled>false</enabled>
					</snapshots>
				</pluginRepository>
Dave Syer committed
206 207
			</pluginRepositories>
		</profile>
208 209 210 211 212 213 214 215 216
		<profile>
			<id>sonar</id>
			<build>
				<plugins>
					<plugin>
						<groupId>org.jacoco</groupId>
						<artifactId>jacoco-maven-plugin</artifactId>
						<executions>
							<execution>
217
								<id>pre-unit-test</id>
218 219 220
								<goals>
									<goal>prepare-agent</goal>
								</goals>
221 222 223 224 225 226 227 228 229 230 231 232 233 234 235
								<configuration>
									<propertyName>surefireArgLine</propertyName>
									<destFile>${project.build.directory}/jacoco.exec</destFile>
								</configuration>
							</execution>
							<execution>
								<id>post-unit-test</id>
								<phase>test</phase>
								<goals>
									<goal>report</goal>
								</goals>
								<configuration>
									<!-- Sets the path to the file which contains the execution data. -->
									<dataFile>${project.build.directory}/jacoco.exec</dataFile>
								</configuration>
236 237 238 239 240 241 242
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-surefire-plugin</artifactId>
						<configuration>
243 244
							<!-- Sets the VM argument line used when unit tests are run. -->
							<argLine>${surefireArgLine}</argLine>
245 246 247 248 249
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>
Dave Syer committed
250
	</profiles>
251
</project>