Statistics
| Revision:

svn-gvsig-desktop / branches / v2_0_0_prep / libraries / libProjection / pom.xml @ 32264

History | View | Annotate | Download (10.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"
4
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
5
                      http://maven.apache.org/xsd/maven-4.0.0.xsd">
6
        <modelVersion>4.0.0</modelVersion>
7
        <groupId>org.gvsig</groupId>
8
        <artifactId>org.gvsig.projection</artifactId>
9
        <packaging>jar</packaging>
10
        <version>2.0-SNAPSHOT</version>
11
        <name>libProjection</name>
12
        <url>http://gvsig.org</url>
13
        <parent>
14
                <groupId>org.gvsig</groupId>
15
                <artifactId>gvsig-base-library-pom</artifactId>
16
                <version>2.0-SNAPSHOT</version>
17
        </parent>        
18
        <distributionManagement>
19
                <site>
20
                        <id>gvsig-repository</id>
21
                        <url>${site-repository}/</url>
22
                </site>
23
        </distributionManagement>
24

    
25
        <properties>
26
                <build-dir>${basedir}/../build</build-dir>
27
        </properties>
28
        <dependencies>
29
                <dependency>
30
                        <groupId>org.gvsig</groupId>
31
                        <artifactId>org.gvsig.i18n</artifactId>
32
                        <version>2.0-SNAPSHOT</version>
33
                </dependency>
34
                <dependency>
35
                        <groupId>org.gvsig</groupId>
36
                        <artifactId>org.gvsig.tools.lib</artifactId>
37
                </dependency>
38
        </dependencies>
39
        
40
          <build>
41
                <sourceDirectory>src</sourceDirectory>
42
                <testSourceDirectory>src-test</testSourceDirectory>
43
          </build>        
44
        
45
          <profiles>
46
                <profile>
47
                  <id>se</id>
48
                  <activation>
49
                    <activeByDefault>true</activeByDefault>
50
                  </activation>
51
                  
52
                        <dependencies>        
53
                                <dependency>
54
                                        <groupId>org.opengis</groupId>
55
                                    <artifactId>geoapi</artifactId>
56
                                        <optional>true</optional>
57
                                </dependency>
58
                                <dependency>
59
                                        <groupId>org.geotools</groupId>
60
                                        <artifactId>gt2-legacy</artifactId>
61
                                        <optional>true</optional>
62
                                </dependency>
63
                                <dependency>
64
                                        <groupId>org.geotools</groupId>
65
                                        <artifactId>gt2-main</artifactId>
66
                                        <optional>true</optional>
67
                                </dependency>
68
                                <dependency>
69
                                        <groupId>geojava</groupId>
70
                                        <artifactId>geojava</artifactId>
71
                                        <optional>true</optional>
72
                                </dependency>
73
                                <dependency>
74
                                        <groupId>javax.media</groupId>
75
                                        <artifactId>jai_core</artifactId>
76
                                        <optional>true</optional>
77
                                </dependency>
78
                                <dependency>
79
                                        <groupId>javax.media</groupId>
80
                                        <artifactId>jai_codec</artifactId>
81
                                        <optional>true</optional>
82
                                </dependency>
83
                        </dependencies>
84
                        <build>
85
                                <resources>
86
                                    <resource>
87
                                                <directory>config</directory>
88
                                        </resource>
89
                                        <resource>
90
                                                <directory>images</directory>
91
                                        </resource>
92
                                </resources>
93
                                
94
                                <plugins>
95
                                        <plugin>
96
                                                <groupId>org.apache.maven.plugins</groupId>
97
                                                <artifactId>maven-compiler-plugin</artifactId>
98
                                                <configuration>
99
                                                        <source>1.4</source>
100
                                                        <target>1.4</target>
101
                                                        <!-- put your configurations here -->
102
                                                        <encoding>ISO-8859-1</encoding>
103
                                                </configuration>
104
                                        </plugin>
105
                                        <plugin>
106
                                                <groupId>org.apache.maven.plugins</groupId>
107
                                                <artifactId>maven-jar-plugin</artifactId>
108
                                                <configuration>
109
                                                        <excludes>
110
                                                                <exclude>**/org/cresques/impl/**</exclude>
111
                                                                <exclude>**/org/cresques/ui/**</exclude>
112
                                                                <exclude>**/org/cresques/resources/**</exclude>
113
                                                                <exclude>*.gif</exclude>
114
                                                        </excludes>
115
                                                </configuration>
116
                                                <executions>
117
                                                        <execution>
118
                                                                <id>cresques-ui</id>
119
                                                                <phase>package</phase>
120
                                                                <goals>
121
                                                                        <goal>jar</goal>
122
                                                                </goals>
123
                                                                <configuration>
124
                                                                        <classifier>cresques-ui</classifier>
125
                                                                        <excludes>
126
                                                                                <exclude>NONE</exclude>
127
                                                                        </excludes>
128
                                                                        <includes>
129
                                                                                <include>**/org/cresques/ui/**</include>
130
                                                                                <include>**/org/cresques/resources/**</include>
131
                                                                                <include>*.gif</include>
132
                                                                        </includes>
133
                                                                <!--        <finalName>org.cresques.ui</finalName>  -->
134
                                                                </configuration>
135
                                                        </execution>
136
                                                        <execution>
137
                                                                <id>cresques-cts-impl</id>
138
                                                                <phase>package</phase>
139
                                                                <goals>
140
                                                                        <goal>jar</goal>
141
                                                                </goals>
142
                                                                <configuration>
143
                                                                        <classifier>cresques-impl</classifier>
144
                                                                        <excludes>
145
                                                                                <exclude>**/org/cresques/resources/**</exclude>
146
                                                                                <exclude>*.gif</exclude>
147
                                                                        </excludes>
148
                                                                        <includes>
149
                                                                                <include>**/org/cresques/impl/**</include>
150
                                                                        </includes>
151
                                                                <!-- <finalName>org.cresques.cts</finalName> -->
152
                                                                </configuration>
153
                                                        </execution>
154
                                                </executions>
155
                                        </plugin>
156
                                        <plugin>
157
                                                <artifactId>maven-antrun-plugin</artifactId>
158
                                                <executions>
159
                                                        <execution>
160
                                                                <id>services</id>
161
                                                                <phase>package</phase>
162
                                                                <goals>
163
                                                                        <goal>run</goal>
164
                                                                </goals>
165
                                                                <configuration>
166
                                                                        <tasks>
167
                                                                                <jar destfile="${project.build.directory}/${project.build.finalName}.jar"
168
                                                                                        update="true">
169
                                                                                        <fileset dir="${basedir}/resources/api" />
170
                                                                                </jar>
171
                                                                                <jar destfile="${project.build.directory}/${project.build.finalName}-cresques-impl.jar"
172
                                                                                        update="true">
173
                                                                                        <fileset dir="${basedir}/resources/cresques" />
174
                                                                                </jar>
175
                                                                        </tasks>
176
                                                                </configuration>
177
                                                        </execution>
178
                                                </executions>
179
                                        </plugin>
180
                                        <plugin>
181
                                                <groupId>org.apache.maven.plugins</groupId>
182
                                                <artifactId>maven-surefire-plugin</artifactId>
183
                                                <configuration>
184
                                                        <additionalClasspathElements>
185
                                                                <additionalClasspathElement>${basedir}/resources/api</additionalClasspathElement>
186
                                                                <additionalClasspathElement>${basedir}/resources/cresques</additionalClasspathElement>
187
                                                        </additionalClasspathElements>
188
                                                </configuration>
189
                                        </plugin>
190
                                </plugins>
191
                        </build>
192
                </profile>
193
                
194
                <profile>
195
              <id>cdc</id>
196
                  <activation>
197
                    <activeByDefault>false</activeByDefault>
198
                  </activation>
199
                  
200
                  <build>
201
                                <plugins>
202
                                        <plugin>
203
                                                <groupId>org.apache.maven.plugins</groupId>
204
                                                <artifactId>maven-compiler-plugin</artifactId>
205
                                                <configuration>
206
                                                        <excludes>
207
                                                                <exclude>**/org/cresques/impl/**</exclude>
208
                                                                <exclude>**/org/cresques/ui/**</exclude>
209
                                                        </excludes>
210
                                                        <testExcludes>
211
                                                                <exclude>**/org/cresques/impl/**</exclude>
212
                                                                <exclude>**/org/cresques/ui/**</exclude>
213
                                                        </testExcludes>
214
                                                </configuration>
215
                                        </plugin>
216
                                      <plugin>
217
                                                <groupId>org.apache.maven.plugins</groupId>
218
                                                <artifactId>maven-jar-plugin</artifactId>
219
                                                <configuration>
220
                                                        <excludes>
221
                                                                <exclude>**/org/cresques/impl/**</exclude>
222
                                                                <exclude>**/org/cresques/ui/**</exclude>
223
                                                        </excludes>
224
                                                </configuration>
225
                                        </plugin>
226
                                        <plugin>
227
                                                <artifactId>maven-antrun-plugin</artifactId>
228
                                                <executions>
229
                                                        <execution>
230
                                                                <id>services</id>
231
                                                                <phase>package</phase>
232
                                                                <goals>
233
                                                                        <goal>run</goal>
234
                                                                </goals>
235
                                                                <configuration>
236
                                                                        <tasks>
237
                                                                                <jar destfile="${project.build.directory}/${project.build.finalName}.jar"
238
                                                                                        update="true">
239
                                                                                        <fileset dir="${basedir}/resources/api" />
240
                                                                                </jar>
241
                                                                        </tasks>
242
                                                                </configuration>
243
                                                        </execution>
244
                                                </executions>
245
                                        </plugin>
246
                                        <plugin>
247
                                                <groupId>org.apache.maven.plugins</groupId>
248
                                                <artifactId>maven-surefire-plugin</artifactId>
249
                                                <configuration>
250
                                                        <additionalClasspathElements>
251
                                                                <additionalClasspathElement>${basedir}/resources/api</additionalClasspathElement>
252
                                                        </additionalClasspathElements>
253
                                                </configuration>
254
                                        </plugin>
255
                                </plugins>
256
                        </build>
257
                  
258
                </profile>
259
                
260
                <profile>
261
                        <id>eclipse-project</id>
262
                        <build>
263
                                <defaultGoal>antrun:run</defaultGoal>
264
                                <plugins>
265
                                        <plugin>
266
                                                <artifactId>maven-antrun-plugin</artifactId>
267
                                                <configuration>
268
                                                        <tasks>
269
                                                                <ant antfile="${build-dir}/ant-tasks/eclipse-tasks.xml"
270
                                                                        target="eclipse.all"/>
271
                                                        </tasks>
272
                                                </configuration>
273
                                        </plugin>
274
                                </plugins>
275
                        </build>                                
276
                </profile>                                
277
        </profiles>
278
        
279
        <reporting>
280
                <plugins>
281
                        <plugin>
282
                                <groupId>org.apache.maven.plugins</groupId>
283
                                <artifactId>maven-javadoc-plugin</artifactId>
284
                                <reportSets>
285
                                        <reportSet>
286
                                                <id>api</id>
287
                                                <configuration>
288
                                                        <excludePackageNames>org.cresques.ui:org.cresques.impl</excludePackageNames>
289
                                                        <name>Javadoc: API</name>
290
                                                        <destDir>apidoc</destDir>
291
                                                        <windowtitle>API Documentation</windowtitle>
292
                                                        <links>
293
                                                                <link>http://java.sun.com/j2se/1.5.0/docs/api/</link>
294
                                                                <link>http://www.slf4j.org/api/</link>
295
                                                                <link>${site-repository}/org.gvsig.tools/2.0.0/apidocs/</link>
296
                                                                <link>${site-repository}/org.gvsig.i18n/2.0.0/apidocs/</link>
297
                                                                <link>${site-repository}/org.gvsig.metadata/2.0.0/apidocs/</link>
298
                                                                <link>${site-repository}/org.gvsig.compat/2.0.0/apidocs/</link>
299
                                                        </links>
300
                                                </configuration>
301
                                                <reports>
302
                                                        <report>javadoc</report>
303
                                                </reports>
304
                                        </reportSet>
305
                                        <reportSet>
306
                                                <id>ui</id>
307
                                                <configuration>
308
                                                        <doctitle>${project.name} ${project.version} User interface</doctitle>
309
                                                        <subpackages>org.cresques.ui</subpackages>
310
                                                        <name>Javadoc: UI</name>
311
                                                        <destDir>uidoc</destDir>
312
                                                        <windowtitle>User interface Documentation</windowtitle>
313
                                                        <links>
314
                                                                <link>http://java.sun.com/j2se/1.5.0/docs/api/</link>
315
                                                                <link>http://www.slf4j.org/api/</link>
316
                                                                <link>../apidoc/</link>
317
                                                                <link>${site-repository}/org.gvsig.tools/2.0.0/apidocs/</link>
318
                                                                <link>${site-repository}/org.gvsig.i18n/2.0.0/apidocs/</link>
319
                                                                <link>${site-repository}/org.gvsig.metadata/2.0.0/apidocs/</link>
320
                                                                <link>${site-repository}/org.gvsig.compat/2.0.0/apidocs/</link>
321
                                                        </links>
322
                                                </configuration>
323
                                                <reports>
324
                                                        <report>javadoc</report>
325
                                                </reports>
326
                                        </reportSet>
327
                                        <reportSet>
328
                                                <id>cresques-impl</id>
329
                                                <configuration>
330
                                                        <doctitle>${project.name} ${project.version} Cresques implementation</doctitle>
331
                                                        <subpackages>org.cresques.impl</subpackages>
332
                                                        <name>Javadoc: Cresques impl</name>
333
                                                        <destDir>cresquesdoc</destDir>
334
                                                        <windowtitle>Cresques implementation Documentation</windowtitle>
335
                                                        <links>
336
                                                                <link>http://java.sun.com/j2se/1.5.0/docs/api/</link>
337
                                                                <link>http://www.slf4j.org/api/</link>
338
                                                                <link>../apidoc/</link>
339
                                                                <link>${site-repository}/org.gvsig.tools/2.0.0/apidocs/</link>
340
                                                                <link>${site-repository}/org.gvsig.i18n/2.0.0/apidocs/</link>
341
                                                                <link>${site-repository}/org.gvsig.metadata/2.0.0/apidocs/</link>
342
                                                                <link>${site-repository}/org.gvsig.compat/2.0.0/apidocs/</link>
343
                                                        </links>
344
                                                </configuration>
345
                                                <reports>
346
                                                        <report>javadoc</report>
347
                                                </reports>
348
                                        </reportSet>
349
                                </reportSets>
350
                        </plugin>
351
                </plugins>
352
        </reporting>
353
        
354
</project>