root / device / pom.xml @ 51

View | Annotate | Download

1
<!--
2
  ~ Copyright 2009 Andrey Khalzov, and individual contributors as indicated by the @author tag.
3
  ~
4
  ~ Licensed under the Apache License, Version 2.0 (the "License");
5
  ~ you may not use this file except in compliance with the License.
6
  ~ You may obtain a copy of the License at
7
  ~
8
  ~      http://www.apache.org/licenses/LICENSE-2.0
9
  ~
10
  ~ Unless required by applicable law or agreed to in writing,
11
  ~ software distributed under the License is distributed on an "AS IS" BASIS,
12
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
  ~ See the License for the specific language governing permissions and limitations under the License.
14
  -->
15
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
16
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
17
    <parent>
18
        <groupId>org.wannatrak</groupId>
19
        <artifactId>wannatrak</artifactId>
20
        <version>${projectVersion}</version>
21
    </parent>
22
23
    <modelVersion>4.0.0</modelVersion>
24
    <groupId>org.wannatrak</groupId>
25
    <artifactId>wannatrak-device</artifactId>
26
    <packaging>war</packaging>
27
28
    <name>Wannatrak mobile device front-end</name>
29
30
    <dependencies>
31
        <dependency>
32
            <groupId>org.wannatrak</groupId>
33
            <artifactId>wannatrak-middleware</artifactId>
34
            <scope>provided</scope>
35
            <version>${projectVersion}</version>
36
        </dependency>
37
38
        <dependency>
39
            <groupId>org.jboss.resteasy</groupId>
40
            <artifactId>resteasy-jaxrs</artifactId>
41
            <version>1.1.GA</version>
42
        </dependency>
43
44
        <dependency>
45
            <groupId>org.jboss.resteasy</groupId>
46
            <artifactId>resteasy-guice</artifactId>
47
            <version>1.1.GA</version>
48
            <!-- filter out unwanted jars -->
49
            <exclusions>
50
                <exclusion>
51
                    <groupId>tjws</groupId>
52
                    <artifactId>webserver</artifactId>
53
                </exclusion>
54
            </exclusions>
55
        </dependency>
56
57
        <dependency>
58
            <groupId>org.jboss.resteasy</groupId>
59
            <artifactId>resteasy-jackson-provider</artifactId>
60
            <version>1.1.GA</version>
61
        </dependency>
62
63
        <dependency>
64
            <groupId>javax.servlet</groupId>
65
            <artifactId>servlet-api</artifactId>
66
            <version>2.5</version>
67
            <scope>provided</scope>
68
        </dependency>
69
        <dependency>
70
            <groupId>log4j</groupId>
71
            <artifactId>log4j</artifactId>
72
            <version>1.2.14</version>
73
            <scope>provided</scope>
74
        </dependency>
75
        <dependency>
76
            <groupId>javax.mail</groupId>
77
            <artifactId>mail</artifactId>
78
            <version>1.4.1</version>
79
            <scope>provided</scope>
80
        </dependency>
81
        <dependency>
82
            <groupId>javax.persistence</groupId>
83
            <artifactId>persistence-api</artifactId>
84
            <version>1.0</version>
85
            <scope>provided</scope>
86
        </dependency>
87
        <dependency>
88
            <groupId>javax.ejb</groupId>
89
            <artifactId>ejb-api</artifactId>
90
            <version>3.0</version>
91
            <scope>provided</scope>
92
        </dependency>
93
        <dependency>
94
            <groupId>joda-time</groupId>
95
            <artifactId>joda-time</artifactId>
96
            <version>1.6</version>
97
            <scope>provided</scope>
98
        </dependency>
99
        <dependency>
100
            <groupId>javax.ws.rs</groupId>
101
            <artifactId>jsr311-api</artifactId>
102
            <version>1.1.1</version>
103
            <scope>provided</scope>
104
        </dependency>
105
106
        <dependency>
107
            <groupId>org.testng</groupId>
108
            <artifactId>testng</artifactId>
109
            <version>5.12.1</version>
110
            <scope>test</scope>
111
        </dependency>
112
113
        <dependency>
114
            <groupId>ch.qos.logback</groupId>
115
            <artifactId>logback-access</artifactId>
116
            <version>0.9.17</version>
117
            <scope>test</scope>
118
        </dependency>
119
120
        <dependency>
121
            <groupId>commons-httpclient</groupId>
122
            <artifactId>commons-httpclient</artifactId>
123
            <version>3.1</version>
124
            <scope>test</scope>
125
        </dependency>
126
    </dependencies>
127
128
    <profiles>
129
        <profile>
130
            <id>Deploy2JBoss</id>
131
            <build>
132
                <plugins>
133
                    <plugin>
134
                        <artifactId>maven-war-plugin</artifactId>
135
                        <executions>
136
                            <execution>
137
                                <id>Deploy war</id>
138
                                <phase>install</phase>
139
                                <goals>
140
                                    <goal>war</goal>
141
                                </goals>
142
                                <configuration>
143
                                    <outputDirectory>${jboss.config.path}/deploy</outputDirectory>
144
                                    <warName>wannatrak-device</warName>
145
                                </configuration>
146
                            </execution>
147
                        </executions>
148
                    </plugin>
149
                </plugins>
150
            </build>
151
        </profile>
152
    </profiles>
153
154
    <build>
155
        <plugins>
156
            <plugin>
157
                <groupId>org.apache.maven.plugins</groupId>
158
                <artifactId>maven-compiler-plugin</artifactId>
159
                <configuration>
160
                    <encoding>UTF-8</encoding>
161
                </configuration>
162
            </plugin>
163
            <plugin>
164
                <groupId>org.apache.maven.plugins</groupId>
165
                <artifactId>maven-war-plugin</artifactId>
166
                <configuration>
167
                    <packagingExcludes>wannatrak-middleware-${projectVersion}.jar</packagingExcludes>
168
                </configuration>
169
            </plugin>
170
            <plugin>
171
                <groupId>org.mortbay.jetty</groupId>
172
                <artifactId>maven-jetty-plugin</artifactId>
173
                <version>6.1.20</version>
174
                <dependencies>
175
                    <dependency>
176
                        <groupId>org.wannatrak</groupId>
177
                        <artifactId>wannatrak-middleware</artifactId>
178
                        <version>${projectVersion}</version>
179
                    </dependency>
180
                    <dependency>
181
                        <groupId>ch.qos.logback</groupId>
182
                        <artifactId>logback-access</artifactId>
183
                        <version>0.9.17</version>
184
                    </dependency>
185
                    <dependency>
186
                        <groupId>joda-time</groupId>
187
                        <artifactId>joda-time</artifactId>
188
                        <version>1.6</version>
189
                    </dependency>
190
                </dependencies>
191
                <configuration>
192
                    <!-- By default the artifactId is taken, override it with something simple -->
193
                    <contextPath>/</contextPath>
194
                    <scanIntervalSeconds>2</scanIntervalSeconds>
195
                    <stopKey>foo</stopKey>
196
                    <stopPort>9999</stopPort>
197
                    <connectors>
198
                        <connector
199
                                implementation="org.mortbay.jetty.nio.SelectChannelConnector">
200
                            <port>9095</port>
201
                            <maxIdleTime>60000</maxIdleTime>
202
                        </connector>
203
                    </connectors>
204
                    <useTestClasspath>true</useTestClasspath>
205
                    <webXml>${basedir}/src/test/webapp/WEB-INF/web.xml</webXml>
206
                    <requestLog implementation="ch.qos.logback.access.jetty.RequestLogImpl">
207
                        <fileName>${basedir}/src/test/resources/logback-config.xml</fileName>
208
                    </requestLog>
209
                </configuration>
210
                <executions>
211
                    <execution>
212
                        <id>start-jetty</id>
213
                        <phase>pre-integration-test</phase>
214
                        <goals>
215
                            <goal>run</goal>
216
                        </goals>
217
                        <configuration>
218
                            <scanIntervalSeconds>0</scanIntervalSeconds>
219
                            <daemon>true</daemon>
220
                        </configuration>
221
                    </execution>
222
                    <execution>
223
                        <id>stop-jetty</id>
224
                        <phase>post-integration-test</phase>
225
                        <goals>
226
                            <goal>stop</goal>
227
                        </goals>
228
                    </execution>
229
                </executions>
230
            </plugin>
231
            <plugin>
232
                <groupId>org.apache.maven.plugins</groupId>
233
                <artifactId>maven-surefire-plugin</artifactId>
234
                <configuration>
235
                    <skip>true</skip>
236
                </configuration>
237
                <executions>
238
                    <execution>
239
                        <id>surefire-it</id>
240
                        <phase>integration-test</phase>
241
                        <goals>
242
                            <goal>test</goal>
243
                        </goals>
244
                        <configuration>
245
                            <skip>false</skip>
246
                        </configuration>
247
                    </execution>
248
                </executions>
249
            </plugin>
250
        </plugins>
251
    </build>
252
</project>