gvsig-tools / org.gvsig.maven.base / trunk / org.gvsig.maven.base / org.gvsig.maven.base.extension.pom / pom.xml @ 776
History | View | Annotate | Download (16 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 |
<modelVersion>4.0.0</modelVersion> |
5 |
<artifactId>org.gvsig.maven.base.extension.pom</artifactId> |
6 |
<packaging>pom</packaging> |
7 |
<name>org.gvsig.maven.base.extension.pom</name> |
8 |
<description> Base POM for all GvSIG extension projects. This pom knows
|
9 |
how to build and made an extension for GvSIG. The property |
10 |
"build-dir" must be set up correctly.</description>
|
11 |
|
12 |
<parent>
|
13 |
<groupId>org.gvsig</groupId> |
14 |
<artifactId>org.gvsig.maven.base.pom</artifactId> |
15 |
<version>1.0.9-SNAPSHOT</version> |
16 |
</parent>
|
17 |
|
18 |
<properties>
|
19 |
<!-- Name of the folder where andami looks for plugins -->
|
20 |
<extensions.dir.name>gvSIG/extensiones</extensions.dir.name> |
21 |
<!-- Name of the folder where andami can find the plugin for the
|
22 |
current extension -->
|
23 |
<extension.install.dir.name>${extensions.dir.name}/${project.artifactId}</extension.install.dir.name> |
24 |
<!-- Name of the folder where andami can find the plugin for the
|
25 |
appgvSIG extensions -->
|
26 |
<gvsig.extension.install.dir.name>${extensions.dir.name}/org.gvsig.app/</gvsig.extension.install.dir.name> |
27 |
|
28 |
<!-- Absolute gvSIG extensions installation folder -->
|
29 |
<gvsig.extensions.dir>${gvsig.install.dir}/${extensions.dir.name}</gvsig.extensions.dir> |
30 |
<!-- Absolute current extension installation folder into gvSIG -->
|
31 |
<extension.install.dir>${gvsig.install.dir}/${extension.install.dir.name}</extension.install.dir> |
32 |
<!-- Maven assembly plugin configuration file for the current extension,
|
33 |
relative to the extension folder. -->
|
34 |
<extension.distribution.file>
|
35 |
distribution/distribution.xml |
36 |
</extension.distribution.file>
|
37 |
<!-- Extension installation library dependencies folder -->
|
38 |
<library-dir>lib</library-dir> |
39 |
<!-- Package info property values -->
|
40 |
<package.info.state>devel</package.info.state> |
41 |
<package.info.official>true</package.info.official> |
42 |
<package.info.operatingSystem>all</package.info.operatingSystem> |
43 |
<package.info.architecture>all</package.info.architecture> |
44 |
<package.info.javaVM>j1_5</package.info.javaVM> |
45 |
<package.info.gvSIGVersion>2.0.0</package.info.gvSIGVersion> |
46 |
<package.info.baseDownloadURL>../../pool/${pom.artifactId}</package.info.baseDownloadURL> |
47 |
<package.info.dependencies /> |
48 |
<package.info.owner>gvSIG Association</package.info.owner> |
49 |
<package.info.sourcesURL>${project.scm.url}</package.info.sourcesURL> |
50 |
<package.info.webURL>http://www.gvsig.com</package.info.webURL> |
51 |
<package.info.categories /> |
52 |
</properties>
|
53 |
|
54 |
<profiles>
|
55 |
<profile>
|
56 |
<id>install-extension</id> |
57 |
<activation>
|
58 |
<activeByDefault>true</activeByDefault> |
59 |
<property>
|
60 |
<name>install-extension</name> |
61 |
</property>
|
62 |
</activation>
|
63 |
<build>
|
64 |
<plugins>
|
65 |
<!-- This plugin configuration is duplicated in the create-installer
|
66 |
profile, because of ordering issues, as it must be run before the org.gvsig.installer.maven
|
67 |
plugin -->
|
68 |
<plugin>
|
69 |
<artifactId>maven-assembly-plugin
|
70 |
</artifactId>
|
71 |
<configuration>
|
72 |
<descriptors>
|
73 |
<descriptor>${extension.distribution.file}</descriptor> |
74 |
</descriptors>
|
75 |
<ignoreDirFormatExtensions>true</ignoreDirFormatExtensions> |
76 |
<appendAssemblyId>true</appendAssemblyId> |
77 |
</configuration>
|
78 |
<executions>
|
79 |
<execution>
|
80 |
<id>make-assembly</id><!-- this is used for |
81 |
inheritance merges -->
|
82 |
<phase>install</phase><!-- append to the |
83 |
packaging phase. -->
|
84 |
<goals>
|
85 |
<goal>attached</goal> |
86 |
</goals>
|
87 |
</execution>
|
88 |
</executions>
|
89 |
</plugin>
|
90 |
<!-- This plugin configuration is duplicated in the create-installer
|
91 |
profile, because of ordering issues, as it must be run before the org.gvsig.installer.maven
|
92 |
plugin -->
|
93 |
<plugin>
|
94 |
<artifactId>maven-antrun-plugin</artifactId> |
95 |
<executions>
|
96 |
<execution>
|
97 |
<id>copy-to-andami</id> |
98 |
<phase>install</phase> |
99 |
<configuration>
|
100 |
<tasks>
|
101 |
<property name="project.packaging" value="${project.packaging}" /> |
102 |
<property name="gvsig.install.dir" value="${gvsig.install.dir}" /> |
103 |
<property name="distribution-final-name" value="${project.build.finalName}" /> |
104 |
<ant antfile="${base.tools.path}/ant/gvsig-extension-tasks.xml" target="make-extension-new" inheritRefs="true" /> |
105 |
</tasks>
|
106 |
</configuration>
|
107 |
<goals>
|
108 |
<goal>run</goal> |
109 |
</goals>
|
110 |
</execution>
|
111 |
</executions>
|
112 |
</plugin>
|
113 |
<plugin>
|
114 |
<artifactId>maven-clean-plugin</artifactId> |
115 |
<configuration>
|
116 |
<filesets>
|
117 |
<fileset>
|
118 |
<directory>${extension.install.dir}</directory> |
119 |
<includes>
|
120 |
<include>**</include> |
121 |
</includes>
|
122 |
</fileset>
|
123 |
</filesets>
|
124 |
</configuration>
|
125 |
</plugin>
|
126 |
<plugin>
|
127 |
<groupId>org.codehaus.mojo</groupId> |
128 |
<artifactId>properties-maven-plugin</artifactId> |
129 |
<version>1.0-alpha-2</version> |
130 |
<executions>
|
131 |
<execution>
|
132 |
<phase>initialize</phase> |
133 |
<goals>
|
134 |
<goal>read-project-properties</goal> |
135 |
</goals>
|
136 |
<configuration>
|
137 |
<files>
|
138 |
<file>buildNumber.properties</file> |
139 |
</files>
|
140 |
</configuration>
|
141 |
</execution>
|
142 |
</executions>
|
143 |
</plugin>
|
144 |
<!-- Create the package.info file for the plugin and
|
145 |
installer info in the compile phase. -->
|
146 |
<plugin>
|
147 |
<groupId>org.gvsig</groupId> |
148 |
<artifactId>org.gvsig.installer.maven</artifactId> |
149 |
<configuration>
|
150 |
<pluginsFolder>${gvsig.install.dir}/gvSIG/extensiones</pluginsFolder> |
151 |
<packageFolder>${gvsig.install.dir}/install/pool/${project.artifactId}</packageFolder> |
152 |
<buildNumber>${buildNumber}</buildNumber> |
153 |
<state>${package.info.state}</state> |
154 |
<official>${package.info.official}</official> |
155 |
<operatingSystem>${package.info.operatingSystem}</operatingSystem> |
156 |
<architecture>${package.info.architecture}</architecture> |
157 |
<javaVM>${package.info.javaVM}</javaVM> |
158 |
<gvSIGVersion>${package.info.gvSIGVersion}</gvSIGVersion> |
159 |
<baseDownloadURL>${package.info.baseDownloadURL}</baseDownloadURL> |
160 |
<pkgdependencies>${package.info.dependencies}</pkgdependencies> |
161 |
<owner>${package.info.owner}</owner> |
162 |
<sourcesURL>${package.info.sourcesURL}</sourcesURL> |
163 |
<webURL>${package.info.webURL}</webURL> |
164 |
<categories>${package.info.categories}</categories> |
165 |
</configuration>
|
166 |
<executions>
|
167 |
<execution>
|
168 |
<id>write-info</id> |
169 |
<phase>compile</phase> |
170 |
<goals>
|
171 |
<goal>write-info</goal> |
172 |
</goals>
|
173 |
</execution>
|
174 |
</executions>
|
175 |
</plugin>
|
176 |
</plugins>
|
177 |
</build>
|
178 |
</profile>
|
179 |
<profile>
|
180 |
<id>create-installer</id> |
181 |
<build>
|
182 |
<plugins>
|
183 |
<plugin>
|
184 |
<groupId>org.codehaus.mojo</groupId> |
185 |
<artifactId>buildnumber-maven-plugin</artifactId> |
186 |
<version>1.0-beta-2</version> |
187 |
<executions>
|
188 |
<execution>
|
189 |
<phase>validate</phase> |
190 |
<goals>
|
191 |
<goal>create</goal> |
192 |
</goals>
|
193 |
</execution>
|
194 |
</executions>
|
195 |
<configuration>
|
196 |
<format>{0,number,#}</format> |
197 |
<items>
|
198 |
<item>buildNumber</item> |
199 |
</items>
|
200 |
<doCheck>false</doCheck> |
201 |
<doUpdate>false</doUpdate> |
202 |
</configuration>
|
203 |
</plugin>
|
204 |
<!-- This plugin configuration is duplicated in the install-extension
|
205 |
profile, because of ordering issues, as it must be run before the org.gvsig.installer.maven
|
206 |
plugin -->
|
207 |
<plugin>
|
208 |
<artifactId>maven-assembly-plugin
|
209 |
</artifactId>
|
210 |
<configuration>
|
211 |
<descriptors>
|
212 |
<descriptor>${extension.distribution.file}</descriptor> |
213 |
</descriptors>
|
214 |
<ignoreDirFormatExtensions>true</ignoreDirFormatExtensions> |
215 |
<appendAssemblyId>true</appendAssemblyId> |
216 |
</configuration>
|
217 |
<executions>
|
218 |
<execution>
|
219 |
<id>make-assembly</id><!-- this is used for |
220 |
inheritance merges -->
|
221 |
<phase>install</phase><!-- append to the |
222 |
packaging phase. -->
|
223 |
<goals>
|
224 |
<goal>attached</goal> |
225 |
</goals>
|
226 |
</execution>
|
227 |
</executions>
|
228 |
</plugin>
|
229 |
<!-- This plugin configuration is duplicated in the install-extension
|
230 |
profile, because of ordering issues, as it must be run before the org.gvsig.installer.maven
|
231 |
plugin -->
|
232 |
<plugin>
|
233 |
<artifactId>maven-antrun-plugin</artifactId> |
234 |
<executions>
|
235 |
<execution>
|
236 |
<id>copy-to-andami</id> |
237 |
<phase>install</phase> |
238 |
<configuration>
|
239 |
<tasks>
|
240 |
<property name="project.packaging" value="${project.packaging}" /> |
241 |
<property name="gvsig.install.dir" value="${gvsig.install.dir}" /> |
242 |
<property name="distribution-final-name" value="${project.build.finalName}" /> |
243 |
<ant antfile="${base.tools.path}/ant/gvsig-extension-tasks.xml" target="make-extension-new" inheritRefs="true" /> |
244 |
</tasks>
|
245 |
</configuration>
|
246 |
<goals>
|
247 |
<goal>run</goal> |
248 |
</goals>
|
249 |
</execution>
|
250 |
</executions>
|
251 |
</plugin>
|
252 |
<!-- Create the package.info file for the plugin and
|
253 |
installer info in the compile phase, and create the plugin installer in the
|
254 |
install phase. -->
|
255 |
<plugin>
|
256 |
<groupId>org.gvsig</groupId> |
257 |
<artifactId>org.gvsig.installer.maven</artifactId> |
258 |
<configuration>
|
259 |
<pluginsFolder>${gvsig.install.dir}/gvSIG/extensiones</pluginsFolder> |
260 |
<packageFolder>${gvsig.install.dir}/install/pool/${project.artifactId}</packageFolder> |
261 |
<buildNumber>${buildNumber}</buildNumber> |
262 |
<state>${package.info.state}</state> |
263 |
<official>${package.info.official}</official> |
264 |
<operatingSystem>${package.info.operatingSystem}</operatingSystem> |
265 |
<architecture>${package.info.architecture}</architecture> |
266 |
<javaVM>${package.info.javaVM}</javaVM> |
267 |
<gvSIGVersion>${package.info.gvSIGVersion}</gvSIGVersion> |
268 |
<baseDownloadURL>${package.info.baseDownloadURL}</baseDownloadURL> |
269 |
<pkgdependencies>${package.info.dependencies}</pkgdependencies> |
270 |
<owner>${package.info.owner}</owner> |
271 |
<sourcesURL>${package.info.sourcesURL}</sourcesURL> |
272 |
<webURL>${package.info.webURL}</webURL> |
273 |
</configuration>
|
274 |
<executions>
|
275 |
<execution>
|
276 |
<id>write-info</id> |
277 |
<phase>compile</phase> |
278 |
<goals>
|
279 |
<goal>write-info</goal> |
280 |
</goals>
|
281 |
</execution>
|
282 |
<execution>
|
283 |
<id>create-plugin-package</id> |
284 |
<phase>install</phase> |
285 |
<goals>
|
286 |
<goal>create-package</goal> |
287 |
</goals>
|
288 |
</execution>
|
289 |
<execution>
|
290 |
<id>create-plugin-package-index</id> |
291 |
<phase>install</phase> |
292 |
<goals>
|
293 |
<goal>create-package-index</goal> |
294 |
</goals>
|
295 |
</execution>
|
296 |
</executions>
|
297 |
</plugin>
|
298 |
</plugins>
|
299 |
</build>
|
300 |
</profile>
|
301 |
</profiles>
|
302 |
</project>
|