Statistics
| Revision:

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

History | View | Annotate | Download (14.8 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
        <artifactId>org.gvsig.fmap.mapcontext</artifactId>
8
        <packaging>jar</packaging>
9
        <version>2.0-SNAPSHOT</version>
10
        <name>libFMap_mapcontext</name>
11
        <parent>
12
                <groupId>org.gvsig</groupId>
13
                <artifactId>gvsig-base-library-pom</artifactId>
14
                <version>2.0</version>
15
        </parent>        
16
        
17
    <scm>
18
        <connection>scm:svn:https://devel.gvsig.org/svn/gvsig-desktop/branches/v2_0_0_prep/libraries/${name}/</connection>
19
        <developerConnection>scm:svn:https://devel.gvsig.org/svn/gvsig-desktop/branches/v2_0_0_prep/libraries/${name}/</developerConnection>
20
        <url>https://devel.gvsig.org/redmine/projects/gvsig-desktop/repository/show/branches/v2_0_0_prep/libraries/${name}</url>
21
    </scm>
22

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

    
165
                                <dependency>
166
                                        <groupId>org.gvsig</groupId>
167
                                        <artifactId>org.gvsig.compat</artifactId>
168
                                        <version>2.0</version>
169
                                        <classifier>se</classifier>
170
                                        <scope>test</scope>
171
                                </dependency>
172
                                <dependency>
173
                                        <groupId>org.gvsig</groupId>
174
                                        <artifactId>org.gvsig.projection</artifactId>
175
                                        <version>2.0</version>
176
                                        <classifier>cresques-impl</classifier>
177
                                        <scope>test</scope>
178
                                </dependency>
179
                                <dependency>
180
                                        <groupId>org.gvsig</groupId>
181
                                        <artifactId>org.gvsig.fmap.geometry</artifactId>
182
                                        <version>2.0</version>
183
                                        <classifier>impl</classifier>
184
                                        <scope>test</scope>
185
                                </dependency>
186
                                <dependency>
187
                                        <groupId>org.gvsig</groupId>
188
                                        <artifactId>org.gvsig.fmap.dal</artifactId>
189
                                        <version>2.0</version>
190
                                        <classifier>spi</classifier>
191
                                        <scope>test</scope>
192
                                </dependency>
193
                                <dependency>
194
                                        <groupId>org.gvsig</groupId>
195
                                        <artifactId>org.gvsig.fmap.dal</artifactId>
196
                                        <version>2.0</version>
197
                                        <classifier>impl</classifier>
198
                                        <scope>test</scope>
199
                                </dependency>
200
                                <dependency>
201
                                        <groupId>org.geotools</groupId>
202
                                        <artifactId>gt2-main</artifactId>
203
                                        <scope>test</scope>
204
                                </dependency>
205
                                <dependency>
206
                                        <groupId>org.geotools</groupId>
207
                                        <artifactId>gt2-legacy</artifactId>
208
                                </dependency>
209
                                <dependency>
210
                                        <groupId>org.opengis</groupId>
211
                                    <artifactId>geoapi</artifactId>
212
                                        <scope>test</scope>
213
                                </dependency>
214
                                                        
215
                        </dependencies>
216
                        <build>
217

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

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

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

    
474
                </profile>
475
                <profile>
476
                        <id>eclipse-project</id>
477
                        <build>
478
                                <defaultGoal>antrun:run</defaultGoal>
479
                                <plugins>
480
                                        <plugin>
481
                                                <artifactId>maven-antrun-plugin</artifactId>
482
                                                <configuration>
483
                                                        <tasks>
484
                                                                <ant antfile="${build-dir}/ant-tasks/eclipse-tasks.xml"
485
                                                                        target="eclipse.all"/>
486
                                                        </tasks>
487
                                                </configuration>
488
                                        </plugin>
489
                                </plugins>
490
                        </build>                                
491
                </profile>                
492
        </profiles>
493
</project>