Revision 38577

View differences:

branches/v2_0_0_prep/frameworks/_fwAndami/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.andami</artifactId>
8
	<packaging>jar</packaging>
9
	<version>2.0-SNAPSHOT</version>
10
	<name>_fwAndami</name>
11
	<description>Plugins and extensions management framework</description>
12
	<parent>
13
		<groupId>org.gvsig</groupId>
14
		<artifactId>gvsig-base-library-pom</artifactId>
15
		<version>2.0-SNAPSHOT</version>
16
	</parent>
17
	<properties>
18
		<andami.lib.dir>${gvsig.install.dir}/lib</andami.lib.dir>
19
		<build-dir>${basedir}/../build</build-dir>
20
		<eclipse.project.name>_fwAndami</eclipse.project.name>
21
	</properties>
22
	<dependencies>
23
		<dependency>
24
			<groupId>org.slf4j</groupId>
25
			<artifactId>slf4j-api</artifactId>
26
			<scope>compile</scope>
27
		</dependency>
28
		<dependency>
29
			<groupId>org.slf4j</groupId>
30
			<artifactId>slf4j-log4j12</artifactId>
31
			<scope>runtime</scope>
32
		</dependency>
33
		<dependency>
34
			<groupId>log4j</groupId>
35
			<artifactId>log4j</artifactId>
36
			<!-- TODO: Change to runtime when everything becomes fully migrated to 
37
				SLF4J -->
38
			<scope>compile</scope>
39
		</dependency>
40
		<dependency>
41
			<groupId>org.gvsig</groupId>
42
			<artifactId>org.gvsig.tools.lib</artifactId>
43
			<scope>compile</scope>
44
		</dependency>
45
		<dependency>
46
			<groupId>org.gvsig</groupId>
47
			<artifactId>org.gvsig.i18n</artifactId>
48
			<scope>compile</scope>
49
		</dependency>
50
		<dependency>
51
			<groupId>org.gvsig</groupId>
52
			<artifactId>org.gvsig.tools.swing.api</artifactId>
53
			<scope>compile</scope>
54
		</dependency>
55
		<dependency>
56
			<groupId>org.gvsig</groupId>
57
			<artifactId>org.gvsig.tools.swing.impl</artifactId>
58
		</dependency>
59
		<dependency>
60
			<groupId>org.gvsig</groupId>
61
			<artifactId>org.gvsig.tools.swing.spi</artifactId>
62
		</dependency>
63
		<dependency>
64
			<groupId>org.gvsig</groupId>
65
			<artifactId>org.gvsig.tools.swing.serv.field</artifactId>
66
		</dependency>
67
		<dependency>
68
			<groupId>org.gvsig</groupId>
69
			<artifactId>org.gvsig.tools.swing.serv.jform</artifactId>
70
		</dependency>
71
		<dependency>
72
			<groupId>org.gvsig</groupId>
73
			<artifactId>org.gvsig.tools.swing.serv.jlist</artifactId>
74
		</dependency>
75
		<dependency>
76
			<groupId>org.gvsig</groupId>
77
			<artifactId>org.gvsig.utils</artifactId>
78
			<scope>compile</scope>
79
		</dependency>
80
		<dependency>
81
			<groupId>org.gvsig</groupId>
82
			<artifactId>org.gvsig.ui</artifactId>
83
			<scope>compile</scope>
84
		</dependency>
85
		<dependency>
86
			<groupId>org.gvsig</groupId>
87
			<artifactId>org.gvsig.installer.lib.api</artifactId>
88
			<scope>compile</scope>
89
		</dependency>
90
		<dependency>
91
			<groupId>org.gvsig</groupId>
92
			<artifactId>org.gvsig.installer.lib.impl</artifactId>
93
		</dependency>
94
		<dependency>
95
			<groupId>org.gvsig</groupId>
96
			<artifactId>org.gvsig.installer.lib.spi</artifactId>
97
		</dependency>
98
		<dependency>
99
			<groupId>org.gvsig</groupId>
100
			<artifactId>org.gvsig.installer.prov.plugin</artifactId>
101
		</dependency>
102
		<dependency>
103
			<groupId>org.gvsig</groupId>
104
			<artifactId>org.gvsig.installer.swing.api</artifactId>
105
			<scope>compile</scope>
106
		</dependency>
107
		<dependency>
108
			<groupId>org.gvsig</groupId>
109
			<artifactId>org.gvsig.installer.swing.impl</artifactId>
110
		</dependency>
111
		<dependency>
112
			<groupId>javax.help</groupId>
113
			<artifactId>javahelp</artifactId>
114
			<scope>compile</scope>
115
		</dependency>
116
		<dependency>
117
			<groupId>jwizardcomponent</groupId>
118
			<artifactId>jwizardcomponent</artifactId>
119
			<scope>compile</scope>
120
		</dependency>
121
		<dependency>
122
			<groupId>com.jgoodies</groupId>
123
			<artifactId>looks</artifactId>
124
		</dependency>
125
		<dependency>
126
			<groupId>xerces</groupId>
127
			<artifactId>xercesImpl</artifactId>
128
		</dependency>
129
		<dependency>
130
			<groupId>castor</groupId>
131
			<artifactId>castor</artifactId>
132
			<scope>compile</scope>
133
		</dependency>
134
		<dependency>
135
			<groupId>net.sf.kxml</groupId>
136
			<artifactId>kxml2</artifactId>
137
			<scope>compile</scope>
138
		</dependency>
139
		<dependency>
140
			<groupId>com.sardak</groupId>
141
			<artifactId>antform</artifactId>
142
			<scope>runtime</scope>
143
		</dependency>
144
		<dependency>
145
			<groupId>ant-contrib</groupId>
146
			<artifactId>ant-contrib</artifactId>
147
			<scope>runtime</scope>
148
		</dependency>
149
		<dependency>
6
    <modelVersion>4.0.0</modelVersion>
7
    <artifactId>org.gvsig.andami</artifactId>
8
    <packaging>jar</packaging>
9
    <version>2.0-SNAPSHOT</version>
10
    <name>_fwAndami</name>
11
    <description>Plugins and extensions management framework</description>
12
    <parent>
13
        <groupId>org.gvsig</groupId>
14
        <artifactId>gvsig-base-library-pom</artifactId>
15
        <version>2.0-SNAPSHOT</version>
16
    </parent>
17
    <properties>
18
        <andami.lib.dir>${gvsig.install.dir}/lib</andami.lib.dir>
19
        <build-dir>${basedir}/../build</build-dir>
20
        <eclipse.project.name>_fwAndami</eclipse.project.name>
21
    </properties>
22
    <dependencies>
23
        <dependency>
24
            <groupId>org.slf4j</groupId>
25
            <artifactId>slf4j-api</artifactId>
26
            <scope>compile</scope>
27
        </dependency>
28
        <dependency>
29
            <groupId>org.slf4j</groupId>
30
            <artifactId>slf4j-log4j12</artifactId>
31
            <scope>runtime</scope>
32
        </dependency>
33
        <dependency>
34
            <groupId>log4j</groupId>
35
            <artifactId>log4j</artifactId>
36
            <!-- TODO: Change to runtime when everything becomes fully migrated to 
37
                SLF4J -->
38
            <scope>compile</scope>
39
        </dependency>
40
        <dependency>
41
            <groupId>org.gvsig</groupId>
42
            <artifactId>org.gvsig.tools.lib</artifactId>
43
            <scope>compile</scope>
44
        </dependency>
45
        <dependency>
46
            <groupId>org.gvsig</groupId>
47
            <artifactId>org.gvsig.i18n</artifactId>
48
            <scope>compile</scope>
49
        </dependency>
50
        <dependency>
51
            <groupId>org.gvsig</groupId>
52
            <artifactId>org.gvsig.tools.swing.api</artifactId>
53
            <scope>compile</scope>
54
        </dependency>
55
        <dependency>
56
            <groupId>org.gvsig</groupId>
57
            <artifactId>org.gvsig.tools.swing.impl</artifactId>
58
        </dependency>
59
        <dependency>
60
            <groupId>org.gvsig</groupId>
61
            <artifactId>org.gvsig.tools.swing.spi</artifactId>
62
        </dependency>
63
        <dependency>
64
            <groupId>org.gvsig</groupId>
65
            <artifactId>org.gvsig.tools.swing.serv.field</artifactId>
66
        </dependency>
67
        <dependency>
68
            <groupId>org.gvsig</groupId>
69
            <artifactId>org.gvsig.tools.swing.serv.jform</artifactId>
70
        </dependency>
71
        <dependency>
72
            <groupId>org.gvsig</groupId>
73
            <artifactId>org.gvsig.tools.swing.serv.jlist</artifactId>
74
        </dependency>
75
        <dependency>
76
            <groupId>org.gvsig</groupId>
77
            <artifactId>org.gvsig.utils</artifactId>
78
            <scope>compile</scope>
79
        </dependency>
80
        <dependency>
81
            <groupId>org.gvsig</groupId>
82
            <artifactId>org.gvsig.ui</artifactId>
83
            <scope>compile</scope>
84
        </dependency>
85
        <dependency>
86
            <groupId>org.gvsig</groupId>
87
            <artifactId>org.gvsig.installer.lib.api</artifactId>
88
            <scope>compile</scope>
89
        </dependency>
90
        <dependency>
91
            <groupId>org.gvsig</groupId>
92
            <artifactId>org.gvsig.installer.lib.impl</artifactId>
93
        </dependency>
94
        <dependency>
95
            <groupId>org.gvsig</groupId>
96
            <artifactId>org.gvsig.installer.lib.spi</artifactId>
97
        </dependency>
98
        <dependency>
99
            <groupId>org.gvsig</groupId>
100
            <artifactId>org.gvsig.installer.prov.plugin</artifactId>
101
        </dependency>
102
        <dependency>
103
            <groupId>org.gvsig</groupId>
104
            <artifactId>org.gvsig.installer.swing.api</artifactId>
105
            <scope>compile</scope>
106
        </dependency>
107
        <dependency>
108
            <groupId>org.gvsig</groupId>
109
            <artifactId>org.gvsig.installer.swing.impl</artifactId>
110
        </dependency>
111
        <dependency>
112
            <groupId>javax.help</groupId>
113
            <artifactId>javahelp</artifactId>
114
            <scope>compile</scope>
115
        </dependency>
116
        <dependency>
117
            <groupId>jwizardcomponent</groupId>
118
            <artifactId>jwizardcomponent</artifactId>
119
            <scope>compile</scope>
120
        </dependency>
121
        <dependency>
122
            <groupId>com.jgoodies</groupId>
123
            <artifactId>looks</artifactId>
124
        </dependency>
125
        <dependency>
126
            <groupId>xerces</groupId>
127
            <artifactId>xercesImpl</artifactId>
128
        </dependency>
129
        <dependency>
130
            <groupId>castor</groupId>
131
            <artifactId>castor</artifactId>
132
            <scope>compile</scope>
133
        </dependency>
134
        <dependency>
135
            <groupId>net.sf.kxml</groupId>
136
            <artifactId>kxml2</artifactId>
137
            <scope>compile</scope>
138
        </dependency>
139
        <dependency>
140
            <groupId>com.sardak</groupId>
141
            <artifactId>antform</artifactId>
142
            <scope>runtime</scope>
143
        </dependency>
144
        <dependency>
145
            <groupId>ant-contrib</groupId>
146
            <artifactId>ant-contrib</artifactId>
147
            <scope>runtime</scope>
148
        </dependency>
149
        <dependency>
150 150
			<groupId>commons-cli</groupId>
151 151
			<artifactId>commons-cli</artifactId>
152 152
			<version>1.2</version>
153 153
		</dependency>
154 154
		<dependency>
155
			<groupId>org.apache.directory.studio</groupId>
156
			<artifactId>org.apache.commons.io</artifactId>
157
			<version>2.4</version>
158
			<scope>compile</scope>
159
		</dependency>
155
             <groupId>commons-io</groupId>
156
             <artifactId>commons-io</artifactId>
157
             <scope>compile</scope>
158
         </dependency>
160 159
		<dependency>
161 160
			<groupId>com.jgoodies</groupId>
162 161
			<artifactId>forms</artifactId>
163
			<version>1.0.4</version>
164 162
			<scope>runtime</scope>
165
		</dependency>
166
	</dependencies>
167
	<build>
168
		<sourceDirectory>src</sourceDirectory>
169
		<testSourceDirectory>src-test</testSourceDirectory>
170
		<resources>
171
			<resource>
172
				<directory>${basedir}/resources</directory>
173
			</resource>
174
		</resources>
175
		<plugins>
176
			<plugin>
177
				<artifactId>maven-clean-plugin</artifactId>
178
				<configuration>
179
					<filesets>
180
						<fileset>
181
							<directory>${andami.lib.dir}</directory>
182
							<includes>
183
								<include>**/**</include>
184
							</includes>
185
							<followSymlinks>false</followSymlinks>
186
						</fileset>
187
						<fileset>
188
							<directory>${gvsig.install.dir}/gvSIG/extensiones</directory>
189
							<includes>
190
								<include>**</include>
191
							</includes>
192
						</fileset>
193
					</filesets>
194
				</configuration>
195
			</plugin>
196
			<plugin>
197
				<groupId>org.codehaus.mojo</groupId>
198
				<artifactId>exec-maven-plugin</artifactId>
199
				<executions>
200
					<execution>
201
						<goals>
202
							<goal>exec</goal>
203
						</goals>
204
					</execution>
205
				</executions>
206
				<configuration>
207
					<executable>java</executable>
208
					<arguments>
209
						<argument>-classpath</argument>
210
						<!-- automatically creates the classpath using all project dependencies, 
211
							also adding the project build directory -->
212
						<classpath />
213
						<argument>org.gvsig.andami.Launcher</argument>
214
						<argument>gvSIG</argument>
215
						<argument>${gvsig.install.dir}/gvSIG/extensiones</argument>
216
					</arguments>
217
					<environmentVariables>
218
						<GDAL_DATA>${user.home}/.depman/data/gdal</GDAL_DATA>
219
						<PROJ_LIB>gvSIG/extensiones/org.gvsig.crs.extension/data</PROJ_LIB>
220
						<LD_LIBRARY_PATH>${user.home}/.depman/lib</LD_LIBRARY_PATH>
221
						<PATH>${user.home}/.depman/bin</PATH>
222
					</environmentVariables>
223
				</configuration>
224
			</plugin>
225
			<!-- TODO: MAKE TESTS WORK AND REMOVE THIS OPTION -->
226
			<plugin>
227
				<groupId>org.apache.maven.plugins</groupId>
228
				<artifactId>maven-surefire-plugin</artifactId>
229
				<configuration>
230
					<skipTests>true</skipTests>
231
				</configuration>
232
			</plugin>
233
			<plugin>
234
				<groupId>org.apache.maven.plugins</groupId>
235
				<artifactId>maven-jar-plugin</artifactId>
236
				<configuration>
237
					<archive>
238
						<manifest>
239
							<addClasspath>true</addClasspath>
240
							<mainClass>org.gvsig.andami.Launcher</mainClass>
241
						</manifest>
242
					</archive>
243
				</configuration>
244
			</plugin>
245
		</plugins>
246
	</build>
247
	<profiles>
248
		<profile>
249
			<id>install-extension</id>
250
			<activation>
251
				<activeByDefault>true</activeByDefault>
252
				<property>
253
					<name>install-extension</name>
254
				</property>
255
			</activation>
256
			<build>
257
				<plugins>
258
					<plugin>
259
						<groupId>org.apache.maven.plugins
163
		</dependency>        
164
    </dependencies>
165
    <build>
166
        <sourceDirectory>src</sourceDirectory>
167
        <testSourceDirectory>src-test</testSourceDirectory>
168
        <resources>
169
            <resource>
170
                <directory>${basedir}/resources</directory>
171
            </resource>
172
        </resources>
173
        <plugins>
174
            <plugin>
175
                <artifactId>maven-clean-plugin</artifactId>
176
                <configuration>
177
                    <filesets>
178
                        <fileset>
179
                            <directory>${andami.lib.dir}</directory>
180
                            <includes>
181
                                <include>**/**</include>
182
                            </includes>
183
                            <followSymlinks>false</followSymlinks>
184
                        </fileset>
185
                        <fileset>
186
                            <directory>${gvsig.install.dir}/gvSIG/extensiones</directory>
187
                            <includes>
188
                                <include>**</include>
189
                            </includes>
190
                        </fileset>
191
                    </filesets>
192
                </configuration>
193
            </plugin>
194
            <plugin>
195
                <groupId>org.codehaus.mojo</groupId>
196
                <artifactId>exec-maven-plugin</artifactId>
197
                <executions>
198
                    <execution>
199
                        <goals>
200
                            <goal>exec</goal>
201
                        </goals>
202
                    </execution>
203
                </executions>
204
                <configuration>
205
                    <executable>java</executable>
206
                    <arguments>
207
                        <argument>-classpath</argument>
208
                        <!-- automatically creates the classpath using all project 
209
                            dependencies, also adding the project build directory -->
210
                        <classpath />
211
                        <argument>org.gvsig.andami.Launcher</argument>
212
                        <argument>gvSIG</argument>
213
                        <argument>${gvsig.install.dir}/gvSIG/extensiones</argument>
214
                    </arguments>
215
                    <environmentVariables>
216
                        <GDAL_DATA>${user.home}/.depman/data/gdal</GDAL_DATA>
217
                        <PROJ_LIB>gvSIG/extensiones/org.gvsig.crs.extension/data</PROJ_LIB>
218
                        <LD_LIBRARY_PATH>${user.home}/.depman/lib</LD_LIBRARY_PATH>
219
                        <PATH>${user.home}/.depman/bin</PATH>
220
                    </environmentVariables>
221
                </configuration>
222
            </plugin>
223
            <!-- TODO: MAKE TESTS WORK AND REMOVE THIS OPTION -->
224
            <plugin>
225
                <groupId>org.apache.maven.plugins</groupId>
226
                <artifactId>maven-surefire-plugin</artifactId>
227
                <configuration>
228
                    <skipTests>true</skipTests>
229
                </configuration>
230
            </plugin>
231
            <plugin>
232
                <groupId>org.apache.maven.plugins</groupId>
233
                <artifactId>maven-jar-plugin</artifactId>
234
                <configuration>
235
                    <archive>
236
                        <manifest>
237
                            <addClasspath>true</addClasspath>
238
                            <mainClass>org.gvsig.andami.Launcher</mainClass>
239
                        </manifest>
240
                    </archive>
241
                </configuration>
242
            </plugin>
243
        </plugins>
244
    </build>
245
    <profiles>
246
        <profile>
247
            <id>install-extension</id>
248
            <activation>
249
                <activeByDefault>true</activeByDefault>
250
                <property>
251
                    <name>install-extension</name>
252
                </property>
253
            </activation>
254
            <build>
255
                <plugins>
256
                    <plugin>
257
                        <groupId>org.apache.maven.plugins
260 258
						</groupId>
261
						<artifactId>maven-dependency-plugin
259
                        <artifactId>maven-dependency-plugin
262 260
						</artifactId>
263
						<executions>
264
							<execution>
265
								<id>copy-own-dependencies-for-andami
261
                        <executions>
262
                            <execution>
263
                                <id>copy-own-dependencies-for-andami
266 264
								</id>
267
								<phase>install</phase>
268
								<goals>
269
									<goal>copy-dependencies</goal>
270
								</goals>
271
								<configuration>
272
									<outputDirectory>${andami.lib.dir}</outputDirectory>
273
									<overWriteReleases>true</overWriteReleases>
274
									<overWriteSnapshots>true</overWriteSnapshots>
275
									<overWriteIfNewer>true</overWriteIfNewer>
276
									<includeScope>runtime</includeScope>
277
								</configuration>
278
							</execution>
279
							<execution>
280
								<id>copy-andami</id>
281
								<phase>install</phase>
282
								<goals>
283
									<goal>copy</goal>
284
								</goals>
285
								<configuration>
286
									<artifactItems>
287
										<artifactItem>
288
											<groupId>org.gvsig</groupId>
289
											<artifactId>org.gvsig.andami</artifactId>
290
											<version>2.0-SNAPSHOT</version>
291
											<type>jar</type>
292
											<overWrite>true</overWrite>
293
										</artifactItem>
294
									</artifactItems>
295
									<outputDirectory>${andami.lib.dir}</outputDirectory>
296
									<overWriteReleases>true</overWriteReleases>
297
									<overWriteSnapshots>false</overWriteSnapshots>
298
									<overWriteIfNewer>true</overWriteIfNewer>
299
									<excludeTransitive>false</excludeTransitive>
300
								</configuration>
301
							</execution>
302
						</executions>
303
					</plugin>
304
					<plugin>
305
						<artifactId>maven-resources-plugin</artifactId>
306
						<executions>
307
							<execution>
308
								<id>copy-theme</id>
309
								<phase>install</phase>
310
								<goals>
311
									<goal>copy-resources</goal>
312
								</goals>
313
								<configuration>
314
									<outputDirectory>${gvsig.install.dir}/theme</outputDirectory>
315
									<resources>
316
										<resource>
317
											<directory>theme</directory>
318
											<filtering>false</filtering>
319
										</resource>
320
									</resources>
321
								</configuration>
322
							</execution>
323
						</executions>
324
					</plugin>
325
				</plugins>
326
			</build>
327
		</profile>
328
	</profiles>
265
                                <phase>install</phase>
266
                                <goals>
267
                                    <goal>copy-dependencies</goal>
268
                                </goals>
269
                                <configuration>
270
                                    <outputDirectory>${andami.lib.dir}</outputDirectory>
271
                                    <overWriteReleases>true</overWriteReleases>
272
                                    <overWriteSnapshots>true</overWriteSnapshots>
273
                                    <overWriteIfNewer>true</overWriteIfNewer>
274
                                    <includeScope>runtime</includeScope>
275
                                </configuration>
276
                            </execution>
277
                            <execution>
278
                                <id>copy-andami</id>
279
                                <phase>install</phase>
280
                                <goals>
281
                                    <goal>copy</goal>
282
                                </goals>
283
                                <configuration>
284
                                    <artifactItems>
285
                                        <artifactItem>
286
                                            <groupId>org.gvsig</groupId>
287
                                            <artifactId>org.gvsig.andami</artifactId>
288
                                            <version>2.0-SNAPSHOT</version>
289
                                            <type>jar</type>
290
                                            <overWrite>true</overWrite>
291
                                        </artifactItem>
292
                                    </artifactItems>
293
                                    <outputDirectory>${andami.lib.dir}</outputDirectory>
294
                                    <overWriteReleases>true</overWriteReleases>
295
                                    <overWriteSnapshots>false</overWriteSnapshots>
296
                                    <overWriteIfNewer>true</overWriteIfNewer>
297
                                    <excludeTransitive>false</excludeTransitive>
298
                                </configuration>
299
                            </execution>
300
                        </executions>
301
                    </plugin>
302
                    <plugin>
303
                        <artifactId>maven-resources-plugin</artifactId>
304
                        <executions>
305
                            <execution>
306
                                <id>copy-theme</id>
307
                                <phase>install</phase>
308
                                <goals>
309
                                    <goal>copy-resources</goal>
310
                                </goals>
311
                                <configuration>
312
                                    <outputDirectory>${gvsig.install.dir}/theme</outputDirectory>
313
                                    <resources>
314
                                        <resource>
315
                                            <directory>theme</directory>
316
                                            <filtering>false</filtering>
317
                                        </resource>
318
                                    </resources>
319
                                </configuration>
320
                            </execution>
321
                        </executions>
322
                    </plugin>
323
                </plugins>
324
            </build>
325
        </profile>
326
    </profiles>
329 327
</project>

Also available in: Unified diff