forked from hotblac/spanners
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpom.xml
More file actions
173 lines (160 loc) · 5.17 KB
/
pom.xml
File metadata and controls
173 lines (160 loc) · 5.17 KB
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<?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/maven-v4_0_0.xsd">
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.4.0.RELEASE</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.dontpanic</groupId>
<artifactId>spanners</artifactId>
<name>Spanners demo applications</name>
<version>4.5-SNAPSHOT</version>
<packaging>pom</packaging>
<modules>
<module>spanners-api</module>
<module>spanners-mvc</module>
<module>spanners-database</module>
<module>spanners-users</module>
<module>disco</module>
</modules>
<properties>
<!-- Set docker.skip to true to disable Docker.
Useful to build apps on systems where Docker is not installed. -->
<docker.skip>false</docker.skip>
<docker.repository>docker.io</docker.repository>
<docker.image.prefix>hotblac</docker.image.prefix>
</properties>
<scm>
<connection>scm:git:https://github.com/hotblac/spanners.git</connection>
<developerConnection>scm:git:https://github.com/hotblac/spanners.git</developerConnection>
<tag>HEAD</tag>
</scm>
<distributionManagement>
<repository>
<id>disasterarea-ftp</id>
<url>ftp://user20247.vs.easily.co.uk/website/maven</url>
</repository>
</distributionManagement>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Brixton.SR5</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>2.4.1</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.scm</groupId>
<artifactId>maven-scm-api</artifactId>
<version>1.8.1</version>
</dependency>
<dependency>
<groupId>org.apache.maven.scm</groupId>
<artifactId>maven-scm-provider-gitexe</artifactId>
<version>1.8.1</version>
</dependency>
</dependencies>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.4.10</version>
<configuration>
<imageName>${docker.image.prefix}/${project.artifactId}</imageName>
<baseImage>java:openjdk-8-jdk-alpine</baseImage>
<entryPoint>["java","-Djava.security.egd=file:/dev/./urandom","-jar","/${project.build.finalName}.jar"]</entryPoint>
<serverId>docker-hub</serverId>
<skipDockerBuild>${docker.skip}</skipDockerBuild>
<resources>
<!-- copy the service's jar file from target into the root directory of the image -->
<resource>
<targetPath>/</targetPath>
<directory>${project.build.directory}</directory>
<include>${project.build.finalName}.jar</include>
</resource>
<!-- Copy contents of project's docker directory, if it exists.
Used to pull in docker build specific application.properties settings -->
<resource>
<targetPath>/</targetPath>
<directory>${project.basedir}/docker</directory>
<include>*</include>
</resource>
</resources>
</configuration>
<executions>
<execution>
<id>build-image</id>
<phase>package</phase>
<goals>
<goal>build</goal>
</goals>
</execution>
<execution>
<id>tag-image-version</id>
<phase>deploy</phase>
<goals>
<goal>tag</goal>
</goals>
<configuration>
<image>${docker.image.prefix}/${project.artifactId}</image>
<newName>${docker.repository}/${docker.image.prefix}/${project.artifactId}:${project.version}</newName>
<pushImage>true</pushImage>
</configuration>
</execution>
<execution>
<id>tag-image-latest</id>
<phase>deploy</phase>
<goals>
<goal>tag</goal>
</goals>
<configuration>
<image>${docker.image.prefix}/${project.artifactId}</image>
<newName>${docker.repository}/${docker.image.prefix}/${project.artifactId}:latest</newName>
<pushImage>true</pushImage>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
<extensions>
<!-- Enabling the use of FTP -->
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ftp</artifactId>
<version>2.9</version>
</extension>
</extensions>
</build>
<profiles>
<!-- Angular is managed by npm, not Maven so is skipped by default.
However, we can choose to trigger it from a maven build with
this profile. -->
<profile>
<id>rebuildAngular</id>
<activation>
<!-- Activate this profile on Travis CI builds -->
<property>
<name>env.TRAVIS</name>
<value>true</value>
</property>
</activation>
<modules>
<module>angular</module>
</modules>
</profile>
</profiles>
</project>