-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpom.xml
178 lines (164 loc) · 5.13 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
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
174
175
176
177
<?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>de.papke</groupId>
<artifactId>pwsafe-mobile</artifactId>
<version>1.0.8</version>
<name>PWSafe</name>
<packaging>war</packaging>
<properties>
<java.version>1.6</java.version>
<javax.inject.version>1</javax.inject.version>
<json-simple.version>1.1.1</json-simple.version>
<jstl.version>1.2</jstl.version>
<servlet-api.version>2.4</servlet-api.version>
<smiley-http-proxy-servlet.version>1.4</smiley-http-proxy-servlet.version>
<spring.version>3.2.8.RELEASE</spring.version>
<registry>docker.io</registry>
<tenant>chrisipa</tenant>
<opt.folder>/opt</opt.folder>
<catalina.home>${opt.folder}/tomcat</catalina.home>
<tomcat.webapps.folder>${catalina.home}/webapps</tomcat.webapps.folder>
<docker.data.folder>${opt.folder}/docker/${project.artifactId}</docker.data.folder>
<hsqldb.data.folder>/data</hsqldb.data.folder>
</properties>
<dependencies>
<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
<version>${javax.inject.version}</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>${servlet-api.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>${jstl.version}</version>
</dependency>
<dependency>
<groupId>org.mitre.dsmiley.httpproxy</groupId>
<artifactId>smiley-http-proxy-servlet</artifactId>
<version>${smiley-http-proxy-servlet.version}</version>
</dependency>
<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
<version>${json-simple.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${spring.version}</version>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<configuration>
<webAppConfig>
<contextPath>/${project.build.finalName}</contextPath>
</webAppConfig>
<systemProperties>
<systemProperty>
<name>jetty.port</name>
<value>7070</value>
</systemProperty>
<systemProperty>
<name>catalina.home</name>
<value>${project.build.directory}</value>
</systemProperty>
</systemProperties>
</configuration>
</plugin>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<verbose>true</verbose>
<registry>${registry}</registry>
<images>
<image>
<name>${registry}/${tenant}/${project.artifactId}</name>
<alias>${project.artifactId}</alias>
<build>
<tags>
<tag>${project.version}</tag>
</tags>
<from>${registry}/${tenant}/webpasswordsafe:1.4.1</from>
<optimise>true</optimise>
<assembly>
<basedir>/</basedir>
<inline>
<dependencySets>
<dependencySet>
<includes>
<include>${project.groupId}:${project.artifactId}:${project.packaging}</include>
</includes>
<outputDirectory>${tomcat.webapps.folder}/${project.artifactId}</outputDirectory>
<unpack>true</unpack>
</dependencySet>
</dependencySets>
<fileSets>
<fileSet>
<directory>${project.basedir}/src/main/resources/docker/ROOT</directory>
<outputDirectory>${tomcat.webapps.folder}/ROOT</outputDirectory>
<includes>
<include>**/*</include>
</includes>
</fileSet>
</fileSets>
</inline>
</assembly>
</build>
<run>
<namingStrategy>alias</namingStrategy>
<volumes>
<bind>
<volume>${docker.data.folder}:${hsqldb.data.folder}</volume>
</bind>
</volumes>
<ports>
<port>8080:8080</port>
<port>8443:8443</port>
</ports>
</run>
</image>
</images>
</configuration>
</plugin>
</plugins>
</build>
</project>