Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.plugin / pom.xml @ 40440

History | View | Annotate | Download (15.4 KB)

1
<?xml version="1.0" encoding="UTF-8"?>
2
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
4
         http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
    <modelVersion>4.0.0</modelVersion>
6
    <artifactId>org.gvsig.desktop.plugin</artifactId>
7
    <packaging>pom</packaging>
8
    <name>${project.artifactId}</name>
9
    <description>
10
      Base POM for all gvSIG plugins projects. 
11
      This pom knows how to build and made a plugin for gvSIG. 
12
      The property "gvsig.product.folder.path" must be set up correctly.
13
    </description>
14
    <parent>
15
        <groupId>org.gvsig</groupId>
16
        <artifactId>org.gvsig.desktop</artifactId>
17
        <version>2.0.10-SNAPSHOT</version>
18
    </parent>
19

    
20
    <dependencyManagement>
21
        <dependencies>
22

    
23
          <dependency>
24
            <groupId>org.gvsig</groupId>
25
            <artifactId>org.gvsig.app.mainplugin</artifactId>
26
            <version>${gvsig.desktop.children.version}</version>
27
            <scope>provided</scope>
28
          </dependency>
29
          <dependency>
30
            <groupId>org.gvsig</groupId>
31
            <artifactId>org.gvsig.annotation.app.mainplugin</artifactId>
32
            <version>${gvsig.desktop.children.version}</version>
33
            <scope>provided</scope>
34
          </dependency>
35
          <dependency>
36
            <groupId>org.gvsig</groupId>
37
            <artifactId>org.gvsig.app.document.table.app.mainplugin</artifactId>
38
            <version>${gvsig.desktop.children.version}</version>
39
            <scope>provided</scope>
40
          </dependency>
41
          <dependency>
42
            <groupId>org.gvsig</groupId>
43
            <artifactId>org.gvsig.centerviewpoint.app.mainplugin</artifactId>
44
            <version>${gvsig.desktop.children.version}</version>
45
            <scope>provided</scope>
46
          </dependency>
47
          <dependency>
48
            <groupId>org.gvsig</groupId>
49
            <artifactId>org.gvsig.coreplugin.app.mainplugin</artifactId>
50
            <version>${gvsig.desktop.children.version}</version>
51
            <scope>provided</scope>
52
          </dependency>
53
          <dependency>
54
            <groupId>org.gvsig</groupId>
55
            <artifactId>org.gvsig.daltransform.app.mainplugin</artifactId>
56
            <version>${gvsig.desktop.children.version}</version>
57
            <scope>provided</scope>
58
          </dependency>
59
          <dependency>
60
            <groupId>org.gvsig</groupId>
61
            <artifactId>org.gvsig.datalocator.app.mainplugin</artifactId>
62
            <version>${gvsig.desktop.children.version}</version>
63
            <scope>provided</scope>
64
          </dependency>
65
          <dependency>
66
            <groupId>org.gvsig</groupId>
67
            <artifactId>org.gvsig.editing.app.mainplugin</artifactId>
68
            <version>${gvsig.desktop.children.version}</version>
69
            <scope>provided</scope>
70
          </dependency>
71
          <dependency>
72
            <groupId>org.gvsig</groupId>
73
            <artifactId>org.gvsig.exportto.app.mainplugin</artifactId>
74
            <version>${gvsig.desktop.children.version}</version>
75
            <scope>provided</scope>
76
          </dependency>
77
          <dependency>
78
            <groupId>org.gvsig</groupId>
79
            <artifactId>org.gvsig.geodb.app.mainplugin</artifactId>
80
            <version>${gvsig.desktop.children.version}</version>
81
            <scope>provided</scope>
82
          </dependency>
83
          <dependency>
84
            <groupId>org.gvsig</groupId>
85
            <artifactId>org.gvsig.mkmvnproject.app.mainplugin</artifactId>
86
            <version>${gvsig.desktop.children.version}</version>
87
            <scope>provided</scope>
88
          </dependency>
89
          <dependency>
90
            <groupId>org.gvsig</groupId>
91
            <artifactId>org.gvsig.installer.app.mainplugin</artifactId>
92
            <version>${gvsig.desktop.children.version}</version>
93
            <scope>provided</scope>
94
          </dependency>
95
          <dependency>
96
            <groupId>org.gvsig</groupId>
97
            <artifactId>org.gvsig.symbology.app.mainplugin</artifactId>
98
            <version>${gvsig.desktop.children.version}</version>
99
            <scope>provided</scope>
100
          </dependency>
101
          <dependency>
102
            <groupId>org.gvsig</groupId>
103
            <artifactId>org.gvsig.i18n.app.mainplugin</artifactId>
104
            <version>${gvsig.desktop.children.version}</version>
105
            <scope>provided</scope>
106
          </dependency>
107
          <dependency>
108
            <groupId>org.gvsig</groupId>
109
            <artifactId>org.gvsig.selectiontools.app.mainplugin</artifactId>
110
            <version>${gvsig.desktop.children.version}</version>
111
            <scope>provided</scope>
112
          </dependency>
113
          <dependency>
114
            <groupId>org.gvsig</groupId>
115
            <artifactId>org.gvsig.geometrymeasurement.app.mainplugin</artifactId>
116
            <version>${gvsig.desktop.children.version}</version>
117
            <scope>provided</scope>
118
          </dependency>
119
          <dependency>
120
            <groupId>org.gvsig</groupId>
121
            <artifactId>org.gvsig.newlayer.app.mainplugin</artifactId>
122
            <version>${gvsig.desktop.children.version}</version>
123
            <scope>provided</scope>
124
          </dependency>
125
          <dependency>
126
            <groupId>org.gvsig</groupId>
127
            <artifactId>org.gvsig.help.app.mainplugin</artifactId>
128
            <version>${gvsig.desktop.children.version}</version>
129
            <scope>provided</scope>
130
          </dependency>
131

    
132
        </dependencies>
133
    </dependencyManagement>
134

    
135
    <properties>
136
        <!-- Name of the folder where andami looks for plugins -->
137
        <gvsig.plugins.folder.name>gvSIG/extensiones</gvsig.plugins.folder.name>
138

    
139
        <!-- Name of the folder where andami can find the org.gvsig.app plugin -->
140
        <gvsig.app.plugin.folder.name>${gvsig.plugins.folder.name}/org.gvsig.app/</gvsig.app.plugin.folder.name>
141

    
142
        <!-- Name of the folder where andami can find the current plugin -->
143
        <gvsig.current.plugin.folder.name>${gvsig.plugins.folder.name}/${project.artifactId}</gvsig.current.plugin.folder.name>
144

    
145
        <!-- Plugin installation library dependencies folder -->
146
        <gvsig.current.plugin.library.name>lib</gvsig.current.plugin.library.name>
147

    
148
        <!-- Package info property values -->
149
        <gvsig.package.info.state>devel</gvsig.package.info.state>
150
        <gvsig.package.info.official>false</gvsig.package.info.official>
151
        <gvsig.package.info.operatingSystem>all</gvsig.package.info.operatingSystem>
152
        <gvsig.package.info.architecture>all</gvsig.package.info.architecture>
153
        <gvsig.package.info.javaVM>j1_5</gvsig.package.info.javaVM>
154
        <gvsig.package.info.gvSIGVersion>2.0.0</gvsig.package.info.gvSIGVersion>
155
        <gvsig.package.info.baseDownloadURL>../../pool/${project.artifactId}</gvsig.package.info.baseDownloadURL>
156
        <gvsig.package.info.dependencies>required: org.gvsig.app.mainplugin -ge 2.0.1</gvsig.package.info.dependencies>
157
        <gvsig.package.info.owner>gvSIG Association</gvsig.package.info.owner>
158
        <gvsig.package.info.sourcesURL>${project.scm.url}</gvsig.package.info.sourcesURL>
159
        <gvsig.package.info.webURL>http://www.gvsig.com</gvsig.package.info.webURL>
160
        <gvsig.package.info.categories></gvsig.package.info.categories>
161
    </properties>
162

    
163
    <dependencies>
164
      <dependency>
165
        <groupId>org.gvsig</groupId>
166
        <artifactId>org.gvsig.andami</artifactId>
167
        <scope>provided</scope>
168
      </dependency>
169
      <dependency>
170
        <groupId>org.gvsig</groupId>
171
        <artifactId>org.gvsig.tools.lib</artifactId>
172
        <scope>provided</scope>
173
      </dependency>
174
    </dependencies>
175

    
176

    
177
    <build>
178
      <plugins>
179
        
180
        <plugin>
181
          <!-- load ".gvsig-devel.properties" -->
182
          <groupId>org.codehaus.mojo</groupId>
183
          <artifactId>properties-maven-plugin</artifactId>
184
          <configuration>
185
              <files>
186
                  <!-- Define gvsig.product.folder.path in this property -->
187
                  <file>${user.home}/.gvsig-devel.properties</file>
188
                  <file>${project.basedir}/gvsig-devel.properties</file>
189
                  <file>buildNumber.properties</file>
190
              </files>
191
              <quiet>true</quiet>
192
          </configuration>
193
          <executions>
194
              <execution>
195
                        <id>default</id>
196
                  <phase>generate-sources</phase>
197
                  <goals>
198
                      <goal>read-project-properties</goal>
199
                  </goals>
200
              </execution>
201
              <execution>
202
                      <id>default-clean</id>
203
                <phase>pre-clean</phase>
204
                <goals>
205
                    <goal>read-project-properties</goal>
206
                </goals>
207
            </execution>
208
          </executions>
209
        </plugin>
210
  
211
          <plugin>
212
              <artifactId>maven-assembly-plugin</artifactId>
213
              <configuration>
214
                  <ignoreDirFormatExtensions>true</ignoreDirFormatExtensions>
215
                  <appendAssemblyId>false</appendAssemblyId>
216
              </configuration>
217
              <executions>
218
                <execution>
219
                  <id>gvsig-plugin-package</id>
220
                  <phase>package</phase>
221
                  <!-- Do not set the goal here, set in the child that generate a gvsig plugin
222
                  <goals>
223
                      <goal>single</goal>
224
                  </goals>
225
                  -->
226
                  <configuration>
227
                    <finalName>gvSIG-desktop-${gvsig.package.info.gvSIGVersion}-${project.artifactId}-${project.version}-${gvsig.package.info.state}-${gvsig.package.info.operatingSystem}-${gvsig.package.info.architecture}-${gvsig.package.info.javaVM}.gvspkg</finalName>
228
                    <descriptors>
229
                      <descriptor>src/main/assembly/gvsig-plugin-package.xml</descriptor>
230
                    </descriptors>
231
                  </configuration>
232
                </execution>
233
              </executions>
234
          </plugin>
235

    
236
          <plugin>
237
            <artifactId>maven-antrun-plugin</artifactId>
238
            <executions>
239
              <execution>
240
                <id>gvsig-plugin-install</id>
241
                <phase>install</phase>
242
                <configuration>
243
                  <target if="gvsig.product.folder.path">
244
                    <unzip src="target/gvSIG-desktop-${gvsig.package.info.gvSIGVersion}-${project.artifactId}-${project.version}-${gvsig.package.info.state}-${gvsig.package.info.operatingSystem}-${gvsig.package.info.architecture}-${gvsig.package.info.javaVM}.gvspkg.zip" dest="${gvsig.product.folder.path}/${gvsig.plugins.folder.name}"/>
245
                    <copy file="target/gvSIG-desktop-${gvsig.package.info.gvSIGVersion}-${project.artifactId}-${project.version}-${gvsig.package.info.state}-${gvsig.package.info.operatingSystem}-${gvsig.package.info.architecture}-${gvsig.package.info.javaVM}.gvspkg.zip" tofile="${gvsig.product.folder.path}/install/gvSIG-desktop-${gvsig.package.info.gvSIGVersion}-${project.artifactId}-${project.version}-${gvsig.package.info.state}-${gvsig.package.info.operatingSystem}-${gvsig.package.info.architecture}-${gvsig.package.info.javaVM}.gvspkg"/>
246
                  </target>
247
                </configuration>
248
                <!-- Do not set the goal here, set in the child that install a gvsig plugin
249
                <goals>
250
                  <goal>run</goal>
251
                </goals>
252
                -->
253
              </execution>
254
            </executions>
255
          </plugin>
256

    
257
          <plugin>
258
            <artifactId>maven-clean-plugin</artifactId>
259
            <configuration>
260
              <skip>false</skip>
261
              <failOnError>true</failOnError>
262
              <filesets>
263
                <fileset>
264
                  <directory>${gvsig.product.folder.path}/${gvsig.current.plugin.folder.name}</directory>
265
                </fileset>
266
              </filesets>
267
            </configuration>
268
            <executions>
269
              <execution>
270
                <id>default-clean</id>
271
                <phase>clean</phase>
272
              </execution>
273
            </executions>
274
          </plugin>
275

    
276
          <plugin>
277
              <groupId>org.gvsig</groupId>
278
              <artifactId>org.gvsig.installer.maven</artifactId>
279
              <version>2.0.10-SNAPSHOT</version>
280
              <dependencies>
281
                <dependency>
282
                  <groupId>org.gvsig</groupId>
283
                  <artifactId>org.gvsig.installer.maven</artifactId>
284
                  <version>2.0.10-SNAPSHOT</version>
285
                </dependency>
286
              </dependencies>
287
              <configuration>
288
                  <pluginsFolder>${gvsig.product.folder.path}/${gvsig.plugins.folder.name}</pluginsFolder>
289
                  <packageFolder>${gvsig.product.folder.path}/install/pool/${project.artifactId}</packageFolder>
290
                  <buildNumber>${buildNumber}</buildNumber>
291
                  <state>${gvsig.package.info.state}</state>
292
                  <official>${gvsig.package.info.official}</official>
293
                  <operatingSystem>${gvsig.package.info.operatingSystem}</operatingSystem>
294
                  <architecture>${gvsig.package.info.architecture}</architecture>
295
                  <javaVM>${gvsig.package.info.javaVM}</javaVM>
296
                  <gvSIGVersion>${gvsig.package.info.gvSIGVersion}</gvSIGVersion>
297
                  <baseDownloadURL>${gvsig.package.info.baseDownloadURL}</baseDownloadURL>
298
                  <pkgdependencies>${gvsig.package.info.dependencies}</pkgdependencies>
299
                  <owner>${gvsig.package.info.owner}</owner>
300
                  <sourcesURL>${gvsig.package.info.sourcesURL}</sourcesURL>
301
                  <webURL>${gvsig.package.info.webURL}</webURL>
302
                  <categories>${gvsig.package.info.categories}</categories>
303
              </configuration>
304
              <executions>
305
                  <execution>
306
                      <!-- Create the package.info file for the plugin and  installer info -->
307
                      <id>write-info</id>
308
                      <phase>compile</phase>
309
                      <goals>
310
                          <goal>write-info</goal>
311
                      </goals>
312
                  </execution>
313
                  <execution>
314
                      <!-- Create the plugin installer in the install phase. -->
315
                      <id>create-plugin-package</id>
316
                      <goals>
317
                          <goal>create-package</goal>
318
                          <goal>create-package-index</goal>
319
                      </goals>
320
                  </execution>
321
              </executions>
322
          </plugin>
323

    
324
        </plugins>
325
    </build>
326

    
327
    <modules>
328
      <module>org.gvsig.app</module>
329
      <module>org.gvsig.coreplugin.app</module>
330
      <module>org.gvsig.centerviewpoint.app</module>
331
      <module>org.gvsig.app.document.table.app</module>
332
      <module>org.gvsig.geometrymeasurement.app</module>
333
      <module>org.gvsig.datalocator.app</module>
334
      <module>org.gvsig.help.app</module>
335
      <module>org.gvsig.selectiontools.app</module>
336
      <module>org.gvsig.i18n.app</module>
337
      <module>org.gvsig.symbology.app</module>
338
      <module>org.gvsig.geodb.app</module>
339
      <module>org.gvsig.annotation.app</module>
340
      <module>org.gvsig.daltransform.app</module>
341
      <module>org.gvsig.exportto.app</module>
342
      <module>org.gvsig.editing.app</module>
343
      <module>org.gvsig.installer.app</module>
344
      <module>org.gvsig.newlayer.app</module>
345
      <module>org.gvsig.mkmvnproject.app</module>
346
    </modules>
347

    
348
</project>