This repository has been archived by the owner on Nov 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpom.xml
104 lines (95 loc) · 3.48 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
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
<?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>
<artifactId>de.metas.parent.general</artifactId>
<groupId>de.metas</groupId>
<version>[1,10.0.0]</version>
</parent>
<groupId>de.metas.admin</groupId>
<artifactId>metasfresh-admin</artifactId>
<!-- FRESH-271: we need an explicit version here, otherwise versions-maven-plugin can't set it to another version -->
<version>1.0.0</version>
<properties>
<spring-boot.version>1.5.3.RELEASE</spring-boot.version>
<spring-boot-admin.version>1.5.0</spring-boot-admin.version>
<start-class>de.metas.admin.SpringBootAdminApplication</start-class>
</properties>
<dependencyManagement>
<dependencies>
<!-- Import dependency management from Spring Boot -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring-boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-server</artifactId>
<version>${spring-boot-admin.version}</version>
</dependency>
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-server-ui</artifactId>
<version>${spring-boot-admin.version}</version>
</dependency>
<!-- logging -->
<!-- logstash-logback-encoder and janino are related to https://github.com/metasfresh/metasfresh/issues/1504 -->
<dependency>
<groupId>net.logstash.logback</groupId>
<artifactId>logstash-logback-encoder</artifactId>
<version>4.9</version>
</dependency>
<!-- we need janino for the conditional that we have in the logback config -->
<dependency>
<groupId>org.codehaus.janino</groupId>
<artifactId>janino</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring-boot.version}</version>
<executions>
<execution>
<id>spring-boot-admin-repackage</id>
<goals>
<goal>repackage</goal>
</goals>
<configuration>
<executable>true</executable>
<mainClass>${start-class}</mainClass>
</configuration>
</execution>
<execution>
<id>spring-boot-admin-build-info</id>
<goals>
<goal>build-info</goal> <!-- create build-info.properties; thanks to https://docs.spring.io/spring-boot/docs/current/reference/html/howto-build.html#howto-build-info -->
</goals>
<configuration>
<additionalProperties>
<jenkinsBuildNo>${env.BUILD_NUMBER}</jenkinsBuildNo>
<jenkinsBuildTag>${env.BUILD_TAG}</jenkinsBuildTag>
<jenkinsBuildUrl>${env.BUILD_URL}</jenkinsBuildUrl>
<jenkinsJobName>${env.JOB_NAME}</jenkinsJobName>
</additionalProperties>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<description>A standalone spring-boot service with spring-boot-admin. See https://github.com/codecentric/spring-boot-admin/blob/master/README.md for further infos</description>
</project>