root / 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
    <modelVersion>4.0.0</modelVersion>
18
    <groupId>org.wannatrak</groupId>
19
    <artifactId>wannatrak</artifactId>
20
    <version>${projectVersion}</version>
21
    <url>http://www.wannatrak.org</url>
22
23
    <name>Wannatrak</name>
24
    <description>Open Source GPS Tracking System</description>
25
26
    <packaging>pom</packaging>
27
28
    <licenses>
29
        <license>
30
            <name>Apache License, Version 2.0</name>
31
            <url>http://www.apache.org/licenses/LICENSE-2.0</url>
32
            <distribution>repo</distribution>
33
        </license>
34
    </licenses>
35
36
    <distributionManagement>
37
        <repository>
38
            <id>internal</id>
39
            <url>http://archiva.wannatrak.org/repository/internal/</url>
40
        </repository>
41
        <snapshotRepository>
42
            <id>snapshots</id>
43
            <url>http://archiva.wannatrak.org/repository/snapshots/</url>
44
        </snapshotRepository>
45
    </distributionManagement>
46
47
    <developers>
48
        <developer>
49
            <id>halls</id>
50
            <name>Andrey Khalzov</name>
51
            <email>andrey.khalzov@wannatrak.org</email>
52
            <timezone>+4</timezone>
53
            <roles>
54
                <role>Lead</role>
55
                <role>Developer</role>
56
            </roles>
57
        </developer>
58
        <developer>
59
            <id>sergey</id>
60
            <name>Sergey Grachev</name>
61
            <email>sergey.grachev@wannatrak.org</email>
62
            <timezone>+4</timezone>
63
            <roles>
64
                <role>Developer</role>
65
            </roles>
66
        </developer>
67
        <developer>
68
            <id>anton</id>
69
            <name>Anton Sinyagovsky</name>
70
            <email>anton.sinyagovsky@wannatrak.org</email>
71
            <timezone>+4</timezone>
72
            <roles>
73
                <role>Developer</role>
74
            </roles>
75
        </developer>
76
    </developers>
77
78
    <inceptionYear>2009</inceptionYear>
79
80
    <issueManagement>
81
        <system>Redmine</system>
82
        <url>http://www.wannatrak.org/projects/wannatrak/issues/</url>
83
    </issueManagement>
84
85
    <scm>
86
        <url>http://www.wannatrak.org/repositories/show/wannatrak</url>
87
        <connection>scm:bazaar:http://bzr.wannatrak.org/main</connection>
88
        <developerConnection>scm:bazaar:sftp://username:password@wannatrak.org/~/wannatrak</developerConnection>
89
        <tag>HEAD</tag>
90
    </scm>
91
92
    <properties>
93
        <projectVersion>0.92-SNAPSHOT</projectVersion>
94
95
        <maven.compiler.source>1.6</maven.compiler.source>
96
        <maven.compiler.target>1.6</maven.compiler.target>
97
98
        <jbossConfig>default</jbossConfig>
99
        <jboss.config.path>${env.WT_JBOSS_HOME}/server/${jbossConfig}</jboss.config.path>
100
    </properties>
101
102
    <modules>
103
        <module>middleware</module>
104
        <module>device</module>
105
    </modules>
106
107
    <dependencyManagement>
108
        <dependencies>
109
            <dependency>
110
                <groupId>org.wannatrak</groupId>
111
                <artifactId>wannatrak-client</artifactId>
112
                <version>${project.version}</version>
113
            </dependency>
114
            <dependency>
115
                <groupId>org.wannatrak</groupId>
116
                <artifactId>wannatrak-device</artifactId>
117
                <version>${project.version}</version>
118
            </dependency>
119
            <dependency>
120
                <groupId>org.wannatrak</groupId>
121
                <artifactId>wannatrak-middleware</artifactId>
122
                <version>${project.version}</version>
123
            </dependency>
124
        </dependencies>
125
    </dependencyManagement>
126
127
    <repositories>
128
        <repository>
129
            <id>internal</id>
130
            <name>Wannatrak Internal Repository</name>
131
            <url>http://archiva.wannatrak.org/repository/internal/</url>
132
            <releases>
133
                <enabled>true</enabled>
134
            </releases>
135
            <snapshots>
136
                <enabled>false</enabled>
137
            </snapshots>
138
        </repository>
139
140
        <repository>
141
            <id>snapshots</id>
142
            <name>Wannatrak Snapshot Repository</name>
143
            <url>http://archiva.wannatrak.org/repository/snapshots/</url>
144
            <releases>
145
                <enabled>false</enabled>
146
            </releases>
147
            <snapshots>
148
                <enabled>true</enabled>
149
            </snapshots>
150
        </repository>
151
152
        <repository>
153
            <id>jboss</id>
154
            <name>JBoss repository</name>
155
            <url>http://repository.jboss.org/maven2</url>
156
        </repository>
157
        
158
        <repository>
159
            <id>ibiblio</id>
160
            <name>Ibiblio repository</name>
161
            <url>http://mirrors.ibiblio.org/pub/mirrors/maven2/</url>
162
        </repository>
163
    </repositories>
164
165
    <profiles>
166
        <profile>
167
            <id>WithClient</id>
168
            <activation>
169
                <activeByDefault>true</activeByDefault>
170
            </activation>
171
            <modules>
172
                <module>client</module>
173
            </modules>
174
        </profile>
175
        <profile>
176
            <id>WithClientAndJ2ME</id>
177
            <modules>
178
                <module>mobile</module>
179
                <module>client</module>
180
            </modules>
181
        </profile>
182
        <profile>
183
            <id>Deploy2JBoss</id>
184
        </profile>
185
        <profile>
186
            <id>UpdateJ2MEInClient</id>
187
        </profile>
188
        <profile>
189
            <id>InitDB</id>
190
            <modules>
191
                <module>config</module>
192
            </modules>
193
        </profile>
194
        <profile>
195
            <id>InitJBoss</id>
196
            <modules>
197
                <module>config</module>
198
            </modules>
199
        </profile>
200
        <profile>
201
            <id>LoadDemo</id>
202
            <modules>
203
                <module>config</module>
204
            </modules>
205
        </profile>
206
    </profiles>
207
208
    <build>
209
        <plugins>
210
            <plugin>
211
                <artifactId>maven-resources-plugin</artifactId>
212
                <executions>
213
                    <execution>
214
                        <id>copy-resources</id>
215
                        <phase>package</phase>
216
                        <goals>
217
                            <goal>copy-resources</goal>
218
                        </goals>
219
                        <configuration>
220
                            <outputDirectory>${basedir}/../out</outputDirectory>
221
                            <resources>
222
                                <resource>
223
                                    <directory>${basedir}/target</directory>
224
                                    <includes>
225
                                        <include>*.war</include>
226
                                        <include>*.jar</include>
227
                                    </includes>
228
                                </resource>
229
                            </resources>
230
                        </configuration>
231
                    </execution>
232
                </executions>
233
            </plugin>
234
        </plugins>
235
    </build>
236
</project>