pom.xml 5.69 KB
Newer Older
1 2 3 4 5 6 7
<?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>org.springframework.cloud</groupId>
		<artifactId>spring-cloud-netflix</artifactId>
8
		<version>1.4.0.BUILD-SNAPSHOT</version>
9
		<relativePath>..</relativePath> <!-- lookup parent from repository -->
10
	</parent>
Phillip Webb committed
11 12
	<artifactId>spring-cloud-netflix-eureka-server</artifactId>
	<name>Spring Cloud Netflix Eureka Server</name>
Dave Syer committed
13
	<url>https://projects.spring.io/spring-cloud/</url>
14
	<properties>
15
		<main.basedir>${basedir}/..</main.basedir>
16
		<wro4j.version>1.7.9</wro4j.version>
17 18
	</properties>
	<dependencies>
Dave Syer committed
19 20 21 22 23
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-configuration-processor</artifactId>
			<optional>true</optional>
		</dependency>
24 25 26 27
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-web</artifactId>
		</dependency>
28 29 30 31
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-actuator</artifactId>
		</dependency>
32 33 34 35
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-freemarker</artifactId>
		</dependency>
Phillip Webb committed
36 37 38 39
		<dependency>
			<groupId>org.springframework.cloud</groupId>
			<artifactId>spring-cloud-commons</artifactId>
		</dependency>
40 41 42 43 44
		<dependency>
			<groupId>org.springframework.cloud</groupId>
			<artifactId>spring-cloud-context</artifactId>
			<optional>true</optional>
		</dependency>
45 46 47 48
		<dependency>
			<groupId>org.springframework.cloud</groupId>
			<artifactId>spring-cloud-netflix-core</artifactId>
		</dependency>
49 50 51 52
		<dependency>
			<groupId>org.springframework.cloud</groupId>
			<artifactId>spring-cloud-netflix-eureka-client</artifactId>
		</dependency>
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
		<dependency>
			<groupId>com.netflix.eureka</groupId>
			<artifactId>eureka-client</artifactId>
		</dependency>
		<dependency>
			<groupId>com.sun.jersey</groupId>
			<artifactId>jersey-servlet</artifactId>
		</dependency>
		<dependency>
			<groupId>com.sun.jersey</groupId>
			<artifactId>jersey-server</artifactId>
		</dependency>
		<dependency>
			<groupId>com.netflix.eureka</groupId>
			<artifactId>eureka-core</artifactId>
68 69 70 71 72 73 74 75 76 77
			<exclusions>
				<exclusion>
					<artifactId>blitz4j</artifactId>
					<groupId>com.netflix.blitz4j</groupId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>com.netflix.archaius</groupId>
			<artifactId>archaius-core</artifactId>
78
		</dependency>
79 80 81 82 83 84 85
		<!-- archaius dependencies that are now runtime -->
		<dependency>
			<groupId>commons-configuration</groupId>
			<artifactId>commons-configuration</artifactId>
			<optional>true</optional>
		</dependency>
		<!-- end archaius deps -->
86 87 88 89
		<dependency>
			<groupId>javax.inject</groupId>
			<artifactId>javax.inject</artifactId>
		</dependency>
90
		<!-- Eureka deps that are now optional in eureka -->
91 92 93 94
		<dependency>
			<groupId>com.fasterxml.jackson.dataformat</groupId>
			<artifactId>jackson-dataformat-xml</artifactId>
		</dependency>
95 96 97 98
		<dependency>
			<groupId>com.thoughtworks.xstream</groupId>
			<artifactId>xstream</artifactId>
		</dependency>
99 100 101 102
		<dependency>
			<groupId>org.projectlombok</groupId>
			<artifactId>lombok</artifactId>
			<!-- Only needed at compile time -->
103 104
			<scope>compile</scope>
			<optional>true</optional>
105
		</dependency>
106 107 108 109 110 111 112 113
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-test</artifactId>
			<scope>test</scope>
		</dependency>
	</dependencies>
	<build>
		<resources>
Dave Syer committed
114 115 116
			<resource>
				<directory>${project.basedir}/src/main/resources</directory>
			</resource>
117 118 119
			<resource>
				<directory>${project.build.directory}/generated-resources</directory>
			</resource>
120 121
		</resources>
		<plugins>
122 123 124 125
			<plugin>
				<artifactId>maven-resources-plugin</artifactId>
				<executions>
					<execution>
Phillip Webb committed
126 127
						<!-- Serves *only* to filter the wro.xml so it can get an absolute
							path for the project -->
128 129 130 131 132 133 134 135 136
						<id>copy-resources</id>
						<phase>validate</phase>
						<goals>
							<goal>copy-resources</goal>
						</goals>
						<configuration>
							<outputDirectory>${basedir}/target/wro</outputDirectory>
							<resources>
								<resource>
137
									<directory>src/main/wro</directory>
138 139 140 141 142 143 144
									<filtering>true</filtering>
								</resource>
							</resources>
						</configuration>
					</execution>
				</executions>
			</plugin>
145 146 147 148 149 150
			<plugin>
				<groupId>ro.isdc.wro4j</groupId>
				<artifactId>wro4j-maven-plugin</artifactId>
				<version>${wro4j.version}</version>
				<executions>
					<execution>
151
						<phase>generate-resources</phase>
152 153 154 155 156 157 158
						<goals>
							<goal>run</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<wroManagerFactory>ro.isdc.wro.maven.plugin.manager.factory.ConfigurableWroManagerFactory</wroManagerFactory>
159
					<cssDestinationFolder>${project.build.directory}/generated-resources/static/eureka/css</cssDestinationFolder>
160
					<jsDestinationFolder>${project.build.directory}/generated-resources/static/eureka/js</jsDestinationFolder>
161 162
					<wroFile>${project.build.directory}/wro/wro.xml</wroFile>
					<extraConfigFile>${basedir}/src/main/wro/wro.properties</extraConfigFile>
163
					<contextFolder>${basedir}/src/main/wro</contextFolder>
164
				</configuration>
165 166 167 168 169 170 171 172 173 174 175 176
				<dependencies>
					<dependency>
						<groupId>org.webjars</groupId>
						<artifactId>jquery</artifactId>
						<version>2.1.1</version>
					</dependency>
					<dependency>
						<groupId>org.webjars</groupId>
						<artifactId>bootstrap</artifactId>
						<version>3.2.0</version>
					</dependency>
				</dependencies>
177 178 179 180
			</plugin>
		</plugins>
	</build>
</project>