Statistics
| Revision:

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

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

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

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

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

    
114
        <profiles>
115
                <profile>
116
                        <id>se</id>
117
                        <activation>
118
                                <activeByDefault>true</activeByDefault>
119
                        </activation>
120
                        <dependencies>
121
                                <dependency>
122
                                        <groupId>org.gvsig</groupId>
123
                                        <artifactId>org.gvsig.jdk.v1_6</artifactId>
124
                                        <version>1.0.0</version>
125
                                </dependency>
126
                        </dependencies>
127
                        <build>
128
                                <plugins>
129
                                        <plugin>
130
                                                <groupId>org.apache.maven.plugins</groupId>
131
                                                <artifactId>maven-jar-plugin</artifactId>
132
                                                <configuration>
133
                                                        <excludes>
134
                                                                <exclude>**/operation/*/*</exclude>
135
                                                                <exclude>**/impl/**</exclude>
136
                                                        </excludes>
137
                                                </configuration>
138
                                                <executions>
139
                                                        <!--
140
                                                                Generates a jar file only with the geometries API TODO: make a good
141
                                                                configuration of excludes and includes, when the api and implementation
142
                                                                of the geometries library would be performed. <execution> <id>api</id>
143
                                                                <phase>package</phase> <goals> <goal>jar</goal> </goals> <configuration>
144
                                                                <classifier>api</classifier> <excludes>
145
                                                                <exclude>**/operation/*/*</exclude> </excludes> </configuration>
146
                                                                </execution>
147
                                                        -->
148
                                                        <!--
149
                                                                Generates a jar file only with the geometries implementation
150
                                                        -->
151
                                                        <execution>
152
                                                                <id>impl</id>
153
                                                                <phase>package</phase>
154
                                                                <goals>
155
                                                                        <goal>jar</goal>
156
                                                                </goals>
157
                                                                <configuration>
158
                                                                        <classifier>impl</classifier>
159
                                                                        <excludes>
160
                                                                                <exclude>**/operation/impl/**</exclude>
161
                                                                        </excludes>
162
                                                                        <includes>
163
                                                                                <include>**/impl/**</include>
164
                                                                        </includes>
165
                                                                </configuration>
166
                                                        </execution>
167
                                                        <!--
168
                                                                Generates a jar file only with the geometries operations
169
                                                        -->
170
                                                        <execution>
171
                                                                <id>operation</id>
172
                                                                <phase>package</phase>
173
                                                                <goals>
174
                                                                        <goal>jar</goal>
175
                                                                </goals>
176
                                                                <configuration>
177
                                                                        <classifier>operation</classifier>
178
                                                                        <excludes>
179
                                                                                <exclude>NONE</exclude>
180
                                                                        </excludes>
181
                                                                        <includes>
182
                                                                                <include>**/operation/*/*</include>
183
                                                                        </includes>
184
                                                                </configuration>
185
                                                        </execution>
186
                                                </executions>
187
                                        </plugin>
188
                                        <plugin>
189
                                                <artifactId>maven-antrun-plugin</artifactId>
190
                                                <executions>
191
                                                        <execution>
192
                                                                <id>services</id>
193
                                                                <phase>package</phase>
194
                                                                <goals>
195
                                                                        <goal>run</goal>
196
                                                                </goals>
197
                                                                <configuration>
198
                                                                        <tasks>
199
                                                                                <jar destfile="${project.build.directory}/${project.build.finalName}.jar" update="true">
200
                                                                                        <fileset dir="${basedir}/resources/api" />
201
                                                                                </jar>
202
                                                                                <jar destfile="${project.build.directory}/${project.build.finalName}-impl.jar" update="true">
203
                                                                                        <fileset dir="${basedir}/resources/impl" />
204
                                                                                </jar>
205
                                                                                <jar destfile="${project.build.directory}/${project.build.finalName}-operation.jar" 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</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" update="true">
329
                                                                                        <fileset dir="${basedir}/resources/api" />
330
                                                                                </jar>
331
                                                                                <jar destfile="${project.build.directory}/${project.build.finalName}-impl.jar" update="true">
332
                                                                                        <fileset dir="${basedir}/resources/impl" />
333
                                                                                </jar>
334
                                                                        </tasks>
335
                                                                </configuration>
336
                                                        </execution>
337
                                                </executions>
338
                                        </plugin>
339
                                        <plugin>
340
                                                <groupId>org.apache.maven.plugins</groupId>
341
                                                <artifactId>maven-surefire-plugin</artifactId>
342
                                                <configuration>
343
                                                        <additionalClasspathElements>
344
                                                                <additionalClasspathElement>${basedir}/resources/api</additionalClasspathElement>
345
                                                                <additionalClasspathElement>${basedir}/resources/impl</additionalClasspathElement>
346
                                                        </additionalClasspathElements>
347
                                                </configuration>
348
                                        </plugin>
349
                                        
350
                                </plugins>
351
                        </build>
352
                </profile>
353
                <profile>
354
                        <id>eclipse-project</id>
355
                        <build>
356
                                <defaultGoal>antrun:run</defaultGoal>
357
                                <plugins>
358
                                        <plugin>
359
                                                <artifactId>maven-antrun-plugin</artifactId>
360
                                                <configuration>
361
                                                        <tasks>
362
                                                                <ant antfile="${build-dir}/ant-tasks/eclipse-tasks.xml" target="eclipse.all" />
363
                                                        </tasks>
364
                                                </configuration>
365
                                        </plugin>
366
                                </plugins>
367
                        </build>                                
368
                </profile>                
369
        </profiles>
370
        <reporting>
371
                <plugins>
372
                        <plugin>
373
                                <groupId>org.apache.maven.plugins</groupId>
374
                                <artifactId>maven-javadoc-plugin</artifactId>
375
                                <reportSets>
376
                                        <reportSet>
377
                                                <id>api</id>
378
                                                <configuration>
379
                                                        <subpackages>org.gvsig.fmap.geom</subpackages>
380
                                                        <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>
381
                                                        <name>JavaDoc - API</name>
382
                                                        <destDir>api</destDir>
383
                                                </configuration>
384
                                                <reports>
385
                                                        <report>javadoc</report>
386
                                                </reports>
387
                                        </reportSet>
388
                                        <reportSet>
389
                                                <id>operation</id>
390
                                                <configuration>
391
                                                        <subpackages>org.gvsig.fmap.geom.operation</subpackages>
392
                                                        <name>JavaDoc - Geometry operations</name>
393
                                                        <destDir>operation</destDir>
394
                                                </configuration>
395
                                                <reports>
396
                                                        <report>javadoc</report>
397
                                                </reports>
398
                                        </reportSet>
399
                                        <reportSet>
400
                                                <id>impl</id>
401
                                                <configuration>
402
                                                        <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>
403
                                                        <name>JavaDoc - Default implementation</name>
404
                                                        <destDir>impl</destDir>
405
                                                </configuration>
406
                                                <reports>
407
                                                        <report>javadoc</report>
408
                                                </reports>
409
                                        </reportSet>
410
                                </reportSets>
411
                        </plugin>
412
                </plugins>
413
        </reporting>
414
</project>