|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
2
|
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
3
|
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
4
|
+ <modelVersion>4.0.0</modelVersion>
|
|
|
5
|
+
|
|
|
6
|
+ <groupId>com.unis.module</groupId>
|
|
|
7
|
+ <artifactId>eureka</artifactId>
|
|
|
8
|
+ <version>0.0.1-SNAPSHOT</version>
|
|
|
9
|
+ <packaging>jar</packaging>
|
|
|
10
|
+
|
|
|
11
|
+ <name>eureka</name>
|
|
|
12
|
+ <description>Demo project for Spring Boot</description>
|
|
|
13
|
+
|
|
|
14
|
+ <parent>
|
|
|
15
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
16
|
+ <artifactId>spring-boot-starter-parent</artifactId>
|
|
|
17
|
+ <version>2.0.3.RELEASE</version>
|
|
|
18
|
+ <relativePath/> <!-- lookup parent from repository -->
|
|
|
19
|
+ </parent>
|
|
|
20
|
+
|
|
|
21
|
+ <properties>
|
|
|
22
|
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
23
|
+ <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
|
24
|
+ <java.version>1.8</java.version>
|
|
|
25
|
+ <spring-cloud.version>Finchley.RELEASE</spring-cloud.version>
|
|
|
26
|
+ </properties>
|
|
|
27
|
+
|
|
|
28
|
+ <dependencies>
|
|
|
29
|
+ <dependency>
|
|
|
30
|
+ <groupId>org.springframework.cloud</groupId>
|
|
|
31
|
+ <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
|
|
|
32
|
+ </dependency>
|
|
|
33
|
+
|
|
|
34
|
+ <dependency>
|
|
|
35
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
36
|
+ <artifactId>spring-boot-starter-test</artifactId>
|
|
|
37
|
+ <scope>test</scope>
|
|
|
38
|
+ </dependency>
|
|
|
39
|
+ </dependencies>
|
|
|
40
|
+
|
|
|
41
|
+ <dependencyManagement>
|
|
|
42
|
+ <dependencies>
|
|
|
43
|
+ <dependency>
|
|
|
44
|
+ <groupId>org.springframework.cloud</groupId>
|
|
|
45
|
+ <artifactId>spring-cloud-dependencies</artifactId>
|
|
|
46
|
+ <version>${spring-cloud.version}</version>
|
|
|
47
|
+ <type>pom</type>
|
|
|
48
|
+ <scope>import</scope>
|
|
|
49
|
+ </dependency>
|
|
|
50
|
+ </dependencies>
|
|
|
51
|
+ </dependencyManagement>
|
|
|
52
|
+
|
|
|
53
|
+ <build>
|
|
|
54
|
+ <plugins>
|
|
|
55
|
+ <plugin>
|
|
|
56
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
57
|
+ <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
58
|
+ <!--第一次打包时需要注释到 configuration 节点,因为我们要得到全部的jar包-->
|
|
|
59
|
+ <!--<configuration>
|
|
|
60
|
+ <layout>ZIP</layout>
|
|
|
61
|
+ <includes>
|
|
|
62
|
+ <include>
|
|
|
63
|
+ <groupId>com.unis.module</groupId>
|
|
|
64
|
+ <artifactId>eureka</artifactId>
|
|
|
65
|
+ </include>
|
|
|
66
|
+ </includes>
|
|
|
67
|
+ </configuration>-->
|
|
|
68
|
+ </plugin>
|
|
|
69
|
+ <!--打包时不进行验证测试-->
|
|
|
70
|
+ <plugin>
|
|
|
71
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
72
|
+ <artifactId>maven-surefire-plugin</artifactId>
|
|
|
73
|
+ <version>2.21.0</version>
|
|
|
74
|
+ <configuration>
|
|
|
75
|
+ <skipTests>true</skipTests>
|
|
|
76
|
+ </configuration>
|
|
|
77
|
+ </plugin>
|
|
|
78
|
+ </plugins>
|
|
|
79
|
+ <finalName>eureka</finalName>
|
|
|
80
|
+ </build>
|
|
|
81
|
+</project>
|