Statistics
| Revision:

root / branches / v2_0_0_prep / libraries / libProjection / pom.xml @ 37568

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