Statistics
| Revision:

root / branches / v2_0_0_prep / libraries / libFMap_geometries / pom.xml @ 31333

History | View | Annotate | Download (10.6 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
        <dependencies>
20
                <dependency>
21
                        <groupId>org.gvsig</groupId>
22
                        <artifactId>org.gvsig.tools</artifactId>
23
                        <version>2.0-SNAPSHOT</version>
24
                </dependency>
25

    
26
                <dependency>
27
                        <groupId>org.gvsig.legacy</groupId>
28
                        <artifactId>jts</artifactId>
29
                        <version>gvsig</version>
30
                </dependency>
31
        </dependencies>
32

    
33
        <properties>
34
                <build-dir>${basedir}/../build</build-dir>
35
        </properties>
36

    
37
        <build>
38
                <sourceDirectory>src</sourceDirectory>
39
                <testSourceDirectory>src-test</testSourceDirectory>
40
        </build>
41

    
42

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

    
170
                                </plugins>
171
                        </build>
172
                </profile>
173

    
174
                <profile>
175
                        <id>cdc</id>
176
                        <activation>
177
                                <activeByDefault>false</activeByDefault>
178
                        </activation>
179
                        <dependencies>
180
                                <dependency>
181
                                        <groupId>org.gvsig</groupId>
182
                                        <artifactId>org.gvsig.projection</artifactId>
183
                                        <version>2.0-SNAPSHOT</version>
184
                                </dependency>
185
                        </dependencies>
186
                        <build>
187
                                <plugins>
188
                                        <plugin>
189
                                                <groupId>org.apache.maven.plugins</groupId>
190
                                                <artifactId>maven-compiler-plugin</artifactId>
191
                                                <configuration>
192
                                                        <excludes>
193
                                                                <exclude>**/operation/fromwkb/*</exclude>
194
                                                                <exclude>**/operation/towkb/*</exclude>
195
                                                                <exclude>**/operation/impl/*</exclude>
196
                                                        </excludes>
197

    
198
                                                        <testExcludes>
199
                                                                <exclude>**/fmap/geom/*</exclude>
200
                                                                <exclude>**/geom/operation/**</exclude>
201
                                                        </testExcludes>
202

    
203
                                                </configuration>
204
                                        </plugin>
205
                                        <plugin>
206
                                                <groupId>org.apache.maven.plugins</groupId>
207
                                                <artifactId>maven-javadoc-plugin</artifactId>
208
                                        </plugin>
209
                                        <plugin>
210
                                                <groupId>org.apache.maven.plugins</groupId>
211
                                                <artifactId>maven-jar-plugin</artifactId>
212
                                                <configuration>
213

    
214
                                                        <includes>
215
                                                                <include>**/**</include>
216
                                                        </includes>
217
                                                        <excludes>
218
                                                                <exclude>**/operation/fromwkb/*</exclude>
219
                                                                <exclude>**/operation/towkb/*</exclude>
220
                                                                <exclude>**/operation/impl/*</exclude>
221
                                                        </excludes>
222
                                                </configuration>
223
                                                <executions>
224
                                                        <execution>
225
                                                                <id>impl</id>
226
                                                                <phase>package</phase>
227
                                                                <goals>
228
                                                                        <goal>jar</goal>
229
                                                                </goals>
230
                                                                <configuration>
231
                                                                        <classifier>impl</classifier>
232
                                                                        <includes>
233
                                                                                <include>**/impl/**</include>
234
                                                                        </includes>
235
                                                                        <excludes>
236
                                                                                <exclude>**/operation/impl/**</exclude>
237
                                                                        </excludes>
238
                                                                </configuration>
239
                                                        </execution>
240

    
241
                                                        <execution>
242
                                                                <id>operation</id>
243
                                                                <phase>package</phase>
244
                                                                <goals>
245
                                                                        <goal>jar</goal>
246
                                                                </goals>
247
                                                                <configuration>
248
                                                                        <classifier>operation</classifier>
249
                                                                        <includes>
250
                                                                                <include>**/operation/*/*</include>
251
                                                                        </includes>
252
                                                                        <excludes>
253
                                                                                <exclude>**/operation/fromwkb/*</exclude>
254
                                                                                <exclude>**/operation/towkb/*</exclude>
255
                                                                        </excludes>
256
                                                                </configuration>
257
                                                        </execution>
258

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