Statistics
| Revision:

gvsig-tools / org.gvsig.maven.base / trunk / org.gvsig.maven.base / org.gvsig.maven.base.extension.pom / pom.xml @ 646

History | View | Annotate | Download (16.1 KB)

1
<?xml version="1.0" encoding="ISO-8859-1"?>
2

    
3
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4

    
5
    <modelVersion>4.0.0</modelVersion>
6
    <artifactId>org.gvsig.maven.base.extension.pom</artifactId>
7
    <packaging>pom</packaging>
8
    <name>org.gvsig.maven.base.extension.pom</name>
9
    <description> Base POM for all GvSIG extension projects. This pom knows
10
                how to build and made an extension for GvSIG. The property
11
                "build-dir" must be set up correctly.</description>
12

    
13
    <parent>
14
        <groupId>org.gvsig</groupId>
15
        <artifactId>org.gvsig.maven.base.pom</artifactId>
16
        <version>1.0.8-SNAPSHOT</version>
17
    </parent>
18
    <distributionManagement>
19
        <site>
20
            <id>gvsig-repository</id>
21
            <url>${site-repository}/</url>
22
        </site>
23
    </distributionManagement>
24

    
25
    <properties>
26
        <!-- Name of the folder where andami looks for plugins -->
27
        <extensions.dir.name>gvSIG/extensiones</extensions.dir.name>
28
        <!-- Name of the folder where andami can find the plugin for the 
29
            current extension -->
30
        <extension.install.dir.name>${extensions.dir.name}/${project.artifactId}</extension.install.dir.name>
31
        <!-- Name of the folder where andami can find the plugin for the 
32
            appgvSIG extensions -->
33
        <gvsig.extension.install.dir.name>${extensions.dir.name}/org.gvsig.app/</gvsig.extension.install.dir.name>
34

    
35
        <!-- Absolute gvSIG extensions installation folder -->
36
        <gvsig.extensions.dir>${gvsig.install.dir}/${extensions.dir.name}</gvsig.extensions.dir>
37
        <!-- Absolute current extension installation folder into gvSIG -->
38
        <extension.install.dir>${gvsig.install.dir}/${extension.install.dir.name}</extension.install.dir>
39
        <!-- Maven assembly plugin configuration file for the current extension, 
40
            relative to the extension folder. -->
41
        <extension.distribution.file>
42
            distribution/distribution.xml
43
                </extension.distribution.file>
44
        <!-- Extension installation library dependencies folder -->
45
        <library-dir>lib</library-dir>
46
        <!-- Package info property values -->
47
        <package.info.state>devel</package.info.state>
48
        <package.info.official>true</package.info.official>
49
        <package.info.operatingSystem>all</package.info.operatingSystem>
50
        <package.info.architecture>all</package.info.architecture>
51
        <package.info.javaVM>j1_5</package.info.javaVM>
52
        <package.info.gvSIGVersion>2.0.0</package.info.gvSIGVersion>
53
        <package.info.baseDownloadURL>
54
          http://dl.dropbox.com/u/50540894/gvSIG-desktop/pool/${pom.artifactId}
55
        </package.info.baseDownloadURL>
56
        <package.info.dependencies></package.info.dependencies>
57
        <package.info.owner>gvSIG Association</package.info.owner>
58
        <package.info.sourcesURL>${project.scm.url}</package.info.sourcesURL>
59
        <package.info.webURL>http://www.gvsig.com</package.info.webURL>
60
    </properties>
61

    
62
    <profiles>
63
        <profile>
64
            <id>install-extension</id>
65
            <activation>
66
                <activeByDefault>true</activeByDefault>
67
                <property>
68
                    <name>install-extension</name>
69
                </property>
70
            </activation>
71
            <build>
72
                <plugins>
73
                    <!-- This plugin configuration is duplicated in the create-installer 
74
                        profile, because of ordering issues, as it must be run before the org.gvsig.installer.maven 
75
                        plugin -->
76
                    <plugin>
77
                        <artifactId>maven-assembly-plugin
78
                                                </artifactId>
79
                        <configuration>
80
                            <descriptors>
81
                                <descriptor>${extension.distribution.file}</descriptor>
82
                            </descriptors>
83
                            <ignoreDirFormatExtensions>true</ignoreDirFormatExtensions>
84
                            <appendAssemblyId>true</appendAssemblyId>
85
                        </configuration>
86
                        <executions>
87
                            <execution>
88
                                <id>make-assembly</id><!-- this is used for 
89
                                    inheritance merges -->
90
                                <phase>install</phase><!-- append to the 
91
                                    packaging phase. -->
92
                                <goals>
93
                                    <goal>attached</goal>
94
                                </goals>
95
                            </execution>
96
                        </executions>
97
                    </plugin>
98
                    <!-- This plugin configuration is duplicated in the create-installer 
99
                        profile, because of ordering issues, as it must be run before the org.gvsig.installer.maven 
100
                        plugin -->
101
                    <plugin>
102
                        <artifactId>maven-antrun-plugin</artifactId>
103
                        <executions>
104
                            <execution>
105
                                <id>copy-to-andami</id>
106
                                <phase>install</phase>
107
                                <configuration>
108
                                    <tasks>
109
                                        <property name="project.packaging" value="${project.packaging}" />
110
                                        <property name="gvsig.install.dir" value="${gvsig.install.dir}" />
111
                                        <property name="distribution-final-name" value="${project.build.finalName}" />
112
                                        <ant antfile="${base.tools.path}/ant/gvsig-extension-tasks.xml" target="make-extension-new" inheritRefs="true" />
113
                                    </tasks>
114
                                </configuration>
115
                                <goals>
116
                                    <goal>run</goal>
117
                                </goals>
118
                            </execution>
119
                        </executions>
120
                    </plugin>
121
                    <plugin>
122
                        <artifactId>maven-clean-plugin</artifactId>
123
                        <configuration>
124
                            <filesets>
125
                                <fileset>
126
                                    <directory>${extension.install.dir}</directory>
127
                                    <includes>
128
                                        <include>**</include>
129
                                    </includes>
130
                                </fileset>
131
                            </filesets>
132
                        </configuration>
133
                    </plugin>
134
                    <plugin>
135
                        <groupId>org.codehaus.mojo</groupId>
136
                        <artifactId>properties-maven-plugin</artifactId>
137
                        <version>1.0-alpha-2</version>
138
                        <executions>
139
                            <execution>
140
                                <phase>initialize</phase>
141
                                <goals>
142
                                    <goal>read-project-properties</goal>
143
                                </goals>
144
                                <configuration>
145
                                    <files>
146
                                        <file>buildNumber.properties</file>
147
                                    </files>
148
                                </configuration>
149
                            </execution>
150
                        </executions>
151
                    </plugin>
152
                    <!-- Create the package.info file for the plugin and 
153
                        installer info in the compile phase. -->
154
                    <plugin>
155
                        <groupId>org.gvsig</groupId>
156
                        <artifactId>org.gvsig.installer.maven</artifactId>
157
                        <configuration>
158
                            <pluginsFolder>${gvsig.install.dir}/gvSIG/extensiones</pluginsFolder>
159
                            <packageFolder>${gvsig.install.dir}/install/pool/${project.artifactId}</packageFolder>
160
                            <buildNumber>${buildNumber}</buildNumber>
161
                            <state>${package.info.state}</state>
162
                            <official>${package.info.official}</official>
163
                            <operatingSystem>${package.info.operatingSystem}</operatingSystem>
164
                            <architecture>${package.info.architecture}</architecture>
165
                            <javaVM>${package.info.javaVM}</javaVM>
166
                            <gvSIGVersion>${package.info.gvSIGVersion}</gvSIGVersion>
167
                            <baseDownloadURL>${package.info.baseDownloadURL}</baseDownloadURL>
168
                            <pkgdependencies>${package.info.dependencies}</pkgdependencies>
169
                            <owner>${package.info.owner}</owner>
170
                            <sourcesURL>${package.info.sourcesURL}</sourcesURL>
171
                            <webURL>${package.info.webURL}</webURL>
172
                        </configuration>
173
                        <executions>
174
                            <execution>
175
                                <id>write-info</id>
176
                                <phase>compile</phase>
177
                                <goals>
178
                                    <goal>write-info</goal>
179
                                </goals>
180
                            </execution>
181
                        </executions>
182
                    </plugin>
183
                </plugins>
184
            </build>
185
        </profile>
186
        <profile>
187
            <id>create-installer</id>
188
            <build>
189
                <plugins>
190
                    <plugin>
191
                        <groupId>org.codehaus.mojo</groupId>
192
                        <artifactId>buildnumber-maven-plugin</artifactId>
193
                        <version>1.0-beta-2</version>
194
                        <executions>
195
                            <execution>
196
                                <phase>validate</phase>
197
                                <goals>
198
                                    <goal>create</goal>
199
                                </goals>
200
                            </execution>
201
                        </executions>
202
                        <configuration>
203
                            <format>{0,number,#}</format>
204
                            <items>
205
                                <item>buildNumber</item>
206
                            </items>
207
                            <doCheck>false</doCheck>
208
                            <doUpdate>false</doUpdate>
209
                        </configuration>
210
                    </plugin>
211
                    <!-- This plugin configuration is duplicated in the install-extension 
212
                        profile, because of ordering issues, as it must be run before the org.gvsig.installer.maven 
213
                        plugin -->
214
                    <plugin>
215
                        <artifactId>maven-assembly-plugin
216
                        </artifactId>
217
                        <configuration>
218
                            <descriptors>
219
                                <descriptor>${extension.distribution.file}</descriptor>
220
                            </descriptors>
221
                            <ignoreDirFormatExtensions>true</ignoreDirFormatExtensions>
222
                            <appendAssemblyId>true</appendAssemblyId>
223
                        </configuration>
224
                        <executions>
225
                            <execution>
226
                                <id>make-assembly</id><!-- this is used for 
227
                                    inheritance merges -->
228
                                <phase>install</phase><!-- append to the 
229
                                    packaging phase. -->
230
                                <goals>
231
                                    <goal>attached</goal>
232
                                </goals>
233
                            </execution>
234
                        </executions>
235
                    </plugin>
236
                    <!-- This plugin configuration is duplicated in the install-extension 
237
                        profile, because of ordering issues, as it must be run before the org.gvsig.installer.maven 
238
                        plugin -->
239
                    <plugin>
240
                        <artifactId>maven-antrun-plugin</artifactId>
241
                        <executions>
242
                            <execution>
243
                                <id>copy-to-andami</id>
244
                                <phase>install</phase>
245
                                <configuration>
246
                                    <tasks>
247
                                        <property name="project.packaging" value="${project.packaging}" />
248
                                        <property name="gvsig.install.dir" value="${gvsig.install.dir}" />
249
                                        <property name="distribution-final-name" value="${project.build.finalName}" />
250
                                        <ant antfile="${base.tools.path}/ant/gvsig-extension-tasks.xml" target="make-extension-new" inheritRefs="true" />
251
                                    </tasks>
252
                                </configuration>
253
                                <goals>
254
                                    <goal>run</goal>
255
                                </goals>
256
                            </execution>
257
                        </executions>
258
                    </plugin>
259
                    <!-- Create the package.info file for the plugin and 
260
                        installer info in the compile phase, and create the plugin installer in the 
261
                        install phase. -->
262
                    <plugin>
263
                        <groupId>org.gvsig</groupId>
264
                        <artifactId>org.gvsig.installer.maven</artifactId>
265
                        <configuration>
266
                            <pluginsFolder>${gvsig.install.dir}/gvSIG/extensiones</pluginsFolder>
267
                            <packageFolder>${gvsig.install.dir}/install/pool/${project.artifactId}</packageFolder>
268
                            <buildNumber>${buildNumber}</buildNumber>
269
                            <state>${package.info.state}</state>
270
                            <official>${package.info.official}</official>
271
                            <operatingSystem>${package.info.operatingSystem}</operatingSystem>
272
                            <architecture>${package.info.architecture}</architecture>
273
                            <javaVM>${package.info.javaVM}</javaVM>
274
                            <gvSIGVersion>${package.info.gvSIGVersion}</gvSIGVersion>
275
                            <baseDownloadURL>${package.info.baseDownloadURL}</baseDownloadURL>
276
                            <pkgdependencies>${package.info.dependencies}</pkgdependencies>
277
                            <owner>${package.info.owner}</owner>
278
                            <sourcesURL>${package.info.sourcesURL}</sourcesURL>
279
                            <webURL>${package.info.webURL}</webURL>
280
                        </configuration>
281
                        <executions>
282
                            <execution>
283
                                <id>write-info</id>
284
                                <phase>compile</phase>
285
                                <goals>
286
                                    <goal>write-info</goal>
287
                                </goals>
288
                            </execution>
289
                            <execution>
290
                                <id>create-plugin-package</id>
291
                                <phase>install</phase>
292
                                <goals>
293
                                    <goal>create-package</goal>
294
                                </goals>
295
                            </execution>
296
                            <execution>
297
                                <id>create-plugin-package-index</id>
298
                                <phase>install</phase>
299
                                <goals>
300
                                    <goal>create-package-index</goal>
301
                                </goals>
302
                            </execution>
303
                        </executions>
304
                    </plugin>
305
                </plugins>
306
            </build>
307
        </profile>
308
    </profiles>
309
</project>