Statistics
| Revision:

svn-gvsig-desktop / branches / v2_0_0_prep / libraries / libFMap_geometries / pom.xml @ 39935

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

    
7
        <modelVersion>4.0.0</modelVersion>
8
        <artifactId>org.gvsig.fmap.geometry</artifactId>
9
        <packaging>jar</packaging>
10
        <version>2.0-SNAPSHOT</version>
11
        <name>libFMap_geometries</name>
12
        <url>https://devel.gvsig.org/redmine/projects/gvsig-desktop</url>
13
        <parent>
14
                <groupId>org.gvsig</groupId>
15
                <artifactId>gvsig-base-library-pom</artifactId>
16
                <version>2.0</version>
17
        </parent>        
18
        <scm>
19
        <connection>scm:svn:https://devel.gvsig.org/svn/gvsig-desktop/branches/v2_0_0_prep/libraries/${name}/</connection>
20
        <developerConnection>scm:svn:https://devel.gvsig.org/svn/gvsig-desktop/branches/v2_0_0_prep/libraries/${name}/</developerConnection>
21
        <url>https://devel.gvsig.org/svn/gvsig-desktop/branches/v2_0_0_prep/libraries/${name}</url>
22
    </scm>
23
        
24
        <dependencies>
25
                <dependency>
26
                        <groupId>org.gvsig</groupId>
27
                        <artifactId>org.gvsig.tools.lib</artifactId>
28
            <scope>compile</scope>
29
                </dependency>                        
30
                <dependency>
31
                        <groupId>com.vividsolutions</groupId>
32
                        <artifactId>jts</artifactId>
33
            <scope>compile</scope>
34
                </dependency>
35
                <dependency>
36
                        <groupId>org.gvsig</groupId>
37
                        <artifactId>org.gvsig.tools.lib</artifactId>
38
                        <type>test-jar</type>
39
            <scope>test</scope>
40
                </dependency>                
41
        <dependency>
42
            <groupId>org.gvsig</groupId>
43
            <artifactId>org.gvsig.projection</artifactId>
44
            <scope>compile</scope>
45
        </dependency>   
46
                <dependency>
47
                        <groupId>org.gvsig</groupId>
48
                        <artifactId>org.gvsig.projection</artifactId>
49
                        <classifier>cresques-impl</classifier>
50
                        <scope>test</scope>
51
                </dependency>
52
        <dependency>
53
            <groupId>org.slf4j</groupId>
54
            <artifactId>slf4j-api</artifactId>
55
            <scope>compile</scope>
56
        </dependency>
57
                <dependency>
58
                        <groupId>org.opengis</groupId>
59
                        <artifactId>geoapi</artifactId>                        
60
                        <scope>test</scope>
61
                </dependency>
62
                <dependency>
63
                        <groupId>org.geotools</groupId>
64
                        <artifactId>gt2-legacy</artifactId>                        
65
                        <scope>test</scope>
66
                </dependency>
67
                <dependency>
68
                        <groupId>org.geotools</groupId>
69
                        <artifactId>gt2-main</artifactId>
70
                        <scope>test</scope>
71
                </dependency>
72
                <dependency>
73
                        <groupId>geojava</groupId>
74
                        <artifactId>geojava</artifactId>
75
                        <scope>test</scope>
76
                </dependency>
77
                <dependency>
78
                        <groupId>javax.media</groupId>
79
                        <artifactId>jai_core</artifactId>
80
                        <scope>test</scope>
81
                </dependency>
82
                <dependency>
83
                        <groupId>javax.media</groupId>
84
                        <artifactId>jai_codec</artifactId>
85
                        <scope>test</scope>
86
                </dependency>
87
        </dependencies>
88

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

    
94
        <build>
95
                <sourceDirectory>src</sourceDirectory>
96
                <testSourceDirectory>src-test</testSourceDirectory>
97
        <plugins>
98
            <plugin>
99
                <groupId>org.apache.maven.plugins</groupId>
100
                <artifactId>maven-compiler-plugin</artifactId>
101
                <configuration>
102
                    <source>1.4</source>
103
                    <target>1.4</target>
104
                </configuration>
105
            </plugin> 
106
                    <plugin>
107
                      <artifactId>maven-release-plugin</artifactId>
108
                      <version>2.0</version>
109
                      <configuration>
110
                        <tagBase>https://devel.gvsig.org/svn/gvsig-desktop/tags/libraries/${artifactId}</tagBase>
111
                      </configuration>
112
                    </plugin>
113
        </plugins>
114
        </build>
115

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

    
230
                                </plugins>
231
                        </build>
232
                </profile>
233

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

    
258
                                                        <testExcludes>
259
                                                                <exclude>**/fmap/geom/*</exclude>
260
                                                                <exclude>**/geom/operation/**</exclude>
261
                                                        </testExcludes>
262

    
263
                                                </configuration>
264
                                        </plugin>
265
                                        <plugin>
266
                                                <groupId>org.apache.maven.plugins</groupId>
267
                                                <artifactId>maven-javadoc-plugin</artifactId>
268
                                        </plugin>
269
                                        <plugin>
270
                                                <groupId>org.apache.maven.plugins</groupId>
271
                                                <artifactId>maven-jar-plugin</artifactId>
272
                                                <configuration>
273

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

    
301
                                                        <execution>
302
                                                                <id>operation</id>
303
                                                                <phase>package</phase>
304
                                                                <goals>
305
                                                                        <goal>jar</goal>
306
                                                                </goals>
307
                                                                <configuration>
308
                                                                        <classifier>operation</classifier>
309
                                                                        <includes>
310
                                                                                <include>**/operation/*/*</include>
311
                                                                        </includes>
312
                                                                        <excludes>
313
                                                                                <exclude>**/operation/fromwkb/*</exclude>
314
                                                                                <exclude>**/operation/towkb/*</exclude>
315
                                                                        </excludes>
316
                                                                </configuration>
317
                                                        </execution>
318

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