Statistics
| Revision:

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

History | View | Annotate | Download (15.4 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
    <artifactId>org.gvsig.projection</artifactId>
8
    <packaging>jar</packaging>
9
    <version>2.0-SNAPSHOT</version>
10
    <name>libProjection</name>
11
    <url>https://devel.gvsig.org/redmine/projects/gvsig-desktop</url>
12
    <parent>
13
        <groupId>org.gvsig</groupId>
14
        <artifactId>gvsig-base-library-pom</artifactId>
15
        <version>2.0</version>
16
    </parent>
17
    
18
    <scm>
19
        <connection>scm:svn:https://devel.gvsig.org/svn/gvsig-desktop/branches/v2_0_0_prep/libraries/${artifactId}/</connection>
20
        <developerConnection>scm:svn:https://devel.gvsig.org/svn/gvsig-desktop/branches/v2_0_0_prep/libraries/${artifactId}/</developerConnection>
21
        <url>https://devel.gvsig.org/svn/gvsig-desktop/branches/v2_0_0_prep/libraries/${artifactId}</url>
22
    </scm>
23
    
24
    <properties>
25
        <build-dir>${basedir}/../build</build-dir>
26
        <eclipse.project.name>libProjection</eclipse.project.name>
27
    </properties>
28
    <dependencies>
29
        <dependency>
30
            <groupId>org.gvsig</groupId>
31
            <artifactId>org.gvsig.tools.lib</artifactId>
32
            <scope>compile</scope>
33
        </dependency>
34
        <dependency>
35
            <groupId>org.gvsig</groupId>
36
            <artifactId>org.gvsig.i18n</artifactId>
37
            <scope>compile</scope>
38
        </dependency>
39
        <dependency>
40
            <groupId>org.opengis</groupId>
41
            <artifactId>geoapi</artifactId>
42
            <scope>compile</scope>
43
        </dependency>
44
        <dependency>
45
            <groupId>org.geotools</groupId>
46
            <artifactId>gt2-legacy</artifactId>
47
            <scope>compile</scope>
48
        </dependency>
49
        <dependency>
50
            <groupId>org.geotools</groupId>
51
            <artifactId>gt2-main</artifactId>
52
            <scope>compile</scope>
53
        </dependency>
54
        <dependency>
55
            <groupId>org.geotools</groupId>
56
            <artifactId>gt2-referencing</artifactId>
57
            <scope>compile</scope>
58
        </dependency>
59
        <dependency>
60
            <groupId>geojava</groupId>
61
            <artifactId>geojava</artifactId>
62
            <scope>compile</scope>
63
        </dependency>
64
        <dependency>
65
            <groupId>javax.media</groupId>
66
            <artifactId>jai_core</artifactId>
67
            <scope>compile</scope>
68
        </dependency>
69
        <dependency>
70
            <groupId>javax.media</groupId>
71
            <artifactId>jai_codec</artifactId>
72
        </dependency>
73
    </dependencies>
74

    
75
    <build>
76
        <sourceDirectory>src</sourceDirectory>
77
        <testSourceDirectory>src-test</testSourceDirectory>
78
        <plugins>
79
            <!-- TODO: MAKE TESTS WORK AND REMOVE THIS OPTION -->
80
            <plugin>
81
                <groupId>org.apache.maven.plugins</groupId>
82
                <artifactId>maven-surefire-plugin</artifactId>
83
                <configuration>
84
                    <skipTests>true</skipTests>
85
                </configuration>
86
            </plugin>
87
            <plugin>
88
              <artifactId>maven-release-plugin</artifactId>
89
              <version>2.0</version>
90
              <configuration>
91
                <tagBase>https://devel.gvsig.org/svn/gvsig-desktop/tags/libraries/${artifactId}</tagBase>
92
              </configuration>
93
            </plugin>  
94
        </plugins>
95
    </build>
96

    
97
    <profiles>
98
        <profile>
99
            <id>se</id>
100
            <activation>
101
                <activeByDefault>true</activeByDefault>
102
            </activation>
103
            <build>
104
                <resources>
105
                    <resource>
106
                        <directory>config</directory>
107
                    </resource>
108
                    <resource>
109
                        <directory>images</directory>
110
                    </resource>
111
                </resources>
112
                <plugins>
113
                    <plugin>
114
                        <groupId>org.apache.maven.plugins</groupId>
115
                        <artifactId>maven-jar-plugin</artifactId>
116
                        <configuration>
117
                            <excludes>
118
                                <exclude>**/org/cresques/impl/**</exclude>
119
                                <exclude>**/org/cresques/ui/**</exclude>
120
                                <exclude>**/org/cresques/resources/**</exclude>
121
                                <exclude>*.gif</exclude>
122
                            </excludes>
123
                        </configuration>
124
                        <executions>
125
                            <execution>
126
                                <id>cresques-ui</id>
127
                                <phase>package</phase>
128
                                <goals>
129
                                    <goal>jar</goal>
130
                                </goals>
131
                                <configuration>
132
                                    <classifier>cresques-ui</classifier>
133
                                    <excludes>
134
                                        <exclude>NONE</exclude>
135
                                    </excludes>
136
                                    <includes>
137
                                        <include>**/org/cresques/ui/**</include>
138
                                        <include>**/org/cresques/resources/**</include>
139
                                        <include>*.gif</include>
140
                                    </includes>
141
                                    <!-- <finalName>org.cresques.ui</finalName> -->
142
                                </configuration>
143
                            </execution>
144
                            <execution>
145
                                <id>cresques-cts-impl</id>
146
                                <phase>package</phase>
147
                                <goals>
148
                                    <goal>jar</goal>
149
                                </goals>
150
                                <configuration>
151
                                    <classifier>cresques-impl</classifier>
152
                                    <excludes>
153
                                        <exclude>**/org/cresques/resources/**</exclude>
154
                                        <exclude>*.gif</exclude>
155
                                    </excludes>
156
                                    <includes>
157
                                        <include>**/org/cresques/impl/**</include>
158
                                    </includes>
159
                                    <!-- <finalName>org.cresques.cts</finalName> -->
160
                                </configuration>
161
                            </execution>
162
                        </executions>
163
                    </plugin>
164
                    <plugin>
165
                        <artifactId>maven-antrun-plugin</artifactId>
166
                        <executions>
167
                            <execution>
168
                                <id>services</id>
169
                                <phase>package</phase>
170
                                <goals>
171
                                    <goal>run</goal>
172
                                </goals>
173
                                <configuration>
174
                                    <tasks>
175
                                        <jar
176
                                            destfile="${project.build.directory}/${project.build.finalName}.jar"
177
                                            update="true">
178
                                            <fileset dir="${basedir}/resources/api" />
179
                                        </jar>
180
                                        <jar
181
                                            destfile="${project.build.directory}/${project.build.finalName}-cresques-impl.jar"
182
                                            update="true">
183
                                            <fileset
184
                                                dir="${basedir}/resources/cresques" />
185
                                        </jar>
186
                                    </tasks>
187
                                </configuration>
188
                            </execution>
189
                        </executions>
190
                    </plugin>
191
                    <plugin>
192
                        <groupId>org.apache.maven.plugins</groupId>
193
                        <artifactId>maven-surefire-plugin</artifactId>
194
                        <configuration>
195
                            <additionalClasspathElements>
196
                                <additionalClasspathElement>${basedir}/resources/api</additionalClasspathElement>
197
                                <additionalClasspathElement>${basedir}/resources/cresques</additionalClasspathElement>
198
                            </additionalClasspathElements>
199
                        </configuration>
200
                    </plugin>
201
                </plugins>
202
            </build>
203
        </profile>
204

    
205
        <profile>
206
            <id>cdc</id>
207
            <activation>
208
                <activeByDefault>false</activeByDefault>
209
            </activation>
210

    
211
            <build>
212
                <plugins>
213
                    <plugin>
214
                        <groupId>org.apache.maven.plugins</groupId>
215
                        <artifactId>maven-compiler-plugin</artifactId>
216
                        <configuration>
217
                            <excludes>
218
                                <exclude>**/org/cresques/impl/**</exclude>
219
                                <exclude>**/org/cresques/ui/**</exclude>
220
                            </excludes>
221
                            <testExcludes>
222
                                <exclude>**/org/cresques/impl/**</exclude>
223
                                <exclude>**/org/cresques/ui/**</exclude>
224
                            </testExcludes>
225
                        </configuration>
226
                    </plugin>
227
                    <plugin>
228
                        <groupId>org.apache.maven.plugins</groupId>
229
                        <artifactId>maven-jar-plugin</artifactId>
230
                        <configuration>
231
                            <excludes>
232
                                <exclude>**/org/cresques/impl/**</exclude>
233
                                <exclude>**/org/cresques/ui/**</exclude>
234
                            </excludes>
235
                        </configuration>
236
                    </plugin>
237
                    <plugin>
238
                        <artifactId>maven-antrun-plugin</artifactId>
239
                        <executions>
240
                            <execution>
241
                                <id>services</id>
242
                                <phase>package</phase>
243
                                <goals>
244
                                    <goal>run</goal>
245
                                </goals>
246
                                <configuration>
247
                                    <tasks>
248
                                        <jar
249
                                            destfile="${project.build.directory}/${project.build.finalName}.jar"
250
                                            update="true">
251
                                            <fileset dir="${basedir}/resources/api" />
252
                                        </jar>
253
                                    </tasks>
254
                                </configuration>
255
                            </execution>
256
                        </executions>
257
                    </plugin>
258
                    <plugin>
259
                        <groupId>org.apache.maven.plugins</groupId>
260
                        <artifactId>maven-surefire-plugin</artifactId>
261
                        <configuration>
262
                            <additionalClasspathElements>
263
                                <additionalClasspathElement>${basedir}/resources/api</additionalClasspathElement>
264
                            </additionalClasspathElements>
265
                        </configuration>
266
                    </plugin>
267
                </plugins>
268
            </build>
269

    
270
        </profile>
271

    
272
        <profile>
273
            <id>eclipse-project</id>
274
            <build>
275
                <defaultGoal>antrun:run</defaultGoal>
276
                <plugins>
277
                    <plugin>
278
                        <artifactId>maven-antrun-plugin</artifactId>
279
                        <configuration>
280
                            <tasks>
281
                                <ant antfile="${build-dir}/ant-tasks/eclipse-tasks.xml"
282
                                    target="eclipse.all" />
283
                            </tasks>
284
                        </configuration>
285
                    </plugin>
286
                </plugins>
287
            </build>
288
        </profile>
289
    </profiles>
290

    
291
    <reporting>
292
        <plugins>
293
            <plugin>
294
                <groupId>org.apache.maven.plugins</groupId>
295
                <artifactId>maven-javadoc-plugin</artifactId>
296
                <reportSets>
297
                    <reportSet>
298
                        <id>api</id>
299
                        <configuration>
300
                            <excludePackageNames>org.cresques.ui:org.cresques.impl</excludePackageNames>
301
                            <name>Javadoc: API</name>
302
                            <destDir>apidoc</destDir>
303
                            <windowtitle>API Documentation</windowtitle>
304
                        </configuration>
305
                        <reports>
306
                            <report>javadoc</report>
307
                        </reports>
308
                    </reportSet>
309
                    <reportSet>
310
                        <id>ui</id>
311
                        <configuration>
312
                            <doctitle>${project.name} ${project.version} User
313
                                interface</doctitle>
314
                            <subpackages>org.cresques.ui</subpackages>
315
                            <name>Javadoc: UI</name>
316
                            <destDir>uidoc</destDir>
317
                            <windowtitle>User interface Documentation</windowtitle>
318
                            <links>
319
                                <link>../apidoc/</link>
320
                            </links>
321
                        </configuration>
322
                        <reports>
323
                            <report>javadoc</report>
324
                        </reports>
325
                    </reportSet>
326
                    <reportSet>
327
                        <id>cresques-impl</id>
328
                        <configuration>
329
                            <doctitle>${project.name} ${project.version}
330
                                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>../apidoc/</link>
337
                            </links>
338
                        </configuration>
339
                        <reports>
340
                            <report>javadoc</report>
341
                        </reports>
342
                    </reportSet>
343
                </reportSets>
344
            </plugin>
345
        </plugins>
346
    </reporting>
347

    
348
</project>