gvsig-tools / org.gvsig.maven.base / tags / 1.0.5 / org.gvsig.maven.base.extension.pom / pom.xml @ 138
History | View | Annotate | Download (5.35 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.5</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 current extension -->
|
29 |
<extension.install.dir.name>${extensions.dir.name}/${artifactId}</extension.install.dir.name> |
30 |
<!-- Name of the folder where andami can find the plugin for the appgvSIG extensions -->
|
31 |
<gvsig.extension.install.dir.name>${extensions.dir.name}/org.gvsig.app/</gvsig.extension.install.dir.name> |
32 |
|
33 |
<!-- Absolute gvSIG extensions installation folder -->
|
34 |
<gvsig.extensions.dir>${gvsig.install.dir}/${extensions.dir.name}</gvsig.extensions.dir> |
35 |
<!-- Absolute current extension installation folder into gvSIG -->
|
36 |
<extension.install.dir>${gvsig.install.dir}/${extension.install.dir.name}</extension.install.dir> |
37 |
<!--
|
38 |
Maven assembly plugin configuration file for the
|
39 |
current extension, relative to the extension folder.
|
40 |
-->
|
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 |
</properties>
|
47 |
|
48 |
<profiles>
|
49 |
<profile>
|
50 |
<id>install-extension</id> |
51 |
<activation>
|
52 |
<activeByDefault>true</activeByDefault> |
53 |
<property>
|
54 |
<name>install-extension</name> |
55 |
</property>
|
56 |
</activation>
|
57 |
<build>
|
58 |
<plugins>
|
59 |
<plugin>
|
60 |
<artifactId>maven-assembly-plugin
|
61 |
</artifactId>
|
62 |
<configuration>
|
63 |
<descriptors>
|
64 |
<descriptor>${extension.distribution.file}</descriptor> |
65 |
</descriptors>
|
66 |
<ignoreDirFormatExtensions>true</ignoreDirFormatExtensions> |
67 |
<appendAssemblyId>true</appendAssemblyId> |
68 |
</configuration>
|
69 |
<executions>
|
70 |
<execution>
|
71 |
<id>make-assembly</id><!-- this is used for inheritance merges --> |
72 |
<phase>install</phase><!-- append to the packaging phase. --> |
73 |
<goals>
|
74 |
<goal>attached</goal> |
75 |
</goals>
|
76 |
</execution>
|
77 |
</executions>
|
78 |
</plugin>
|
79 |
<plugin>
|
80 |
<artifactId>maven-antrun-plugin</artifactId> |
81 |
<executions>
|
82 |
<execution>
|
83 |
<id>copy-to-andami</id> |
84 |
<phase>install</phase> |
85 |
<configuration>
|
86 |
<tasks>
|
87 |
<property name="project.packaging" value="${project.packaging}" /> |
88 |
<property name="gvsig.install.dir" value="${gvsig.install.dir}" /> |
89 |
<property name="distribution-final-name" value="${project.build.finalName}" /> |
90 |
<ant antfile="${base.tools.path}/ant/gvsig-extension-tasks.xml" target="make-extension-new" inheritRefs="true" /> |
91 |
</tasks>
|
92 |
</configuration>
|
93 |
<goals>
|
94 |
<goal>run</goal> |
95 |
</goals>
|
96 |
</execution>
|
97 |
</executions>
|
98 |
</plugin>
|
99 |
<plugin>
|
100 |
<artifactId>maven-clean-plugin</artifactId> |
101 |
<configuration>
|
102 |
<filesets>
|
103 |
<fileset>
|
104 |
<directory>${extension.install.dir}</directory> |
105 |
<includes>
|
106 |
<include>**</include> |
107 |
</includes>
|
108 |
</fileset>
|
109 |
</filesets>
|
110 |
</configuration>
|
111 |
</plugin>
|
112 |
</plugins>
|
113 |
</build>
|
114 |
</profile>
|
115 |
<!-- TODO: Replace with the new installers generation -->
|
116 |
<profile>
|
117 |
<id>generate-installers</id> |
118 |
<activation>
|
119 |
<property>
|
120 |
<name>generate-install</name> |
121 |
</property>
|
122 |
</activation>
|
123 |
<build>
|
124 |
<plugins>
|
125 |
<plugin>
|
126 |
<artifactId>maven-assembly-plugin</artifactId> |
127 |
<configuration>
|
128 |
<descriptors>
|
129 |
<descriptor>
|
130 |
${distribution-win32-descriptor} |
131 |
</descriptor>
|
132 |
<descriptor>
|
133 |
${distribution-linux32-descriptor} |
134 |
</descriptor>
|
135 |
<!-- descriptor>
|
136 |
${distribution-mac-descriptor
|
137 |
</descriptor-->
|
138 |
<!--descriptor>
|
139 |
/distribution/source-distribution.xml
|
140 |
</descriptor-->
|
141 |
</descriptors>
|
142 |
<outputDirectory>
|
143 |
${distribution-output-directory} |
144 |
</outputDirectory>
|
145 |
<finalName>
|
146 |
${distribution-final-name} |
147 |
</finalName>
|
148 |
<appendAssemblyId>true</appendAssemblyId> |
149 |
<ignoreDirFormatExtensions>
|
150 |
true |
151 |
</ignoreDirFormatExtensions>
|
152 |
</configuration>
|
153 |
<executions>
|
154 |
<execution>
|
155 |
<id>make-assembly</id><!-- this is used for inheritance merges --> |
156 |
<phase>package</phase><!-- append to the packaging phase. --> |
157 |
<goals>
|
158 |
<goal>attached</goal><!-- goals == mojos --> |
159 |
</goals>
|
160 |
</execution>
|
161 |
</executions>
|
162 |
</plugin>
|
163 |
</plugins>
|
164 |
</build>
|
165 |
</profile>
|
166 |
</profiles>
|
167 |
</project>
|