1
+ <project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
2
+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd" >
3
+ <modelVersion >4.0.0</modelVersion >
4
+
5
+ <groupId >poterenko.com</groupId >
6
+ <artifactId >app.proxy</artifactId >
7
+ <packaging >war</packaging >
8
+ <version >1.0</version >
9
+ <name >An example of proxy-server</name >
10
+
11
+ <properties >
12
+ <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
13
+ <src .version>1.7</src .version>
14
+ <webapp .dir>${env.src.path} </webapp .dir>
15
+ <proxy .port>${env.proxy.port} </proxy .port>
16
+ <artifact .name>app-proxy</artifact .name>
17
+ <javax .servlet.api.version>3.0.1</javax .servlet.api.version>
18
+ <guice .version>3.0</guice .version>
19
+ <maven .compiler.plugin.version>3.3</maven .compiler.plugin.version>
20
+ <maven .jetty.plugin.version>6.1.26</maven .jetty.plugin.version>
21
+ <commons .io.version>1.3.2</commons .io.version>
22
+ <google .http.client.version>1.20.0</google .http.client.version>
23
+ <slf4j .api.version>1.6.2</slf4j .api.version>
24
+ <slf4j .simple.version>1.7.9</slf4j .simple.version>
25
+ </properties >
26
+
27
+ <dependencyManagement >
28
+ <dependencies >
29
+ <!-- Servlets-->
30
+ <dependency >
31
+ <groupId >javax.servlet</groupId >
32
+ <artifactId >javax.servlet-api</artifactId >
33
+ <version >${javax.servlet.api.version} </version >
34
+ </dependency >
35
+ <!-- Jetty-->
36
+ <dependency >
37
+ <groupId >org.mortbay.jetty</groupId >
38
+ <artifactId >maven-jetty-plugin</artifactId >
39
+ <version >${maven.jetty.plugin.version} </version >
40
+ <exclusions >
41
+ <exclusion >
42
+ <groupId >org.slf4j</groupId >
43
+ <artifactId >slf4j-api</artifactId >
44
+ </exclusion >
45
+ <exclusion >
46
+ <groupId >org.slf4j</groupId >
47
+ <artifactId >slf4j-nop</artifactId >
48
+ </exclusion >
49
+ <exclusion >
50
+ <groupId >org.slf4j</groupId >
51
+ <artifactId >slf4j-jdk14</artifactId >
52
+ </exclusion >
53
+ </exclusions >
54
+ </dependency >
55
+ <!-- Apache-->
56
+ <dependency >
57
+ <groupId >org.apache.maven.plugins</groupId >
58
+ <artifactId >maven-compiler-plugin</artifactId >
59
+ <version >${maven.compiler.plugin.version} </version >
60
+ <exclusions >
61
+ <exclusion >
62
+ <groupId >org.slf4j</groupId >
63
+ <artifactId >slf4j-api</artifactId >
64
+ </exclusion >
65
+ <exclusion >
66
+ <groupId >org.slf4j</groupId >
67
+ <artifactId >slf4j-nop</artifactId >
68
+ </exclusion >
69
+ <exclusion >
70
+ <groupId >org.slf4j</groupId >
71
+ <artifactId >slf4j-jdk14</artifactId >
72
+ </exclusion >
73
+ </exclusions >
74
+ </dependency >
75
+ <dependency >
76
+ <groupId >org.apache.commons</groupId >
77
+ <artifactId >commons-io</artifactId >
78
+ <version >${commons.io.version} </version >
79
+ </dependency >
80
+ <!-- Http-->
81
+ <dependency >
82
+ <groupId >com.google.http-client</groupId >
83
+ <artifactId >google-http-client</artifactId >
84
+ <version >${google.http.client.version} </version >
85
+ </dependency >
86
+ <!-- Log-->
87
+ <dependency >
88
+ <groupId >org.slf4j</groupId >
89
+ <artifactId >slf4j-api</artifactId >
90
+ <version >${slf4j.api.version} </version >
91
+ </dependency >
92
+ <dependency >
93
+ <groupId >org.slf4j</groupId >
94
+ <artifactId >slf4j-simple</artifactId >
95
+ <version >${slf4j.simple.version} </version >
96
+ </dependency >
97
+ <!-- IoC-->
98
+ <dependency >
99
+ <groupId >com.google.inject</groupId >
100
+ <artifactId >guice</artifactId >
101
+ <version >${guice.version} </version >
102
+ </dependency >
103
+ <dependency >
104
+ <groupId >com.google.inject.extensions</groupId >
105
+ <artifactId >guice-servlet</artifactId >
106
+ <version >${guice.version} </version >
107
+ </dependency >
108
+ </dependencies >
109
+ </dependencyManagement >
110
+
111
+ <dependencies >
112
+ <!-- Servlets-->
113
+ <dependency >
114
+ <groupId >javax.servlet</groupId >
115
+ <artifactId >javax.servlet-api</artifactId >
116
+ </dependency >
117
+ <!-- Jetty-->
118
+ <dependency >
119
+ <groupId >org.mortbay.jetty</groupId >
120
+ <artifactId >maven-jetty-plugin</artifactId >
121
+ </dependency >
122
+ <!-- Apache-->
123
+ <dependency >
124
+ <groupId >org.apache.maven.plugins</groupId >
125
+ <artifactId >maven-compiler-plugin</artifactId >
126
+ </dependency >
127
+ <dependency >
128
+ <groupId >org.apache.commons</groupId >
129
+ <artifactId >commons-io</artifactId >
130
+ </dependency >
131
+ <!-- Http-->
132
+ <dependency >
133
+ <groupId >com.google.http-client</groupId >
134
+ <artifactId >google-http-client</artifactId >
135
+ </dependency >
136
+ <!-- Log-->
137
+ <dependency >
138
+ <groupId >org.slf4j</groupId >
139
+ <artifactId >slf4j-api</artifactId >
140
+ </dependency >
141
+ <dependency >
142
+ <groupId >org.slf4j</groupId >
143
+ <artifactId >slf4j-simple</artifactId >
144
+ </dependency >
145
+ <!-- IoC-->
146
+ <dependency >
147
+ <groupId >com.google.inject</groupId >
148
+ <artifactId >guice</artifactId >
149
+ </dependency >
150
+ <dependency >
151
+ <groupId >com.google.inject.extensions</groupId >
152
+ <artifactId >guice-servlet</artifactId >
153
+ </dependency >
154
+ </dependencies >
155
+
156
+ <build >
157
+ <finalName >${artifact.name} </finalName >
158
+ <sourceDirectory >src/main/java</sourceDirectory >
159
+ <plugins >
160
+ <plugin >
161
+ <groupId >org.apache.maven.plugins</groupId >
162
+ <artifactId >maven-compiler-plugin</artifactId >
163
+ <version >${maven.compiler.plugin.version} </version >
164
+ <configuration >
165
+ <source >${src.version} </source >
166
+ <target >${src.version} </target >
167
+ </configuration >
168
+ </plugin >
169
+ <plugin >
170
+ <groupId >org.mortbay.jetty</groupId >
171
+ <artifactId >maven-jetty-plugin</artifactId >
172
+ <version >${maven.jetty.plugin.version} </version >
173
+ <configuration >
174
+ <webAppConfig >
175
+ <defaultsDescriptor >${basedir} /src/main/resources/webdefault.xml</defaultsDescriptor >
176
+ <contextPath >/</contextPath >
177
+ <baseResource implementation =" org.mortbay.resource.ResourceCollection" >
178
+ <resourcesAsCSV >${webapp.dir} </resourcesAsCSV >
179
+ </baseResource >
180
+ </webAppConfig >
181
+ <connectors >
182
+ <connector implementation =" org.mortbay.jetty.nio.SelectChannelConnector" >
183
+ <port >${proxy.port} </port >
184
+ </connector >
185
+ </connectors >
186
+ </configuration >
187
+ <executions >
188
+ <execution >
189
+ <id >install-jetty</id >
190
+ <phase >install</phase >
191
+ <goals >
192
+ <goal >run</goal >
193
+ </goals >
194
+ <configuration >
195
+ <daemon >false</daemon >
196
+ </configuration >
197
+ </execution >
198
+ </executions >
199
+ </plugin >
200
+ </plugins >
201
+ </build >
202
+ </project >
0 commit comments