svn-gvsig-desktop / branches / v2_0_0_prep / build / extension-pom / pom.xml @ 29555
History | View | Annotate | Download (5.83 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 |
|
7 |
<modelVersion>4.0.0</modelVersion> |
8 |
<groupId>org.gvsig</groupId> |
9 |
<artifactId>gvsig-extension-base-pom</artifactId> |
10 |
<packaging>pom</packaging> |
11 |
<version>2.0-SNAPSHOT</version> |
12 |
<name>extension-base-pom</name> |
13 |
<parent>
|
14 |
<groupId>org.gvsig</groupId> |
15 |
<artifactId>gvsig-basepoms</artifactId> |
16 |
<version>2.0-SNAPSHOT</version> |
17 |
</parent>
|
18 |
<description> Base POM for all GvSIG extension projects. This pom knows
|
19 |
how to build and made an extension for GvSIG. The property |
20 |
"build-dir" must be set up correctly.</description>
|
21 |
<properties>
|
22 |
<!-- Path of the build project folder -->
|
23 |
<build-dir>${basedir}/..</build-dir> |
24 |
<!-- gvSIG installation folder -->
|
25 |
<gvsig.install.dir>${build-dir}/product</gvsig.install.dir> |
26 |
<!-- gvSIG extensions installation folder -->
|
27 |
<allextensions.install.dir>${gvsig.install.dir}/gvSIG/extensiones</allextensions.install.dir> |
28 |
<!-- Current extension installation folder -->
|
29 |
<extension.install.dir>${allextensions.install.dir}/${artifactId}</extension.install.dir> |
30 |
<!--
|
31 |
Maven assembly plugin configuration file for the
|
32 |
current extension, relative to the extension folder.
|
33 |
-->
|
34 |
<extension.distribution.file>
|
35 |
distribution/distribution.xml |
36 |
</extension.distribution.file>
|
37 |
<!-- Maven assembly plugin output folder -->
|
38 |
<extension-distribution>
|
39 |
gvSIG/extensiones/${artifactId} |
40 |
</extension-distribution>
|
41 |
<!-- Extension installation library folder -->
|
42 |
<library-dir>lib</library-dir> |
43 |
<!-- gvSIG app extension installation folder -->
|
44 |
<gvsig-extension-distribution>
|
45 |
gvSIG/extensiones/com.iver.cit.gvsig/ |
46 |
</gvsig-extension-distribution>
|
47 |
<!--
|
48 |
<distribution-final-name>${project.name}</distribution-final-name>
|
49 |
<config>config</config>
|
50 |
<plugin-name>${project.artifactId}</plugin-name>
|
51 |
<temporaly-build>
|
52 |
${project.build.directory}/${plugin-name}
|
53 |
</temporaly-build>
|
54 |
<extension-ant-base-dir>
|
55 |
${build-dir}/extension-pom
|
56 |
</extension-ant-base-dir>
|
57 |
|
58 |
<extensions-install-dir>
|
59 |
${build-dir}/product/gvSIG/extensiones
|
60 |
</extensions-install-dir>
|
61 |
<distribution-output-directory>
|
62 |
distribution/
|
63 |
</distribution-output-directory>
|
64 |
-->
|
65 |
</properties>
|
66 |
|
67 |
<profiles>
|
68 |
<profile>
|
69 |
<id>install-extension</id> |
70 |
<activation>
|
71 |
<activeByDefault>true</activeByDefault> |
72 |
<property>
|
73 |
<name>install-extension</name> |
74 |
</property>
|
75 |
</activation>
|
76 |
<build>
|
77 |
<plugins>
|
78 |
<plugin>
|
79 |
<artifactId>maven-assembly-plugin
|
80 |
</artifactId>
|
81 |
<configuration>
|
82 |
<descriptors>
|
83 |
<descriptor>${extension.distribution.file}</descriptor> |
84 |
</descriptors>
|
85 |
<ignoreDirFormatExtensions>true</ignoreDirFormatExtensions> |
86 |
<appendAssemblyId>true</appendAssemblyId> |
87 |
</configuration>
|
88 |
<executions>
|
89 |
<execution>
|
90 |
<id>make-assembly</id><!-- this is used for inheritance merges --> |
91 |
<phase>install</phase><!-- append to the packaging phase. --> |
92 |
<goals>
|
93 |
<goal>attached</goal> |
94 |
</goals>
|
95 |
</execution>
|
96 |
</executions>
|
97 |
</plugin>
|
98 |
<plugin>
|
99 |
<artifactId>maven-antrun-plugin</artifactId> |
100 |
<executions>
|
101 |
<execution>
|
102 |
<id>copy-to-andami</id> |
103 |
<phase>install</phase> |
104 |
<configuration>
|
105 |
<tasks>
|
106 |
<property name="project.packaging" value="${project.packaging}" /> |
107 |
<property name="gvsig.install.dir" value="${gvsig.install.dir}" /> |
108 |
<property name="distribution-final-name" value="${project.build.finalName}" /> |
109 |
<ant antfile="${build-dir}/ant-tasks/gvsig-extension-tasks.xml" |
110 |
target="make-extension-new" inheritRefs="true" /> |
111 |
</tasks>
|
112 |
</configuration>
|
113 |
<goals>
|
114 |
<goal>run</goal> |
115 |
</goals>
|
116 |
</execution>
|
117 |
</executions>
|
118 |
</plugin>
|
119 |
<plugin>
|
120 |
<artifactId>maven-clean-plugin</artifactId> |
121 |
<configuration>
|
122 |
<filesets>
|
123 |
<fileset>
|
124 |
<directory>${extension.install.dir}</directory> |
125 |
<includes>
|
126 |
<include>**</include> |
127 |
</includes>
|
128 |
</fileset>
|
129 |
</filesets>
|
130 |
</configuration>
|
131 |
</plugin>
|
132 |
</plugins>
|
133 |
</build>
|
134 |
</profile>
|
135 |
<profile>
|
136 |
<id>generate-installers</id> |
137 |
<activation>
|
138 |
<property>
|
139 |
<name>generate-install</name> |
140 |
</property>
|
141 |
</activation>
|
142 |
<build>
|
143 |
<plugins>
|
144 |
<plugin>
|
145 |
<artifactId>maven-assembly-plugin</artifactId> |
146 |
<configuration>
|
147 |
<descriptors>
|
148 |
<descriptor>
|
149 |
${distribution-win32-descriptor} |
150 |
</descriptor>
|
151 |
<descriptor>
|
152 |
${distribution-linux32-descriptor} |
153 |
</descriptor>
|
154 |
<!-- descriptor>
|
155 |
${distribution-mac-descriptor
|
156 |
</descriptor-->
|
157 |
<!--descriptor>
|
158 |
/distribution/source-distribution.xml
|
159 |
</descriptor-->
|
160 |
</descriptors>
|
161 |
<outputDirectory>
|
162 |
${distribution-output-directory} |
163 |
</outputDirectory>
|
164 |
<finalName>
|
165 |
${distribution-final-name} |
166 |
</finalName>
|
167 |
<appendAssemblyId>true</appendAssemblyId> |
168 |
<ignoreDirFormatExtensions>
|
169 |
true |
170 |
</ignoreDirFormatExtensions>
|
171 |
</configuration>
|
172 |
<executions>
|
173 |
<execution>
|
174 |
<id>make-assembly</id><!-- this is used for inheritance merges --> |
175 |
<phase>package</phase><!-- append to the packaging phase. --> |
176 |
<goals>
|
177 |
<goal>attached</goal><!-- goals == mojos --> |
178 |
</goals>
|
179 |
</execution>
|
180 |
</executions>
|
181 |
</plugin>
|
182 |
</plugins>
|
183 |
</build>
|
184 |
</profile>
|
185 |
</profiles>
|
186 |
</project>
|