Statistics
| Revision:

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

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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4
        <modelVersion>4.0.0</modelVersion>
5
        <artifactId>org.gvsig.fmap.mapcontext</artifactId>
6
        <packaging>jar</packaging>
7
        <version>2.0.1-SNAPSHOT</version>
8
        <name>libFMap_mapcontext</name>
9
        <parent>
10
                <groupId>org.gvsig</groupId>
11
                <artifactId>gvsig-base-library-pom</artifactId>
12
                <version>2.0.2-SNAPSHOT</version>
13
        </parent>        
14
        
15
    <scm>
16
        <connection>scm:svn:https://devel.gvsig.org/svn/gvsig-desktop/branches/v2_0_0_prep/libraries/libFMap_mapcontext/</connection>
17
        <developerConnection>scm:svn:https://devel.gvsig.org/svn/gvsig-desktop/branches/v2_0_0_prep/libraries/libFMap_mapcontext/</developerConnection>
18
        <url>https://devel.gvsig.org/redmine/projects/gvsig-desktop/repository/show/branches/v2_0_0_prep/libraries/libFMap_mapcontext</url>
19
    </scm>
20

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

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

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

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

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

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