root / device / pom.xml

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
100
        <dependency>
101
            <groupId>org.testng</groupId>
102
            <artifactId>testng</artifactId>
103
            <version>5.9</version>
104
            <scope>test</scope>
105
        </dependency>
106
107
        <dependency>
108
            <groupId>ch.qos.logback</groupId>
109
            <artifactId>logback-access</artifactId>
110
            <version>0.9.17</version>
111
            <scope>test</scope>
112
        </dependency>
113
    </dependencies>
114
115
    <profiles>
116
        <profile>
117
            <id>Deploy2JBoss</id>
118
            <build>
119
                <plugins>
120
                    <plugin>
121
                        <artifactId>maven-war-plugin</artifactId>
122
                        <executions>
123
                            <execution>
124
                                <id>Deploy war</id>
125
                                <phase>install</phase>
126
                                <goals>
127
                                    <goal>war</goal>
128
                                </goals>
129
                                <configuration>
130
                                    <outputDirectory>${jboss.config.path}/deploy</outputDirectory>
131
                                    <warName>wannatrak-device</warName>
132
                                </configuration>
133
                            </execution>
134
                        </executions>
135
                    </plugin>
136
                </plugins>
137
            </build>
138
        </profile>
139
    </profiles>
140
141
    <build>
142
        <plugins>
143
            <plugin>
144
                <groupId>org.apache.maven.plugins</groupId>
145
                <artifactId>maven-compiler-plugin</artifactId>
146
                <configuration>
147
                    <encoding>UTF-8</encoding>
148
                </configuration>
149
            </plugin>
150
            <plugin>
151
                <groupId>org.apache.maven.plugins</groupId>
152
                <artifactId>maven-war-plugin</artifactId>
153
                <configuration>
154
                    <packagingExcludes>wannatrak-middleware-${projectVersion}.jar</packagingExcludes>
155
                </configuration>
156
            </plugin>
157
            <plugin>
158
                <groupId>org.mortbay.jetty</groupId>
159
                <artifactId>maven-jetty-plugin</artifactId>
160
                <version>6.1.20</version>
161
                <dependencies>
162
                    <dependency>
163
                        <groupId>org.wannatrak</groupId>
164
                        <artifactId>wannatrak-middleware</artifactId>
165
                        <version>${projectVersion}</version>
166
                    </dependency>
167
                    <dependency>
168
                        <groupId>ch.qos.logback</groupId>
169
                        <artifactId>logback-access</artifactId>
170
                        <version>0.9.17</version>
171
                    </dependency>
172
                    <dependency>
173
                        <groupId>joda-time</groupId>
174
                        <artifactId>joda-time</artifactId>
175
                        <version>1.6</version>
176
                    </dependency>
177
                </dependencies>
178
                <configuration>
179
                    <!-- By default the artifactId is taken, override it with something simple -->
180
                    <contextPath>/</contextPath>
181
                    <scanIntervalSeconds>2</scanIntervalSeconds>
182
                    <stopKey>foo</stopKey>
183
                    <stopPort>9999</stopPort>
184
                    <connectors>
185
                        <connector
186
                                implementation="org.mortbay.jetty.nio.SelectChannelConnector">
187
                            <port>9095</port>
188
                            <maxIdleTime>60000</maxIdleTime>
189
                        </connector>
190
                    </connectors>
191
                    <useTestClasspath>true</useTestClasspath>
192
                    <webXml>${basedir}/src/test/webapp/WEB-INF/web.xml</webXml>
193
                    <requestLog implementation="ch.qos.logback.access.jetty.RequestLogImpl">
194
                        <fileName>${basedir}/src/test/resources/logback-config.xml</fileName>
195
                    </requestLog>
196
                </configuration>
197
                <executions>
198
                    <execution>
199
                        <id>start-jetty</id>
200
                        <phase>pre-integration-test</phase>
201
                        <goals>
202
                            <goal>run</goal>
203
                        </goals>
204
                        <configuration>
205
                            <scanIntervalSeconds>0</scanIntervalSeconds>
206
                            <daemon>true</daemon>
207
                        </configuration>
208
                    </execution>
209
                    <execution>
210
                        <id>stop-jetty</id>
211
                        <phase>post-integration-test</phase>
212
                        <goals>
213
                            <goal>stop</goal>
214
                        </goals>
215
                    </execution>
216
                </executions>
217
            </plugin>
218
            <plugin>
219
                <groupId>org.apache.maven.plugins</groupId>
220
                <artifactId>maven-surefire-plugin</artifactId>
221
                <configuration>
222
                    <skip>true</skip>
223
                </configuration>
224
                <executions>
225
                    <execution>
226
                        <id>surefire-it</id>
227
                        <phase>integration-test</phase>
228
                        <goals>
229
                            <goal>test</goal>
230
                        </goals>
231
                        <configuration>
232
                            <skip>false</skip>
233
                        </configuration>
234
                    </execution>
235
                </executions>
236
            </plugin>
237
        </plugins>
238
    </build>
239
</project>