|
| 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.barrycommins</groupId> |
| 7 | + <artifactId>spring-boot-sleuth-splunk-demo</artifactId> |
| 8 | + <version>0.0.1-SNAPSHOT</version> |
| 9 | + <packaging>jar</packaging> |
| 10 | + |
| 11 | + <name>spring-boot-sleuth-splunk-demo</name> |
| 12 | + <description>Demo project for Spring Boot, Sleuth and Splunk</description> |
| 13 | + |
| 14 | + <parent> |
| 15 | + <groupId>org.springframework.boot</groupId> |
| 16 | + <artifactId>spring-boot-starter-parent</artifactId> |
| 17 | + <version>1.5.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>Dalston.SR1</spring-cloud.version> |
| 26 | + <docker.image.prefix>barrycommins</docker.image.prefix> |
| 27 | + <docker.plugin.version>0.4.13</docker.plugin.version> |
| 28 | + </properties> |
| 29 | + |
| 30 | + <dependencies> |
| 31 | + <dependency> |
| 32 | + <groupId>org.springframework.boot</groupId> |
| 33 | + <artifactId>spring-boot-starter-actuator</artifactId> |
| 34 | + </dependency> |
| 35 | + <dependency> |
| 36 | + <groupId>org.springframework.cloud</groupId> |
| 37 | + <artifactId>spring-cloud-starter-sleuth</artifactId> |
| 38 | + </dependency> |
| 39 | + <dependency> |
| 40 | + <groupId>org.springframework.boot</groupId> |
| 41 | + <artifactId>spring-boot-starter-web</artifactId> |
| 42 | + </dependency> |
| 43 | + |
| 44 | + <dependency> |
| 45 | + <groupId>org.springframework.boot</groupId> |
| 46 | + <artifactId>spring-boot-starter-logging</artifactId> |
| 47 | + </dependency> |
| 48 | + <dependency> |
| 49 | + <groupId>net.logstash.logback</groupId> |
| 50 | + <artifactId>logstash-logback-encoder</artifactId> |
| 51 | + <version>4.9</version> |
| 52 | + </dependency> |
| 53 | + |
| 54 | + <dependency> |
| 55 | + <groupId>org.springframework.boot</groupId> |
| 56 | + <artifactId>spring-boot-starter-test</artifactId> |
| 57 | + <scope>test</scope> |
| 58 | + </dependency> |
| 59 | + </dependencies> |
| 60 | + |
| 61 | + <dependencyManagement> |
| 62 | + <dependencies> |
| 63 | + <dependency> |
| 64 | + <groupId>org.springframework.cloud</groupId> |
| 65 | + <artifactId>spring-cloud-dependencies</artifactId> |
| 66 | + <version>${spring-cloud.version}</version> |
| 67 | + <type>pom</type> |
| 68 | + <scope>import</scope> |
| 69 | + </dependency> |
| 70 | + </dependencies> |
| 71 | + </dependencyManagement> |
| 72 | + |
| 73 | + <build> |
| 74 | + <plugins> |
| 75 | + <plugin> |
| 76 | + <groupId>org.springframework.boot</groupId> |
| 77 | + <artifactId>spring-boot-maven-plugin</artifactId> |
| 78 | + <executions> |
| 79 | + <execution> |
| 80 | + <goals> |
| 81 | + <goal>repackage</goal> |
| 82 | + <goal>build-info</goal> |
| 83 | + </goals> |
| 84 | + </execution> |
| 85 | + </executions> |
| 86 | + </plugin> |
| 87 | + <plugin> |
| 88 | + <groupId>com.spotify</groupId> |
| 89 | + <artifactId>docker-maven-plugin</artifactId> |
| 90 | + <version>${docker.plugin.version}</version> |
| 91 | + <executions> |
| 92 | + <execution> |
| 93 | + <phase>install</phase> |
| 94 | + <goals> |
| 95 | + <goal>build</goal> |
| 96 | + </goals> |
| 97 | + </execution> |
| 98 | + </executions> |
| 99 | + <configuration> |
| 100 | + <imageName>${docker.image.prefix}/${project.artifactId}</imageName> |
| 101 | + <baseImage>openjdk:8-alpine</baseImage> |
| 102 | + <!-- @formatter: off--> |
| 103 | + <entryPoint>["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "/${project.build.finalName}.jar"] |
| 104 | + </entryPoint> |
| 105 | + <!-- @formatter: on--> |
| 106 | + <resources> |
| 107 | + <resource> |
| 108 | + <targetPath>/</targetPath> |
| 109 | + <directory>${project.build.directory}</directory> |
| 110 | + <include>${project.build.finalName}.jar</include> |
| 111 | + </resource> |
| 112 | + </resources> |
| 113 | + </configuration> |
| 114 | + </plugin> |
| 115 | + </plugins> |
| 116 | + </build> |
| 117 | + |
| 118 | + |
| 119 | +</project> |
0 commit comments