This repository has been archived by the owner on May 28, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
/
pom.xml
142 lines (136 loc) · 6.37 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
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
<?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>
<groupId>am.ik.archetype</groupId>
<artifactId>spring-boot-docker-blank</artifactId>
<version>1.0.6-SNAPSHOT</version>
<packaging>jar</packaging>
<name>Spring Boot Docker Blank Project (from https://github.com/making/spring-boot-docker-blank)</name>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.2.3.RELEASE</version>
<relativePath/>
</parent>
<licenses><!-- DELETE THIS LINE -->
<license><!-- DELETE THIS LINE -->
<name>Apache License, Version 2.0</name><!-- DELETE THIS LINE -->
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url><!-- DELETE THIS LINE -->
<distribution>repo</distribution><!-- DELETE THIS LINE -->
</license><!-- DELETE THIS LINE -->
</licenses><!-- DELETE THIS LINE -->
<scm><!-- DELETE THIS LINE -->
<url>https://github.com/making/spring-boot-docker-blank</url><!-- DELETE THIS LINE -->
<connection>scm:git:[email protected]:making/spring-boot-docker-blank.git</connection><!-- DELETE THIS LINE -->
<developerConnection>scm:git:[email protected]:making/spring-boot-docker-blank.git</developerConnection><!-- DELETE THIS LINE -->
</scm><!-- DELETE THIS LINE -->
<url>https://github.com/making/spring-boot-docker-blank</url><!-- DELETE THIS LINE -->
<description>Docker Blank Project for Spring Boot</description><!-- DELETE THIS LINE -->
<developers><!-- DELETE THIS LINE -->
<developer><!-- DELETE THIS LINE -->
<id>making</id><!-- DELETE THIS LINE -->
<name>Toshiaki Maki</name><!-- DELETE THIS LINE -->
<email>[email protected]</email><!-- DELETE THIS LINE -->
<url>https://twitter.com/making</url><!-- DELETE THIS LINE -->
</developer><!-- DELETE THIS LINE -->
</developers><!-- DELETE THIS LINE -->
<distributionManagement><!-- DELETE THIS LINE -->
<snapshotRepository><!-- DELETE THIS LINE -->
<id>ossrh</id><!-- DELETE THIS LINE -->
<url>https://oss.sonatype.org/content/repositories/snapshots</url><!-- DELETE THIS LINE -->
</snapshotRepository><!-- DELETE THIS LINE -->
<repository><!-- DELETE THIS LINE -->
<id>ossrh</id><!-- DELETE THIS LINE -->
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url><!-- DELETE THIS LINE -->
</repository><!-- DELETE THIS LINE -->
</distributionManagement><!-- DELETE THIS LINE -->
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<start-class>xxxxxx.yyyyyy.zzzzzz.App</start-class>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<!-- Copy Dockerfile -->
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-resources</id>
<phase>validate</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target/</outputDirectory>
<resources>
<resource>
<directory>src/main/docker</directory>
<filtering>true</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.coderplus.maven.plugins</groupId>
<artifactId>copy-rename-maven-plugin</artifactId>
<version>1.0</version>
<executions>
<execution>
<id>rename-file</id>
<phase>validate</phase>
<goals>
<goal>rename</goal>
</goals>
<configuration>
<sourceFile>${basedir}/target/Dockerfile.txt</sourceFile>
<destinationFile>${basedir}/target/Dockerfile</destinationFile>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>zip-files</id>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<zip destfile="${basedir}/target/app.zip" basedir="${basedir}/target" includes="Dockerfile, Dockerrun.aws.json, ${project.artifactId}.jar" />
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>