Statistics
| Revision:

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

History | View | Annotate | Download (16.3 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://downloads.gvsig.org/download/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
        <package.info.categories></package.info.categories>
61
    </properties>
62

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