Statistics
| Revision:

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

History | View | Annotate | Download (8.44 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
        </properties>
29
        <dependencies>
30
                <dependency>
31
                        <groupId>org.gvsig</groupId>
32
                        <artifactId>org.gvsig.i18n</artifactId>
33
                        <version>2.0-SNAPSHOT</version>
34
                </dependency>
35
                <dependency>
36
                        <groupId>org.gvsig</groupId>
37
                        <artifactId>org.gvsig.tools.lib</artifactId>
38
                </dependency>
39
        <dependency>
40
            <groupId>org.gvsig</groupId>
41
            <artifactId>org.gvsig.tools.swing.api</artifactId>
42
        </dependency>
43
        <dependency>
44
            <groupId>org.gvsig</groupId>
45
            <artifactId>org.gvsig.tools.swing.impl</artifactId>
46
            <scope>runtime</scope>
47
        </dependency>
48
        <dependency>
49
            <groupId>org.gvsig</groupId>
50
            <artifactId>org.gvsig.tools.swing.spi</artifactId>
51
        </dependency>
52
        <dependency>
53
            <groupId>org.gvsig</groupId>
54
            <artifactId>org.gvsig.tools.swing.serv.field</artifactId>
55
        </dependency>
56
        <dependency>
57
            <groupId>org.gvsig</groupId>
58
            <artifactId>org.gvsig.tools.swing.serv.jform</artifactId>
59
        </dependency>
60
        <dependency>
61
            <groupId>org.gvsig</groupId>
62
            <artifactId>org.gvsig.tools.swing.serv.jlist</artifactId>
63
        </dependency>
64
                <dependency>
65
                        <groupId>org.gvsig</groupId>
66
                        <artifactId>org.gvsig.utils</artifactId>
67
                        <version>2.0-SNAPSHOT</version>
68
                </dependency>
69
                <dependency>
70
                        <groupId>org.gvsig</groupId>
71
                        <artifactId>org.gvsig.ui</artifactId>
72
                        <version>2.0-SNAPSHOT</version>
73
                </dependency>
74
                <dependency>
75
                        <groupId>jre</groupId>
76
                        <artifactId>javaws</artifactId>
77
                </dependency>
78
                <dependency>
79
                        <groupId>javax.help</groupId>
80
                        <artifactId>javahelp</artifactId>
81
                </dependency>
82
                <dependency>
83
                    <groupId>jwizardcomponent</groupId>
84
                           <artifactId>jwizardcomponent</artifactId>
85
                   </dependency>
86
                <dependency>
87
                        <groupId>com.jgoodies</groupId>
88
                        <artifactId>looks</artifactId>
89
                </dependency>
90
                <dependency>
91
                        <groupId>xerces</groupId>
92
                        <artifactId>xercesImpl</artifactId>
93
                </dependency>                        
94
        </dependencies>
95
        <build>
96
                <sourceDirectory>src</sourceDirectory>
97
                <testSourceDirectory>src-test</testSourceDirectory>
98
                <resources>
99
                        <resource>
100
                                <directory>src</directory>
101
                                <includes>
102
                                        <include>**/*.gif</include>
103
                                        <include>**/*.png</include>
104
                                        <include>**/*.PNG</include>
105
                                        <include> **/*.bmp</include>
106
                                        <include> **/*.jpg</include>
107
                                        <include> **/*.jpeg</include>
108
                                </includes>
109
                        </resource>
110
                        <resource>
111
                    <directory>config</directory>
112
                           <includes>
113
                            <include>**/*.properties</include>
114
                    </includes>
115
                    <targetPath>com/iver/andami</targetPath>
116
                        </resource>
117
            <resource>
118
                <directory>${basedir}/resources</directory>
119
            </resource>
120
                </resources>
121
                <plugins>
122
                        <plugin>
123
                                <artifactId>maven-clean-plugin</artifactId>
124
                                <configuration>
125
                                        <filesets>
126
                                                <fileset>
127
                                                        <directory>${andami.lib.dir}</directory>
128
                                                        <includes>
129
                                                                <include>**/**</include>
130
                                                        </includes>
131
                                                        <followSymlinks>false</followSymlinks>
132
                                                </fileset>
133
                                                <fileset>
134
                                                        <directory>${gvsig.install.dir}/gvSIG/extensiones</directory>
135
                                                        <includes>
136
                                                                <include>**</include>
137
                                                        </includes>
138
                                                </fileset>
139
                                        </filesets>
140
                                </configuration>
141
                        </plugin>
142
                        <plugin>
143
                                <groupId>org.codehaus.mojo</groupId>
144
                                <artifactId>exec-maven-plugin</artifactId>
145
                                <executions>
146
                                        <execution>
147
                                                <goals>
148
                                                        <goal>exec</goal>
149
                                                </goals>
150
                                        </execution>
151
                                </executions>
152
                                <configuration>
153
                                        <executable>java</executable>
154
                                        <arguments>
155
                                                 <argument>-classpath</argument>
156
                                    <!-- automatically creates the classpath using all project dependencies,
157
                                         also adding the project build directory -->
158
                                    <classpath/>                                        
159
                                                <argument>com.iver.andami.Launcher</argument>
160
                                                <argument>gvSIG</argument>
161
                                                <argument>${gvsig.install.dir}/gvSIG/extensiones</argument>
162
                                        </arguments>
163
                                        <environmentVariables>
164
                                                <GDAL_DATA>../binaries/linux/raster/gdal/data</GDAL_DATA>
165
                                                <PROJ_LIB>gvSIG/extensiones/org.gvsig.crs/data</PROJ_LIB>
166
                                                <LD_LIBRARY_PATH>../binaries/linux/</LD_LIBRARY_PATH>
167
                                                <!-- 
168
                                                <JAIHOME>${env.JAIHOME}</JAIHOME>
169
                                                <CLASSPATH>${env.JAIHOME}/jai_core.jar:${env.JAIHOME}/jai_codec.jar:${env.JAIHOME}/mlibwrapper_jai.jar</CLASSPATH>
170
                                                <LD_LIBRARY_PATH>../../binaries/linux/:${env.JAIHOME}</LD_LIBRARY_PATH>
171
                                                 -->
172
                                        </environmentVariables>
173
                                </configuration>
174
                        </plugin>
175
            <!-- TODO: MAKE TESTS WORK AND REMOVE THIS OPTION -->
176
            <plugin>
177
                <groupId>org.apache.maven.plugins</groupId>
178
                <artifactId>maven-surefire-plugin</artifactId>
179
                <configuration>
180
                    <skipTests>true</skipTests>
181
                </configuration>
182
            </plugin>
183
                </plugins>
184
        </build>
185
        <profiles>
186
                <profile>
187
                        <id>install-extension</id>
188
                        <activation>
189
                                <activeByDefault>true</activeByDefault>
190
                                <property>
191
                                        <name>install-extension</name>
192
                                </property>
193
                        </activation>
194
                        <build>
195
                                <plugins>
196
                                        <plugin>
197
                                                <groupId>org.apache.maven.plugins
198
                                                </groupId>
199
                                                <artifactId>maven-dependency-plugin
200
                                                </artifactId>
201
                                                <executions>
202
                                                        <execution>
203
                                                                <id>copy-own-dependencies-for-andami
204
                                                                </id>
205
                                                                <phase>install</phase>
206
                                                                <goals>
207
                                                                        <goal>copy-dependencies</goal>
208
                                                                </goals>
209
                                                                <configuration>
210
                                                                        <outputDirectory>${andami.lib.dir}</outputDirectory>
211
                                                                        <overWriteReleases>true</overWriteReleases>
212
                                                                        <overWriteSnapshots>true</overWriteSnapshots>
213
                                                                        <overWriteIfNewer>true</overWriteIfNewer>
214
                                                                        <includeScope>runtime</includeScope>
215
                                                                </configuration>
216
                                                        </execution>
217
                                                        <!-- This execution was used to copy the javaws.jar 
218
                                                             file, but it is not needed anymore, as a new 
219
                                                             launcher for Java web start has been created  -->
220
                                                        <!-- 
221
                                                        <execution>
222
                                                                <id>copy-system-dependencies-for-andami
223
                                                                </id>
224
                                                                <phase>install</phase>
225
                                                                <goals>
226
                                                                        <goal>copy-dependencies</goal>
227
                                                                </goals>
228
                                                                <configuration>
229
                                                                        <outputDirectory>${andami.lib.dir}</outputDirectory>
230
                                                                        <overWriteReleases>true</overWriteReleases>
231
                                                                        <overWriteSnapshots>true</overWriteSnapshots>
232
                                                                        <overWriteIfNewer>true</overWriteIfNewer>
233
                                                                        <includeScope>system</includeScope>
234
                                                                </configuration>
235
                                                        </execution>
236
                                                         -->
237
                                                        <execution>
238
                                                                <id>copy-andami</id>
239
                                                                <phase>install</phase>
240
                                                                <goals>
241
                                                                        <goal>copy</goal>
242
                                                                </goals>
243
                                                                <configuration>
244
                                                                        <artifactItems>
245
                                                                                <artifactItem>
246
                                                                                        <groupId>org.gvsig</groupId>
247
                                                                                        <artifactId>org.gvsig.andami</artifactId>
248
                                                                                        <version>2.0-SNAPSHOT</version>
249
                                                                                        <type>jar</type>
250
                                                                                        <overWrite>true</overWrite>
251
                                                                                </artifactItem>
252
                                                                        </artifactItems>
253
                                                                        <outputDirectory>${andami.lib.dir}</outputDirectory>
254
                                                                        <overWriteReleases>true</overWriteReleases>
255
                                                                        <overWriteSnapshots>false</overWriteSnapshots>
256
                                                                        <overWriteIfNewer>true</overWriteIfNewer>
257
                                                                        <excludeTransitive>false</excludeTransitive>
258
                                                                </configuration>
259
                                                        </execution>
260
                                                </executions>
261
                                        </plugin>
262
                                </plugins>
263
                        </build>
264
                </profile>
265
        </profiles>
266
</project>