Statistics
| Revision:

svn-gvsig-desktop / tags / v2_0_0_Build_2035 / libraries / libFMap_geometries / pom.xml @ 37664

History | View | Annotate | Download (12.3 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/xsd/maven-4.0.0.xsd">
6

    
7
        <modelVersion>4.0.0</modelVersion>
8
        <groupId>org.gvsig</groupId>
9
        <artifactId>org.gvsig.fmap.geometry</artifactId>
10
        <packaging>jar</packaging>
11
        <version>2.0-SNAPSHOT</version>
12
        <name>libFMap_geometries</name>
13
        <url>http://gvsig.org</url>
14
        <parent>
15
                <groupId>org.gvsig</groupId>
16
                <artifactId>gvsig-base-library-pom</artifactId>
17
                <version>2.0-SNAPSHOT</version>
18
        </parent>        
19
        <distributionManagement>
20
                <site>
21
                        <id>gvsig-repository</id>
22
                        <url>${site-repository}/</url>
23
                </site>
24
        </distributionManagement>
25

    
26
        <dependencies>
27
                <dependency>
28
                        <groupId>org.gvsig</groupId>
29
                        <artifactId>org.gvsig.tools.lib</artifactId>
30
            <scope>compile</scope>
31
                </dependency>                        
32
                <dependency>
33
                        <groupId>com.vividsolutions</groupId>
34
                        <artifactId>jts</artifactId>
35
            <scope>compile</scope>
36
                </dependency>
37
                <dependency>
38
                        <groupId>org.gvsig</groupId>
39
                        <artifactId>org.gvsig.tools.lib</artifactId>
40
                        <type>test-jar</type>
41
            <scope>test</scope>
42
                </dependency>                
43
        <dependency>
44
            <groupId>org.gvsig</groupId>
45
            <artifactId>org.gvsig.projection</artifactId>
46
            <scope>compile</scope>
47
        </dependency>   
48
                <dependency>
49
                        <groupId>org.gvsig</groupId>
50
                        <artifactId>org.gvsig.projection</artifactId>
51
                        <classifier>cresques-impl</classifier>
52
                        <scope>test</scope>
53
                </dependency>
54
        <dependency>
55
            <groupId>org.slf4j</groupId>
56
            <artifactId>slf4j-api</artifactId>
57
            <scope>compile</scope>
58
        </dependency>
59
                <dependency>
60
                        <groupId>org.opengis</groupId>
61
                        <artifactId>geoapi</artifactId>                        
62
                        <scope>test</scope>
63
                </dependency>
64
                <dependency>
65
                        <groupId>org.geotools</groupId>
66
                        <artifactId>gt2-legacy</artifactId>                        
67
                        <scope>test</scope>
68
                </dependency>
69
                <dependency>
70
                        <groupId>org.geotools</groupId>
71
                        <artifactId>gt2-main</artifactId>
72
                        <scope>test</scope>
73
                </dependency>
74
                <dependency>
75
                        <groupId>geojava</groupId>
76
                        <artifactId>geojava</artifactId>
77
                        <scope>test</scope>
78
                </dependency>
79
                <dependency>
80
                        <groupId>javax.media</groupId>
81
                        <artifactId>jai_core</artifactId>
82
                        <scope>test</scope>
83
                </dependency>
84
                <dependency>
85
                        <groupId>javax.media</groupId>
86
                        <artifactId>jai_codec</artifactId>
87
                        <scope>test</scope>
88
                </dependency>
89
        </dependencies>
90

    
91
        <properties>
92
                <build-dir>${basedir}/../build</build-dir>
93
        <eclipse.project.name>libFMap_geometries</eclipse.project.name>
94
        </properties>
95

    
96
        <build>
97
                <sourceDirectory>src</sourceDirectory>
98
                <testSourceDirectory>src-test</testSourceDirectory>
99
        <plugins>
100
            <plugin>
101
                <groupId>org.apache.maven.plugins</groupId>
102
                <artifactId>maven-compiler-plugin</artifactId>
103
                <configuration>
104
                    <source>1.4</source>
105
                    <target>1.4</target>
106
                </configuration>
107
            </plugin>        
108
        </plugins>
109
        </build>
110

    
111
        <profiles>
112
                <profile>
113
                        <id>se</id>
114
                        <activation>
115
                                <activeByDefault>true</activeByDefault>
116
                        </activation>
117
                        <dependencies>
118
                                <dependency>
119
                                        <groupId>org.gvsig</groupId>
120
                                        <artifactId>org.gvsig.jdk.v1_6</artifactId>
121
                                        <version>1.0.0-SNAPSHOT</version>
122
                                </dependency>
123
                        </dependencies>
124
                        <build>
125
                                <plugins>
126
                                        <plugin>
127
                                                <groupId>org.apache.maven.plugins</groupId>
128
                                                <artifactId>maven-jar-plugin</artifactId>
129
                                                <configuration>
130
                                                        <excludes>
131
                                                                <exclude>**/operation/*/*</exclude>
132
                                                                <exclude>**/impl/**</exclude>
133
                                                        </excludes>
134
                                                </configuration>
135
                                                <executions>
136
                                                        <!--
137
                                                                Generates a jar file only with the geometries API TODO: make a good
138
                                                                configuration of excludes and includes, when the api and implementation
139
                                                                of the geometries library would be performed. <execution> <id>api</id>
140
                                                                <phase>package</phase> <goals> <goal>jar</goal> </goals> <configuration>
141
                                                                <classifier>api</classifier> <excludes>
142
                                                                <exclude>**/operation/*/*</exclude> </excludes> </configuration>
143
                                                                </execution>
144
                                                        -->
145
                                                        <!--
146
                                                                Generates a jar file only with the geometries implementation
147
                                                        -->
148
                                                        <execution>
149
                                                                <id>impl</id>
150
                                                                <phase>package</phase>
151
                                                                <goals>
152
                                                                        <goal>jar</goal>
153
                                                                </goals>
154
                                                                <configuration>
155
                                                                        <classifier>impl</classifier>
156
                                                                        <excludes>
157
                                                                                <exclude>**/operation/impl/**</exclude>
158
                                                                        </excludes>
159
                                                                        <includes>
160
                                                                                <include>**/impl/**</include>
161
                                                                        </includes>
162
                                                                </configuration>
163
                                                        </execution>
164
                                                        <!--
165
                                                                Generates a jar file only with the geometries operations
166
                                                        -->
167
                                                        <execution>
168
                                                                <id>operation</id>
169
                                                                <phase>package</phase>
170
                                                                <goals>
171
                                                                        <goal>jar</goal>
172
                                                                </goals>
173
                                                                <configuration>
174
                                                                        <classifier>operation</classifier>
175
                                                                        <excludes>
176
                                                                                <exclude>NONE</exclude>
177
                                                                        </excludes>
178
                                                                        <includes>
179
                                                                                <include>**/operation/*/*</include>
180
                                                                        </includes>
181
                                                                </configuration>
182
                                                        </execution>
183
                                                </executions>
184
                                        </plugin>
185
                                        <plugin>
186
                                                <artifactId>maven-antrun-plugin</artifactId>
187
                                                <executions>
188
                                                        <execution>
189
                                                                <id>services</id>
190
                                                                <phase>package</phase>
191
                                                                <goals>
192
                                                                        <goal>run</goal>
193
                                                                </goals>
194
                                                                <configuration>
195
                                                                        <tasks>
196
                                                                                <jar destfile="${project.build.directory}/${project.build.finalName}.jar"
197
                                                                                        update="true">
198
                                                                                        <fileset dir="${basedir}/resources/api" />
199
                                                                                </jar>
200
                                                                                <jar destfile="${project.build.directory}/${project.build.finalName}-impl.jar"
201
                                                                                        update="true">
202
                                                                                        <fileset dir="${basedir}/resources/impl" />
203
                                                                                </jar>
204
                                                                                <jar destfile="${project.build.directory}/${project.build.finalName}-operation.jar"
205
                                                                                        update="true">
206
                                                                                        <fileset dir="${basedir}/resources/operation" />
207
                                                                                </jar>
208
                                                                        </tasks>
209
                                                                </configuration>
210
                                                        </execution>
211
                                                </executions>
212
                                        </plugin>
213
                                        <plugin>
214
                                                <groupId>org.apache.maven.plugins</groupId>
215
                                                <artifactId>maven-surefire-plugin</artifactId>
216
                                                <configuration>
217
                                                        <additionalClasspathElements>
218
                                                                <additionalClasspathElement>${basedir}/resources/api</additionalClasspathElement>
219
                                                                <additionalClasspathElement>${basedir}/resources/impl</additionalClasspathElement>
220
                                                                <additionalClasspathElement>${basedir}/resources/operation</additionalClasspathElement>
221
                                                        </additionalClasspathElements>
222
                                                </configuration>
223
                                        </plugin>
224

    
225
                                </plugins>
226
                        </build>
227
                </profile>
228

    
229
                <profile>
230
                        <id>cdc</id>
231
                        <activation>
232
                                <activeByDefault>false</activeByDefault>
233
                        </activation>
234
                        <dependencies>
235
                                <dependency>
236
                                        <groupId>org.gvsig</groupId>
237
                                        <artifactId>org.gvsig.jdk.v1_4</artifactId>
238
                                        <version>1.0.0-SNAPSHOT</version>
239
                                </dependency>
240
                        </dependencies>
241
                        <build>
242
                                <plugins>
243
                                        <plugin>
244
                                                <groupId>org.apache.maven.plugins</groupId>
245
                                                <artifactId>maven-compiler-plugin</artifactId>
246
                                                <configuration>
247
                                                        <excludes>
248
                                                                <exclude>**/operation/fromwkb/*</exclude>
249
                                                                <exclude>**/operation/towkb/*</exclude>
250
                                                                <exclude>**/operation/impl/*</exclude>
251
                                                        </excludes>
252

    
253
                                                        <testExcludes>
254
                                                                <exclude>**/fmap/geom/*</exclude>
255
                                                                <exclude>**/geom/operation/**</exclude>
256
                                                        </testExcludes>
257

    
258
                                                </configuration>
259
                                        </plugin>
260
                                        <plugin>
261
                                                <groupId>org.apache.maven.plugins</groupId>
262
                                                <artifactId>maven-javadoc-plugin</artifactId>
263
                                        </plugin>
264
                                        <plugin>
265
                                                <groupId>org.apache.maven.plugins</groupId>
266
                                                <artifactId>maven-jar-plugin</artifactId>
267
                                                <configuration>
268

    
269
                                                        <includes>
270
                                                                <include>**/**</include>
271
                                                        </includes>
272
                                                        <excludes>
273
                                                                <exclude>**/operation/fromwkb/*</exclude>
274
                                                                <exclude>**/operation/towkb/*</exclude>
275
                                                                <exclude>**/operation/impl/*</exclude>
276
                                                        </excludes>
277
                                                </configuration>
278
                                                <executions>
279
                                                        <execution>
280
                                                                <id>impl</id>
281
                                                                <phase>package</phase>
282
                                                                <goals>
283
                                                                        <goal>jar</goal>
284
                                                                </goals>
285
                                                                <configuration>
286
                                                                        <classifier>impl</classifier>
287
                                                                        <includes>
288
                                                                                <include>**/impl/**</include>
289
                                                                        </includes>
290
                                                                        <excludes>
291
                                                                                <exclude>**/operation/impl/**</exclude>
292
                                                                        </excludes>
293
                                                                </configuration>
294
                                                        </execution>
295

    
296
                                                        <execution>
297
                                                                <id>operation</id>
298
                                                                <phase>package</phase>
299
                                                                <goals>
300
                                                                        <goal>jar</goal>
301
                                                                </goals>
302
                                                                <configuration>
303
                                                                        <classifier>operation</classifier>
304
                                                                        <includes>
305
                                                                                <include>**/operation/*/*</include>
306
                                                                        </includes>
307
                                                                        <excludes>
308
                                                                                <exclude>**/operation/fromwkb/*</exclude>
309
                                                                                <exclude>**/operation/towkb/*</exclude>
310
                                                                        </excludes>
311
                                                                </configuration>
312
                                                        </execution>
313

    
314
                                                </executions>
315
                                        </plugin>
316
                                        
317
                                        <plugin>
318
                                                <artifactId>maven-antrun-plugin</artifactId>
319
                                                <executions>
320
                                                        <execution>
321
                                                                <id>services</id>
322
                                                                <phase>package</phase>
323
                                                                <goals>
324
                                                                        <goal>run</goal>
325
                                                                </goals>
326
                                                                <configuration>
327
                                                                        <tasks>
328
                                                                                <jar destfile="${project.build.directory}/${project.build.finalName}.jar"
329
                                                                                        update="true">
330
                                                                                        <fileset dir="${basedir}/resources/api" />
331
                                                                                </jar>
332
                                                                                <jar destfile="${project.build.directory}/${project.build.finalName}-impl.jar"
333
                                                                                        update="true">
334
                                                                                        <fileset dir="${basedir}/resources/impl" />
335
                                                                                </jar>
336
                                                                        </tasks>
337
                                                                </configuration>
338
                                                        </execution>
339
                                                </executions>
340
                                        </plugin>
341
                                        <plugin>
342
                                                <groupId>org.apache.maven.plugins</groupId>
343
                                                <artifactId>maven-surefire-plugin</artifactId>
344
                                                <configuration>
345
                                                        <additionalClasspathElements>
346
                                                                <additionalClasspathElement>${basedir}/resources/api</additionalClasspathElement>
347
                                                                <additionalClasspathElement>${basedir}/resources/impl</additionalClasspathElement>
348
                                                        </additionalClasspathElements>
349
                                                </configuration>
350
                                        </plugin>
351
                                        
352
                                </plugins>
353
                        </build>
354
                </profile>
355
                <profile>
356
                        <id>eclipse-project</id>
357
                        <build>
358
                                <defaultGoal>antrun:run</defaultGoal>
359
                                <plugins>
360
                                        <plugin>
361
                                                <artifactId>maven-antrun-plugin</artifactId>
362
                                                <configuration>
363
                                                        <tasks>
364
                                                                <ant antfile="${build-dir}/ant-tasks/eclipse-tasks.xml"
365
                                                                        target="eclipse.all"/>
366
                                                        </tasks>
367
                                                </configuration>
368
                                        </plugin>
369
                                </plugins>
370
                        </build>                                
371
                </profile>                
372
        </profiles>
373
        <reporting>
374
                <plugins>
375
                        <plugin>
376
                                <groupId>org.apache.maven.plugins</groupId>
377
                                <artifactId>maven-javadoc-plugin</artifactId>
378
                                <reportSets>
379
                                        <reportSet>
380
                                                <id>api</id>
381
                                                <configuration>
382
                                                        <subpackages>org.gvsig.fmap.geom</subpackages>
383
                                                        <excludePackageNames>org.gvsig.fmap.geom.operation:org.gvsig.fmap.geom.impl:org.gvsig.fmap.geom.aggregate.impl:org.gvsig.fmap.geom.primitive.impl:org.gvsig.fmap.geom.type.impl</excludePackageNames>
384
                                                        <name>JavaDoc - API</name>
385
                                                        <destDir>api</destDir>
386
                                                </configuration>
387
                                                <reports>
388
                                                        <report>javadoc</report>
389
                                                </reports>
390
                                        </reportSet>
391
                                        <reportSet>
392
                                                <id>operation</id>
393
                                                <configuration>
394
                                                        <subpackages>org.gvsig.fmap.geom.operation</subpackages>
395
                                                        <name>JavaDoc - Geometry operations</name>
396
                                                        <destDir>operation</destDir>
397
                                                </configuration>
398
                                                <reports>
399
                                                        <report>javadoc</report>
400
                                                </reports>
401
                                        </reportSet>
402
                                        <reportSet>
403
                                                <id>impl</id>
404
                                                <configuration>
405
                                                        <subpackages>org.gvsig.fmap.geom.impl:org.gvsig.fmap.geom.aggregate.impl:org.gvsig.fmap.geom.primitive.impl:org.gvsig.fmap.geom.type.impl</subpackages>
406
                                                        <name>JavaDoc - Default implementation</name>
407
                                                        <destDir>impl</destDir>
408
                                                </configuration>
409
                                                <reports>
410
                                                        <report>javadoc</report>
411
                                                </reports>
412
                                        </reportSet>
413
                                </reportSets>
414
                        </plugin>
415
                </plugins>
416
        </reporting>
417
</project>