Revision 37815 branches/v2_0_0_prep/libraries/libProjection/pom.xml

View differences:

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

  
3 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
4
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
5 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>
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 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>
19
    </properties>
20
    <dependencies>
21
        <dependency>
22
            <groupId>org.gvsig</groupId>
23
            <artifactId>org.gvsig.tools.lib</artifactId>
24 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>
25
        </dependency>
26
        <dependency>
27
            <groupId>org.gvsig</groupId>
28
            <artifactId>org.gvsig.i18n</artifactId>
29
            <scope>compile</scope>
30
        </dependency>
31
        <dependency>
32
            <groupId>org.opengis</groupId>
33
            <artifactId>geoapi</artifactId>
34
            <scope>compile</scope>
35
        </dependency>
36
        <dependency>
37
            <groupId>org.geotools</groupId>
38
            <artifactId>gt2-legacy</artifactId>
39
            <scope>compile</scope>
40
        </dependency>
41
        <dependency>
42
            <groupId>org.geotools</groupId>
43
            <artifactId>gt2-main</artifactId>
44
            <scope>compile</scope>
45
        </dependency>
46
        <dependency>
47
            <groupId>org.geotools</groupId>
48
            <artifactId>gt2-referencing</artifactId>
49
            <scope>compile</scope>
50
        </dependency>
51
        <dependency>
52
            <groupId>geojava</groupId>
53
            <artifactId>geojava</artifactId>
54
            <scope>compile</scope>
55
        </dependency>
56
        <dependency>
57
            <groupId>javax.media</groupId>
58
            <artifactId>jai_core</artifactId>
59
            <scope>compile</scope>
60
        </dependency>
61
        <dependency>
62
            <groupId>javax.media</groupId>
63
            <artifactId>jai_codec</artifactId>
64
        </dependency>
65
    </dependencies>
66

  
67
    <build>
68
        <sourceDirectory>src</sourceDirectory>
69
        <testSourceDirectory>src-test</testSourceDirectory>
36 70
        <plugins>
37 71
            <!-- TODO: MAKE TESTS WORK AND REMOVE THIS OPTION -->
38 72
            <plugin>
......
42 76
                    <skipTests>true</skipTests>
43 77
                </configuration>
44 78
            </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
	
79
        </plugins>
80
    </build>
81

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

  
190
        <profile>
191
            <id>cdc</id>
192
            <activation>
193
                <activeByDefault>false</activeByDefault>
194
            </activation>
195

  
196
            <build>
197
                <plugins>
198
                    <plugin>
199
                        <groupId>org.apache.maven.plugins</groupId>
200
                        <artifactId>maven-compiler-plugin</artifactId>
201
                        <configuration>
202
                            <excludes>
203
                                <exclude>**/org/cresques/impl/**</exclude>
204
                                <exclude>**/org/cresques/ui/**</exclude>
205
                            </excludes>
206
                            <testExcludes>
207
                                <exclude>**/org/cresques/impl/**</exclude>
208
                                <exclude>**/org/cresques/ui/**</exclude>
209
                            </testExcludes>
210
                        </configuration>
211
                    </plugin>
212
                    <plugin>
213
                        <groupId>org.apache.maven.plugins</groupId>
214
                        <artifactId>maven-jar-plugin</artifactId>
215
                        <configuration>
216
                            <excludes>
217
                                <exclude>**/org/cresques/impl/**</exclude>
218
                                <exclude>**/org/cresques/ui/**</exclude>
219
                            </excludes>
220
                        </configuration>
221
                    </plugin>
222
                    <plugin>
223
                        <artifactId>maven-antrun-plugin</artifactId>
224
                        <executions>
225
                            <execution>
226
                                <id>services</id>
227
                                <phase>package</phase>
228
                                <goals>
229
                                    <goal>run</goal>
230
                                </goals>
231
                                <configuration>
232
                                    <tasks>
233
                                        <jar
234
                                            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
298
                                interface</doctitle>
299
                            <subpackages>org.cresques.ui</subpackages>
300
                            <name>Javadoc: UI</name>
301
                            <destDir>uidoc</destDir>
302
                            <windowtitle>User interface Documentation</windowtitle>
303
                            <links>
304
                                <link>../apidoc/</link>
305
                            </links>
306
                        </configuration>
307
                        <reports>
308
                            <report>javadoc</report>
309
                        </reports>
310
                    </reportSet>
311
                    <reportSet>
312
                        <id>cresques-impl</id>
313
                        <configuration>
314
                            <doctitle>${project.name} ${project.version}
315
                                Cresques implementation</doctitle>
316
                            <subpackages>org.cresques.impl</subpackages>
317
                            <name>Javadoc: Cresques impl</name>
318
                            <destDir>cresquesdoc</destDir>
319
                            <windowtitle>Cresques implementation Documentation</windowtitle>
320
                            <links>
321
                                <link>../apidoc/</link>
322
                            </links>
323
                        </configuration>
324
                        <reports>
325
                            <report>javadoc</report>
326
                        </reports>
327
                    </reportSet>
328
                </reportSets>
329
            </plugin>
330
        </plugins>
331
    </reporting>
332

  
331 333
</project>

Also available in: Unified diff