Statistics
| Revision:

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

History | View | Annotate | Download (15 KB)

1
<?xml version="1.0" encoding="UTF-8"?>
2

    
3
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4
    <modelVersion>4.0.0</modelVersion>
5
    <artifactId>org.gvsig.projection</artifactId>
6
    <packaging>jar</packaging>
7
    <version>2.0.1-SNAPSHOT</version>
8
    <name>libProjection</name>
9
    <url>https://devel.gvsig.org/redmine/projects/gvsig-desktop</url>
10
    <parent>
11
        <groupId>org.gvsig</groupId>
12
        <artifactId>gvsig-base-library-pom</artifactId>
13
        <version>2.0.2-SNAPSHOT</version>
14
    </parent>
15
    
16
    <scm>
17
        <connection>scm:svn:https://devel.gvsig.org/svn/gvsig-desktop/branches/v2_0_0_prep/libraries/libProjection/</connection>
18
        <developerConnection>scm:svn:https://devel.gvsig.org/svn/gvsig-desktop/branches/v2_0_0_prep/libraries/libProjection/</developerConnection>
19
        <url>https://devel.gvsig.org/svn/gvsig-desktop/branches/v2_0_0_prep/libraries/libProjection</url>
20
    </scm>
21
    
22
    <properties>
23
        <build-dir>${basedir}/../build</build-dir>
24
        <eclipse.project.name>libProjection</eclipse.project.name>
25
    </properties>
26
    <dependencies>
27
        <dependency>
28
            <groupId>org.gvsig</groupId>
29
            <artifactId>org.gvsig.tools.lib</artifactId>
30
            <scope>compile</scope>
31
        </dependency>
32
        <dependency>
33
            <groupId>org.gvsig</groupId>
34
            <artifactId>org.gvsig.i18n</artifactId>
35
            <scope>compile</scope>
36
        </dependency>
37
        <dependency>
38
            <groupId>org.opengis</groupId>
39
            <artifactId>geoapi</artifactId>
40
            <scope>compile</scope>
41
        </dependency>
42
        <dependency>
43
            <groupId>org.geotools</groupId>
44
            <artifactId>gt2-legacy</artifactId>
45
            <scope>compile</scope>
46
        </dependency>
47
        <dependency>
48
            <groupId>org.geotools</groupId>
49
            <artifactId>gt2-main</artifactId>
50
            <scope>compile</scope>
51
        </dependency>
52
        <dependency>
53
            <groupId>org.geotools</groupId>
54
            <artifactId>gt2-referencing</artifactId>
55
            <scope>compile</scope>
56
        </dependency>
57
        <dependency>
58
            <groupId>geojava</groupId>
59
            <artifactId>geojava</artifactId>
60
            <scope>compile</scope>
61
        </dependency>
62
        <dependency>
63
            <groupId>javax.media</groupId>
64
            <artifactId>jai_core</artifactId>
65
            <scope>compile</scope>
66
        </dependency>
67
        <dependency>
68
            <groupId>javax.media</groupId>
69
            <artifactId>jai_codec</artifactId>
70
        </dependency>
71
    </dependencies>
72

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

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

    
198
        <profile>
199
            <id>cdc</id>
200
            <activation>
201
                <activeByDefault>false</activeByDefault>
202
            </activation>
203

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

    
261
        </profile>
262

    
263
        <profile>
264
            <id>eclipse-project</id>
265
            <build>
266
                <defaultGoal>antrun:run</defaultGoal>
267
                <plugins>
268
                    <plugin>
269
                        <artifactId>maven-antrun-plugin</artifactId>
270
                        <configuration>
271
                            <tasks>
272
                                <ant antfile="${build-dir}/ant-tasks/eclipse-tasks.xml" target="eclipse.all" />
273
                            </tasks>
274
                        </configuration>
275
                    </plugin>
276
                </plugins>
277
            </build>
278
        </profile>
279
    </profiles>
280

    
281
    <reporting>
282
        <plugins>
283
            <plugin>
284
                <groupId>org.apache.maven.plugins</groupId>
285
                <artifactId>maven-javadoc-plugin</artifactId>
286
                <reportSets>
287
                    <reportSet>
288
                        <id>api</id>
289
                        <configuration>
290
                            <excludePackageNames>org.cresques.ui:org.cresques.impl</excludePackageNames>
291
                            <name>Javadoc: API</name>
292
                            <destDir>apidoc</destDir>
293
                            <windowtitle>API Documentation</windowtitle>
294
                        </configuration>
295
                        <reports>
296
                            <report>javadoc</report>
297
                        </reports>
298
                    </reportSet>
299
                    <reportSet>
300
                        <id>ui</id>
301
                        <configuration>
302
                            <doctitle>${project.name} ${project.version} User
303
                                interface</doctitle>
304
                            <subpackages>org.cresques.ui</subpackages>
305
                            <name>Javadoc: UI</name>
306
                            <destDir>uidoc</destDir>
307
                            <windowtitle>User interface Documentation</windowtitle>
308
                            <links>
309
                                <link>../apidoc/</link>
310
                            </links>
311
                        </configuration>
312
                        <reports>
313
                            <report>javadoc</report>
314
                        </reports>
315
                    </reportSet>
316
                    <reportSet>
317
                        <id>cresques-impl</id>
318
                        <configuration>
319
                            <doctitle>${project.name} ${project.version}
320
                                Cresques implementation</doctitle>
321
                            <subpackages>org.cresques.impl</subpackages>
322
                            <name>Javadoc: Cresques impl</name>
323
                            <destDir>cresquesdoc</destDir>
324
                            <windowtitle>Cresques implementation Documentation</windowtitle>
325
                            <links>
326
                                <link>../apidoc/</link>
327
                            </links>
328
                        </configuration>
329
                        <reports>
330
                            <report>javadoc</report>
331
                        </reports>
332
                    </reportSet>
333
                </reportSets>
334
            </plugin>
335
        </plugins>
336
    </reporting>
337

    
338
</project>