Statistics
| Revision:

svn-gvsig-desktop / branches / v2_0_0_prep / libraries / libFMap_mapcontext / pom.xml @ 37297

History | View | Annotate | Download (14.5 KB)

1
<?xml version="1.0" encoding="UTF-8"?>
2

    
3
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
5
                      http://maven.apache.org/maven-v4_0_0.xsd">
6
        <modelVersion>4.0.0</modelVersion>
7
        <groupId>org.gvsig</groupId>
8
        <artifactId>org.gvsig.fmap.mapcontext</artifactId>
9
        <packaging>jar</packaging>
10
        <version>2.0-SNAPSHOT</version>
11
        <name>libFMap_mapcontext</name>
12
        <url>http://gvsig.org</url>
13
        <parent>
14
                <groupId>org.gvsig</groupId>
15
                <artifactId>gvsig-base-library-pom</artifactId>
16
                <version>2.0-SNAPSHOT</version>
17
        </parent>        
18
        <distributionManagement>
19
                <site>
20
                        <id>gvsig-repository</id>
21
                        <url>${site-repository}/</url>
22
                </site>
23
        </distributionManagement>
24

    
25
        <dependencies>
26
                <dependency>
27
                        <groupId>org.gvsig</groupId>
28
                        <artifactId>org.gvsig.tools.lib</artifactId>
29
            <scope>compile</scope>
30
                </dependency>
31
                <dependency>
32
                        <groupId>org.gvsig</groupId>
33
                        <artifactId>org.gvsig.tools.lib</artifactId>
34
                        <type>test-jar</type>
35
                </dependency>
36
                <dependency>
37
                        <groupId>org.gvsig</groupId>
38
                        <artifactId>org.gvsig.compat</artifactId>
39
            <scope>compile</scope>
40
                </dependency>
41
                <dependency>
42
                        <groupId>org.gvsig</groupId>
43
                        <artifactId>org.gvsig.projection</artifactId>
44
            <scope>compile</scope>
45
                </dependency>
46
                <dependency>
47
                        <groupId>org.gvsig</groupId>
48
                        <artifactId>org.gvsig.fmap.geometry</artifactId>
49
            <scope>compile</scope>
50
                </dependency>
51
                <dependency>
52
                        <groupId>org.gvsig</groupId>
53
                        <artifactId>org.gvsig.fmap.geometry</artifactId>
54
                        <classifier>operation</classifier>
55
            <scope>compile</scope>
56
                </dependency>
57
                <dependency>
58
                        <groupId>org.gvsig</groupId>
59
                        <artifactId>org.gvsig.fmap.dal</artifactId>
60
            <scope>compile</scope>
61
                </dependency>
62
        <dependency>
63
            <groupId>org.gvsig</groupId>
64
            <artifactId>org.gvsig.metadata.lib.basic.api</artifactId>
65
            <scope>compile</scope>
66
        </dependency>
67
        <dependency>
68
            <groupId>org.gvsig</groupId>
69
            <artifactId>org.gvsig.timesupport.lib.api</artifactId>
70
            <scope>compile</scope>
71
        </dependency>
72
        <dependency>
73
            <groupId>org.slf4j</groupId>
74
            <artifactId>slf4j-api</artifactId>
75
            <scope>compile</scope>
76
        </dependency>
77
                <dependency>
78
                        <groupId>com.vividsolutions</groupId>
79
                        <artifactId>jts</artifactId>
80
            <scope>compile</scope>
81
                </dependency>
82
                <dependency>
83
                        <groupId>easymock</groupId>
84
                        <artifactId>easymock</artifactId>
85
                        <version>1.2_Java1.3</version>
86
                        <scope>test</scope>
87
                </dependency>
88
        <dependency>
89
            <groupId>javax.media</groupId>
90
            <artifactId>jai_core</artifactId>
91
            <scope>test</scope>
92
        </dependency>
93
        <dependency>
94
            <groupId>javax.media</groupId>
95
            <artifactId>jai_codec</artifactId>
96
            <scope>test</scope>
97
        </dependency>                
98
        </dependencies>
99
        <properties>
100
                <build-dir>${basedir}/../build</build-dir>
101
        <eclipse.project.name>libFMap_mapcontext</eclipse.project.name>
102
        </properties>
103
        <build>
104
                <sourceDirectory>src</sourceDirectory>
105
                <testSourceDirectory>src-test</testSourceDirectory>
106
                <resources>
107
                        <resource>
108
                                <directory>src</directory>
109
                                <includes>
110
                                        <include>**/*.gif</include>
111
                                        <include>**/*.png</include>
112
                                        <include>**/*.PNG</include>
113
                                        <include> **/*.bmp</include>
114
                                        <include> **/*.jpg</include>
115
                                        <include> **/*.jpeg</include>
116
                                </includes>
117
                        </resource>
118
                </resources>
119
                <testResources>
120
                        <testResource>
121
                                <directory>resources-test</directory>
122
                        </testResource>
123
                </testResources>
124
                <plugins>
125
                        <!-- TODO: MAKE TESTS WORK AND REMOVE THIS OPTION -->
126
                        <plugin>
127
                                <groupId>org.apache.maven.plugins</groupId>
128
                                <artifactId>maven-surefire-plugin</artifactId>
129
                                <configuration>
130
                                        <skipTests>true</skipTests>
131
                                </configuration>
132
                        </plugin>                
133
                </plugins>        
134
        </build>
135
        <profiles>
136
                <profile>
137
                        <id>se</id>
138
                        <activation>
139
                                <activeByDefault>true</activeByDefault>
140
                        </activation>
141
                        <dependencies>
142
                                <dependency>
143
                                        <groupId>org.gvsig</groupId>
144
                                        <artifactId>org.gvsig.tools.lib</artifactId>
145
                                        <type>test-jar</type>
146
                                        <scope>test</scope>
147
                                </dependency>
148

    
149
                                <dependency>
150
                                        <groupId>org.gvsig</groupId>
151
                                        <artifactId>org.gvsig.compat</artifactId>
152
                                        <version>2.0-SNAPSHOT</version>
153
                                        <classifier>se</classifier>
154
                                        <scope>test</scope>
155
                                </dependency>
156
                                <dependency>
157
                                        <groupId>org.gvsig</groupId>
158
                                        <artifactId>org.gvsig.projection</artifactId>
159
                                        <version>2.0-SNAPSHOT</version>
160
                                        <classifier>cresques-impl</classifier>
161
                                        <scope>test</scope>
162
                                </dependency>
163
                                <dependency>
164
                                        <groupId>org.gvsig</groupId>
165
                                        <artifactId>org.gvsig.fmap.geometry</artifactId>
166
                                        <version>2.0-SNAPSHOT</version>
167
                                        <classifier>impl</classifier>
168
                                        <scope>test</scope>
169
                                </dependency>
170
                                <dependency>
171
                                        <groupId>org.gvsig</groupId>
172
                                        <artifactId>org.gvsig.fmap.dal</artifactId>
173
                                        <version>2.0-SNAPSHOT</version>
174
                                        <classifier>spi</classifier>
175
                                        <scope>test</scope>
176
                                </dependency>
177
                                <dependency>
178
                                        <groupId>org.gvsig</groupId>
179
                                        <artifactId>org.gvsig.fmap.dal</artifactId>
180
                                        <version>2.0-SNAPSHOT</version>
181
                                        <classifier>impl</classifier>
182
                                        <scope>test</scope>
183
                                </dependency>
184
                                <dependency>
185
                                        <groupId>org.geotools</groupId>
186
                                        <artifactId>gt2-main</artifactId>
187
                                        <scope>test</scope>
188
                                </dependency>
189
                                <dependency>
190
                                        <groupId>org.geotools</groupId>
191
                                        <artifactId>gt2-legacy</artifactId>
192
                                </dependency>
193
                                <dependency>
194
                                        <groupId>org.opengis</groupId>
195
                                    <artifactId>geoapi</artifactId>
196
                                        <scope>test</scope>
197
                                </dependency>
198
                                                        
199
                        </dependencies>
200
                        <build>
201

    
202
                                <plugins>
203
                                        <plugin>
204
                                                <groupId>org.apache.maven.plugins</groupId>
205
                                                <artifactId>maven-compiler-plugin</artifactId>
206
                                                <configuration>
207
                                                        <source>1.4</source>
208
                                                        <target>1.4</target>
209
                                                        <!-- put your configurations here -->
210
                                                        <encoding>ISO-8859-1</encoding>
211
                                                </configuration>
212
                                        </plugin>
213
                                        <plugin>
214
                                                <groupId>org.apache.maven.plugins</groupId>
215
                                                <artifactId>maven-jar-plugin</artifactId>
216
                                                <!--
217
                                                        Generates a jar file only with the mapcontext API
218
                                                        TODO: make a good configuration of excludes and 
219
                                                        includes, when the api and implementation of
220
                                                        the mapcontext library would be performed. 
221
                                                -->
222
                                                <configuration>
223
                                                  <excludes>
224
                                                        <exclude>org/gvsig/fmap/geom/**</exclude>
225
                                                  </excludes>
226
                                                </configuration>                
227
                                                <executions>
228
                                                        <!--
229
                                                                Generates a jar file only with the mapcontext implementation
230
                                                        -->
231
                                                        <execution>
232
                                                                <id>impl</id>
233
                                                                <phase>package</phase>
234
                                                                <goals>
235
                                                                        <goal>jar</goal>
236
                                                                </goals>
237
                                                                <configuration>
238
                                                                        <classifier>impl</classifier>
239
                                                                        <excludes>
240
                                                                                <exclude>**/**</exclude>
241
                                                                        </excludes>
242
                                                                </configuration>
243
                                                        </execution>
244
                                                        <!--
245
                                                                Generates a jar file only with the mapcontext geometries operations
246
                                                        -->
247
                                                        <execution>
248
                                                                <id>operation</id>
249
                                                                <phase>package</phase>
250
                                                                <goals>
251
                                                                        <goal>jar</goal>
252
                                                                </goals>
253
                                                                <configuration>
254
                                                                        <classifier>operation</classifier>
255
                                                                        <excludes>
256
                                                                                <exclude>NONE</exclude>
257
                                                                        </excludes>
258
                                                                        <includes>
259
                                                                                <include>org/gvsig/fmap/geom/**</include>
260
                                                                        </includes>
261
                                                                </configuration>
262
                                                        </execution>
263
                                                        <execution>
264
                                                                <goals>
265
                                                                        <goal>test-jar</goal>
266
                                                                </goals>
267
                                                        </execution>
268
                                                </executions>
269
                                        </plugin>
270
                                        <plugin>
271
                                                <artifactId>maven-antrun-plugin</artifactId>
272
                                                <executions>
273
                                                        <execution>
274
                                                                <id>services</id>
275
                                                                <phase>package</phase>
276
                                                                <goals>
277
                                                                        <goal>run</goal>
278
                                                                </goals>
279
                                                                <configuration>
280
                                                                        <tasks>
281
                                                                                <jar destfile="${project.build.directory}/${project.build.finalName}.jar"
282
                                                                                        update="true">
283
                                                                                        <fileset dir="${basedir}/resources/api" />
284
                                                                                </jar>
285
                                                                                <jar destfile="${project.build.directory}/${project.build.finalName}-impl.jar"
286
                                                                                        update="true">
287
                                                                                        <fileset dir="${basedir}/resources/impl" />
288
                                                                                </jar>
289
                                                                                <jar destfile="${project.build.directory}/${project.build.finalName}-operation.jar"
290
                                                                                        update="true">
291
                                                                                        <fileset dir="${basedir}/resources/operation" />
292
                                                                                </jar>
293
                                                                        </tasks>
294
                                                                </configuration>
295
                                                        </execution>
296
                                                </executions>
297
                                        </plugin>
298
                                        <plugin>
299
                                                <groupId>org.apache.maven.plugins</groupId>
300
                                                <artifactId>maven-surefire-plugin</artifactId>
301
                                                <configuration>
302
                                                        <additionalClasspathElements>
303
                                                                <additionalClasspathElement>${basedir}/resources/api</additionalClasspathElement>
304
                                                                <additionalClasspathElement>${basedir}/resources/impl</additionalClasspathElement>
305
                                                                <additionalClasspathElement>${basedir}/resources/operation</additionalClasspathElement>
306
                                                        </additionalClasspathElements>
307
                                                </configuration>
308
                                        </plugin>
309
                                </plugins>
310
                        </build>
311

    
312
                </profile>
313
                <profile>
314
                        <id>cdc</id>
315
                        <activation>
316
                                <activeByDefault>false</activeByDefault>
317
                        </activation>
318
                        
319
                        <dependencies>
320
                                <dependency>
321
                                        <groupId>org.gvsig</groupId>
322
                                        <artifactId>org.gvsig.tools.lib</artifactId>
323
                                        <type>test-jar</type>
324
                                        <scope>test</scope>
325
                                </dependency>
326
                                <dependency>
327
                                  <groupId>org.gvsig.mobile</groupId>
328
                                  <artifactId>org.gvsig.mobile.compat</artifactId>
329
                                  <version>2.0-SNAPSHOT</version>
330
                                  <scope>test</scope>
331
                                </dependency>
332
                                <dependency>
333
                                        <groupId>org.gvsig.mobile</groupId>
334
                                        <artifactId>org.gvsig.mobile.libProjection</artifactId>
335
                                        <version>0.0.1-SNAPSHOT</version>
336
                                        <scope>test</scope>
337
                                </dependency>
338
                <dependency>
339
                                        <groupId>org.gvsig</groupId>
340
                                        <artifactId>org.gvsig.fmap.geometry</artifactId>
341
                                        <version>2.0-SNAPSHOT</version>
342
                                        <classifier>impl</classifier>
343
                                        <scope>test</scope>
344
                                </dependency>
345
                                <dependency>
346
                                        <groupId>org.gvsig</groupId>
347
                                        <artifactId>org.gvsig.fmap.dal</artifactId>
348
                                        <version>2.0-SNAPSHOT</version>
349
                                        <classifier>spi</classifier>
350
                                        <scope>test</scope>
351
                                </dependency>
352
                                <dependency>
353
                                        <groupId>org.gvsig</groupId>
354
                                        <artifactId>org.gvsig.fmap.dal</artifactId>
355
                                        <version>2.0-SNAPSHOT</version>
356
                                        <classifier>impl</classifier>
357
                                        <scope>test</scope>
358
                                </dependency>
359
                                
360
                        </dependencies>
361

    
362
                        <build>
363
                                <plugins>
364
                                        <plugin>
365
                                                <groupId>org.apache.maven.plugins</groupId>
366
                                                <artifactId>maven-compiler-plugin</artifactId>
367
                                                <configuration>
368
                                                        <source>1.4</source>
369
                                                        <target>1.4</target>
370
                                                        <!-- put your configurations here -->
371
                                                        <encoding>ISO-8859-1</encoding>
372
                                                </configuration>
373
                                        </plugin>
374
                                        <plugin>
375
                                                <groupId>org.apache.maven.plugins</groupId>
376
                                                <artifactId>maven-jar-plugin</artifactId>
377
                                                <!--
378
                                                        Generates a jar file only with the mapcontext API
379
                                                        TODO: make a good configuration of excludes and 
380
                                                        includes, when the api and implementation of
381
                                                        the mapcontext library would be performed. 
382
                                                -->
383
                                                <configuration>
384
                                                  <excludes>
385
                                                        <exclude>org/gvsig/fmap/geom/**</exclude>
386
                                                  </excludes>
387
                                                </configuration>                
388
                                                <executions>
389
                                                        <!--
390
                                                                Generates a jar file only with the mapcontext implementation
391
                                                        -->
392
                                                        <execution>
393
                                                                <id>impl</id>
394
                                                                <phase>package</phase>
395
                                                                <goals>
396
                                                                        <goal>jar</goal>
397
                                                                </goals>
398
                                                                <configuration>
399
                                                                        <classifier>impl</classifier>
400
                                                                        <excludes>
401
                                                                                <exclude>**/**</exclude>
402
                                                                        </excludes>
403
                                                                </configuration>
404
                                                        </execution>
405
                                                        <!--
406
                                                                Generates a jar file only with the mapcontext geometries operations
407
                                                        -->
408
                                                        <execution>
409
                                                                <id>operation</id>
410
                                                                <phase>package</phase>
411
                                                                <goals>
412
                                                                        <goal>jar</goal>
413
                                                                </goals>
414
                                                                <configuration>
415
                                                                        <classifier>operation</classifier>
416
                                                                        <excludes>
417
                                                                                <exclude>NONE</exclude>
418
                                                                        </excludes>
419
                                                                        <includes>
420
                                                                                <include>org/gvsig/fmap/geom/**</include>
421
                                                                        </includes>
422
                                                                </configuration>
423
                                                        </execution>
424
                                                </executions>
425
                                        </plugin>
426
                                        <plugin>
427
                                                <artifactId>maven-antrun-plugin</artifactId>
428
                                                <executions>
429
                                                        <execution>
430
                                                                <id>services</id>
431
                                                                <phase>package</phase>
432
                                                                <goals>
433
                                                                        <goal>run</goal>
434
                                                                </goals>
435
                                                                <configuration>
436
                                                                        <tasks>
437
                                                                                <jar destfile="${project.build.directory}/${project.build.finalName}.jar"
438
                                                                                        update="true">
439
                                                                                        <fileset dir="${basedir}/resources/api" />
440
                                                                                </jar>
441
                                                                                <jar destfile="${project.build.directory}/${project.build.finalName}-impl.jar"
442
                                                                                        update="true">
443
                                                                                        <fileset dir="${basedir}/resources/impl" />
444
                                                                                </jar>
445
                                                                                <jar destfile="${project.build.directory}/${project.build.finalName}-operation.jar"
446
                                                                                        update="true">
447
                                                                                        <fileset dir="${basedir}/resources/operation" />
448
                                                                                </jar>
449
                                                                        </tasks>
450
                                                                </configuration>
451
                                                        </execution>
452
                                                </executions>
453
                                        </plugin>
454
                                        <plugin>
455
                                                <groupId>org.apache.maven.plugins</groupId>
456
                                                <artifactId>maven-surefire-plugin</artifactId>
457
                                                <configuration>
458
                                                        <additionalClasspathElements>
459
                                                                <additionalClasspathElement>${basedir}/resources/api</additionalClasspathElement>
460
                                                                <additionalClasspathElement>${basedir}/resources/impl</additionalClasspathElement>
461
                                                                <additionalClasspathElement>${basedir}/resources/operation</additionalClasspathElement>
462
                                                        </additionalClasspathElements>
463
                                                </configuration>
464
                                        </plugin>
465
                                </plugins>
466
                        </build>
467

    
468
                </profile>
469
                <profile>
470
                        <id>eclipse-project</id>
471
                        <build>
472
                                <defaultGoal>antrun:run</defaultGoal>
473
                                <plugins>
474
                                        <plugin>
475
                                                <artifactId>maven-antrun-plugin</artifactId>
476
                                                <configuration>
477
                                                        <tasks>
478
                                                                <ant antfile="${build-dir}/ant-tasks/eclipse-tasks.xml"
479
                                                                        target="eclipse.all"/>
480
                                                        </tasks>
481
                                                </configuration>
482
                                        </plugin>
483
                                </plugins>
484
                        </build>                                
485
                </profile>                
486
        </profiles>
487
</project>