-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathpom.xml
100 lines (94 loc) · 3.17 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
<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/maven-v4_0_0.xsd'>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.spring.cloud.samples.brewery</groupId>
<artifactId>brewery-parent</artifactId>
<version>1.0</version>
</parent>
<groupId>io.spring.cloud.samples.brewery</groupId>
<artifactId>zipkin-server</artifactId>
<version>1.0-SNAPSHOT</version>
<build>
<plugins>
<!-- As the jars are built by gradle we tend to avoid rebuild again which will mess with spring-boot jar-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<id>default-jar</id>
<phase>dont-bind</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>1.5.3.RELEASE</version>
</plugin>
<!-- Task to collate the gradle build artifacts and use them in fabric8 maven plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<id>prepare-for-fmp</id>
<phase>clean</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<mkdir dir="${project.build.directory}/classes"/>
<copy todir="${project.build.directory}/classes">
<fileset dir="${basedir}/build/classes/main"/>
</copy>
<copy todir="${project.build.directory}/classes">
<fileset dir="${basedir}/build/resources"/>
</copy>
<copy todir="${project.build.directory}"
file="${basedir}/build/libs/${project.artifactId}-${project.version}.jar"/>
</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>fabric8-maven-plugin</artifactId>
<version>${fabric8.maven.plugin.version}</version>
<executions>
<execution>
<goals>
<goal>resource</goal>
<goal>build</goal>
</goals>
</execution>
</executions>
<configuration>
<generator>
<includes>
<include>spring-boot</include>
</includes>
<config>
<spring-boot>
<config>
<webPort>8080</webPort>
</config>
</spring-boot>
</config>
</generator>
</configuration>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/fabric8</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>
</project>