Statistics
| Revision:

svn-gvsig-desktop / branches / v2_0_0_prep / frameworks / _fwAndami / pom.xml @ 37498

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