Statistics
| Revision:

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

History | View | Annotate | Download (10.9 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
                </dependency>                                
31
                <dependency>
32
                        <groupId>com.vividsolutions</groupId>
33
                        <artifactId>jts</artifactId>
34
                </dependency>                
35
        </dependencies>
36

    
37
        <properties>
38
                <build-dir>${basedir}/../build</build-dir>
39
        </properties>
40

    
41
        <build>
42
                <sourceDirectory>src</sourceDirectory>
43
                <testSourceDirectory>src-test</testSourceDirectory>
44
        </build>
45

    
46

    
47
        <profiles>
48
                <profile>
49
                        <id>se</id>
50
                        <activation>
51
                                <activeByDefault>true</activeByDefault>
52
                        </activation>
53
                        <dependencies>
54
                                <dependency>
55
                                        <groupId>org.gvsig</groupId>
56
                                        <artifactId>org.gvsig.projection</artifactId>
57
                                        <version>2.0-SNAPSHOT</version>
58
                                </dependency>
59
                                <dependency>
60
                                        <groupId>org.gvsig</groupId>
61
                                        <artifactId>org.gvsig.jdk.v1_6</artifactId>
62
                                        <version>1.0.0-SNAPSHOT</version>
63
                                </dependency>
64
                        </dependencies>
65
                        <build>
66
                                <plugins>
67
                                        <plugin>
68
                                                <groupId>org.apache.maven.plugins</groupId>
69
                                                <artifactId>maven-compiler-plugin</artifactId>
70
                                                <configuration>
71
                                                        <source>1.4</source>
72
                                                        <target>1.4</target>
73
                                                </configuration>
74
                                        </plugin>
75
                                        <plugin>
76
                                                <groupId>org.apache.maven.plugins</groupId>
77
                                                <artifactId>maven-jar-plugin</artifactId>
78
                                                <configuration>
79
                                                        <excludes>
80
                                                                <exclude>**/operation/*/*</exclude>
81
                                                                <exclude>**/impl/**</exclude>
82
                                                        </excludes>
83
                                                </configuration>
84
                                                <executions>
85
                                                        <!--
86
                                                                Generates a jar file only with the geometries API TODO: make a good
87
                                                                configuration of excludes and includes, when the api and implementation
88
                                                                of the geometries library would be performed. <execution> <id>api</id>
89
                                                                <phase>package</phase> <goals> <goal>jar</goal> </goals> <configuration>
90
                                                                <classifier>api</classifier> <excludes>
91
                                                                <exclude>**/operation/*/*</exclude> </excludes> </configuration>
92
                                                                </execution>
93
                                                        -->
94
                                                        <!--
95
                                                                Generates a jar file only with the geometries implementation
96
                                                        -->
97
                                                        <execution>
98
                                                                <id>impl</id>
99
                                                                <phase>package</phase>
100
                                                                <goals>
101
                                                                        <goal>jar</goal>
102
                                                                </goals>
103
                                                                <configuration>
104
                                                                        <classifier>impl</classifier>
105
                                                                        <excludes>
106
                                                                                <exclude>**/operation/impl/**</exclude>
107
                                                                        </excludes>
108
                                                                        <includes>
109
                                                                                <include>**/impl/**</include>
110
                                                                        </includes>
111
                                                                </configuration>
112
                                                        </execution>
113
                                                        <!--
114
                                                                Generates a jar file only with the geometries operations
115
                                                        -->
116
                                                        <execution>
117
                                                                <id>operation</id>
118
                                                                <phase>package</phase>
119
                                                                <goals>
120
                                                                        <goal>jar</goal>
121
                                                                </goals>
122
                                                                <configuration>
123
                                                                        <classifier>operation</classifier>
124
                                                                        <excludes>
125
                                                                                <exclude>NONE</exclude>
126
                                                                        </excludes>
127
                                                                        <includes>
128
                                                                                <include>**/operation/*/*</include>
129
                                                                        </includes>
130
                                                                </configuration>
131
                                                        </execution>
132
                                                </executions>
133
                                        </plugin>
134
                                        <plugin>
135
                                                <artifactId>maven-antrun-plugin</artifactId>
136
                                                <executions>
137
                                                        <execution>
138
                                                                <id>services</id>
139
                                                                <phase>package</phase>
140
                                                                <goals>
141
                                                                        <goal>run</goal>
142
                                                                </goals>
143
                                                                <configuration>
144
                                                                        <tasks>
145
                                                                                <jar destfile="${project.build.directory}/${project.build.finalName}.jar"
146
                                                                                        update="true">
147
                                                                                        <fileset dir="${basedir}/resources/api" />
148
                                                                                </jar>
149
                                                                                <jar destfile="${project.build.directory}/${project.build.finalName}-impl.jar"
150
                                                                                        update="true">
151
                                                                                        <fileset dir="${basedir}/resources/impl" />
152
                                                                                </jar>
153
                                                                                <jar destfile="${project.build.directory}/${project.build.finalName}-operation.jar"
154
                                                                                        update="true">
155
                                                                                        <fileset dir="${basedir}/resources/operation" />
156
                                                                                </jar>
157
                                                                        </tasks>
158
                                                                </configuration>
159
                                                        </execution>
160
                                                </executions>
161
                                        </plugin>
162
                                        <plugin>
163
                                                <groupId>org.apache.maven.plugins</groupId>
164
                                                <artifactId>maven-surefire-plugin</artifactId>
165
                                                <configuration>
166
                                                        <additionalClasspathElements>
167
                                                                <additionalClasspathElement>${basedir}/resources/api</additionalClasspathElement>
168
                                                                <additionalClasspathElement>${basedir}/resources/impl</additionalClasspathElement>
169
                                                                <additionalClasspathElement>${basedir}/resources/operation</additionalClasspathElement>
170
                                                        </additionalClasspathElements>
171
                                                </configuration>
172
                                        </plugin>
173

    
174
                                </plugins>
175
                        </build>
176
                </profile>
177

    
178
                <profile>
179
                        <id>cdc</id>
180
                        <activation>
181
                                <activeByDefault>false</activeByDefault>
182
                        </activation>
183
                        <dependencies>
184
                                <dependency>
185
                                        <groupId>org.gvsig</groupId>
186
                                        <artifactId>org.gvsig.projection</artifactId>
187
                                        <version>2.0-SNAPSHOT</version>
188
                                </dependency>
189
                                <dependency>
190
                                        <groupId>org.gvsig</groupId>
191
                                        <artifactId>org.gvsig.jdk.v1_4</artifactId>
192
                                        <version>1.0.0-SNAPSHOT</version>
193
                                </dependency>
194
                        </dependencies>
195
                        <build>
196
                                <plugins>
197
                                        <plugin>
198
                                                <groupId>org.apache.maven.plugins</groupId>
199
                                                <artifactId>maven-compiler-plugin</artifactId>
200
                                                <configuration>
201
                                                        <excludes>
202
                                                                <exclude>**/operation/fromwkb/*</exclude>
203
                                                                <exclude>**/operation/towkb/*</exclude>
204
                                                                <exclude>**/operation/impl/*</exclude>
205
                                                        </excludes>
206

    
207
                                                        <testExcludes>
208
                                                                <exclude>**/fmap/geom/*</exclude>
209
                                                                <exclude>**/geom/operation/**</exclude>
210
                                                        </testExcludes>
211

    
212
                                                </configuration>
213
                                        </plugin>
214
                                        <plugin>
215
                                                <groupId>org.apache.maven.plugins</groupId>
216
                                                <artifactId>maven-javadoc-plugin</artifactId>
217
                                        </plugin>
218
                                        <plugin>
219
                                                <groupId>org.apache.maven.plugins</groupId>
220
                                                <artifactId>maven-jar-plugin</artifactId>
221
                                                <configuration>
222

    
223
                                                        <includes>
224
                                                                <include>**/**</include>
225
                                                        </includes>
226
                                                        <excludes>
227
                                                                <exclude>**/operation/fromwkb/*</exclude>
228
                                                                <exclude>**/operation/towkb/*</exclude>
229
                                                                <exclude>**/operation/impl/*</exclude>
230
                                                        </excludes>
231
                                                </configuration>
232
                                                <executions>
233
                                                        <execution>
234
                                                                <id>impl</id>
235
                                                                <phase>package</phase>
236
                                                                <goals>
237
                                                                        <goal>jar</goal>
238
                                                                </goals>
239
                                                                <configuration>
240
                                                                        <classifier>impl</classifier>
241
                                                                        <includes>
242
                                                                                <include>**/impl/**</include>
243
                                                                        </includes>
244
                                                                        <excludes>
245
                                                                                <exclude>**/operation/impl/**</exclude>
246
                                                                        </excludes>
247
                                                                </configuration>
248
                                                        </execution>
249

    
250
                                                        <execution>
251
                                                                <id>operation</id>
252
                                                                <phase>package</phase>
253
                                                                <goals>
254
                                                                        <goal>jar</goal>
255
                                                                </goals>
256
                                                                <configuration>
257
                                                                        <classifier>operation</classifier>
258
                                                                        <includes>
259
                                                                                <include>**/operation/*/*</include>
260
                                                                        </includes>
261
                                                                        <excludes>
262
                                                                                <exclude>**/operation/fromwkb/*</exclude>
263
                                                                                <exclude>**/operation/towkb/*</exclude>
264
                                                                        </excludes>
265
                                                                </configuration>
266
                                                        </execution>
267

    
268
                                                </executions>
269
                                        </plugin>
270
                                        
271
                                        <plugin>
272
                                                <artifactId>maven-antrun-plugin</artifactId>
273
                                                <executions>
274
                                                        <execution>
275
                                                                <id>services</id>
276
                                                                <phase>package</phase>
277
                                                                <goals>
278
                                                                        <goal>run</goal>
279
                                                                </goals>
280
                                                                <configuration>
281
                                                                        <tasks>
282
                                                                                <jar destfile="${project.build.directory}/${project.build.finalName}.jar"
283
                                                                                        update="true">
284
                                                                                        <fileset dir="${basedir}/resources/api" />
285
                                                                                </jar>
286
                                                                                <jar destfile="${project.build.directory}/${project.build.finalName}-impl.jar"
287
                                                                                        update="true">
288
                                                                                        <fileset dir="${basedir}/resources/impl" />
289
                                                                                </jar>
290
                                                                        </tasks>
291
                                                                </configuration>
292
                                                        </execution>
293
                                                </executions>
294
                                        </plugin>
295
                                        <plugin>
296
                                                <groupId>org.apache.maven.plugins</groupId>
297
                                                <artifactId>maven-surefire-plugin</artifactId>
298
                                                <configuration>
299
                                                        <additionalClasspathElements>
300
                                                                <additionalClasspathElement>${basedir}/resources/api</additionalClasspathElement>
301
                                                                <additionalClasspathElement>${basedir}/resources/impl</additionalClasspathElement>
302
                                                        </additionalClasspathElements>
303
                                                </configuration>
304
                                        </plugin>
305
                                        
306
                                </plugins>
307
                        </build>
308
                </profile>
309
                <profile>
310
                        <id>eclipse-project</id>
311
                        <build>
312
                                <defaultGoal>antrun:run</defaultGoal>
313
                                <plugins>
314
                                        <plugin>
315
                                                <artifactId>maven-antrun-plugin</artifactId>
316
                                                <configuration>
317
                                                        <tasks>
318
                                                                <ant antfile="${build-dir}/ant-tasks/eclipse-tasks.xml"
319
                                                                        target="eclipse.all"/>
320
                                                        </tasks>
321
                                                </configuration>
322
                                        </plugin>
323
                                </plugins>
324
                        </build>                                
325
                </profile>                
326
        </profiles>
327
        <reporting>
328
                <plugins>
329
                        <plugin>
330
                                <groupId>org.apache.maven.plugins</groupId>
331
                                <artifactId>maven-javadoc-plugin</artifactId>
332
                                <reportSets>
333
                                        <reportSet>
334
                                                <id>api</id>
335
                                                <configuration>
336
                                                        <subpackages>org.gvsig.fmap.geom</subpackages>
337
                                                        <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>
338
                                                        <name>JavaDoc - API</name>
339
                                                        <destDir>api</destDir>
340
                                                </configuration>
341
                                                <reports>
342
                                                        <report>javadoc</report>
343
                                                </reports>
344
                                        </reportSet>
345
                                        <reportSet>
346
                                                <id>operation</id>
347
                                                <configuration>
348
                                                        <subpackages>org.gvsig.fmap.geom.operation</subpackages>
349
                                                        <name>JavaDoc - Geometry operations</name>
350
                                                        <destDir>operation</destDir>
351
                                                </configuration>
352
                                                <reports>
353
                                                        <report>javadoc</report>
354
                                                </reports>
355
                                        </reportSet>
356
                                        <reportSet>
357
                                                <id>impl</id>
358
                                                <configuration>
359
                                                        <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>
360
                                                        <name>JavaDoc - Default implementation</name>
361
                                                        <destDir>impl</destDir>
362
                                                </configuration>
363
                                                <reports>
364
                                                        <report>javadoc</report>
365
                                                </reports>
366
                                        </reportSet>
367
                                </reportSets>
368
                        </plugin>
369
                </plugins>
370
        </reporting>
371
</project>