root / trunk / build / libraries-pom / pom.xml @ 73
History | View | Annotate | Download (7.15 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>gpe-base-library-pom</artifactId> |
10 |
<packaging>pom</packaging> |
11 |
<version>2.0.1</version> |
12 |
<name>gpe-base-library-pom</name> |
13 |
<parent>
|
14 |
<groupId>org.gvsig</groupId> |
15 |
<artifactId>gpe-base-pom</artifactId> |
16 |
<version>2.0.1</version> |
17 |
</parent>
|
18 |
<distributionManagement>
|
19 |
<site>
|
20 |
<id>gvsig-site-repository</id> |
21 |
<url>${site-repository}/</url> |
22 |
</site>
|
23 |
</distributionManagement>
|
24 |
|
25 |
<description>
|
26 |
Base POM for all GvSIG libraries projects. This pom knows how to |
27 |
build and made an libraries for GvSIG. The property |
28 |
"gvsig-path" must be set up correctly. |
29 |
</description>
|
30 |
<properties>
|
31 |
<build-dir>${basedir}/..</build-dir> |
32 |
</properties>
|
33 |
<build>
|
34 |
<sourceDirectory>src</sourceDirectory> |
35 |
<testSourceDirectory>src-test</testSourceDirectory> |
36 |
<plugins>
|
37 |
<plugin>
|
38 |
<artifactId>maven-clean-plugin</artifactId> |
39 |
<configuration>
|
40 |
<filesets>
|
41 |
<fileset>
|
42 |
<directory>${user.home}/.depman/</directory> |
43 |
<includes>
|
44 |
<include>**</include> |
45 |
</includes>
|
46 |
</fileset>
|
47 |
</filesets>
|
48 |
<followSymLinks>true</followSymLinks> |
49 |
</configuration>
|
50 |
</plugin>
|
51 |
</plugins>
|
52 |
</build>
|
53 |
<!--
|
54 |
<modules>
|
55 |
<module>../libraries-jni-pom</module>
|
56 |
</modules>
|
57 |
-->
|
58 |
<profiles>
|
59 |
<profile>
|
60 |
<id>windows-profile</id> |
61 |
<activation>
|
62 |
<os>
|
63 |
<family>windows</family> |
64 |
</os>
|
65 |
</activation>
|
66 |
<properties>
|
67 |
<native-platform>win</native-platform> |
68 |
<native-distribution>nt</native-distribution> |
69 |
<native-compiler>vs8</native-compiler> |
70 |
<native-arch>i386</native-arch> |
71 |
<native-libraryType>dynamic</native-libraryType> |
72 |
<native-classifier>${native-platform}-${native-distribution}-${native-compiler}-${native-arch}-${native-libraryType}</native-classifier> |
73 |
</properties>
|
74 |
<build>
|
75 |
<plugins>
|
76 |
<plugin>
|
77 |
<groupId>org.apache.maven.plugins</groupId> |
78 |
<artifactId>maven-dependency-plugin</artifactId> |
79 |
<executions>
|
80 |
<execution>
|
81 |
<id>unpack-dependencies</id> |
82 |
<phase>generate-sources</phase> |
83 |
<goals>
|
84 |
<goal>unpack-dependencies</goal> |
85 |
</goals>
|
86 |
<configuration>
|
87 |
<includeTypes>tar.gz</includeTypes> |
88 |
<outputDirectory>${user.home}/.depman</outputDirectory> |
89 |
<overWriteReleases>true</overWriteReleases> |
90 |
<overWriteSnapshots>true</overWriteSnapshots> |
91 |
</configuration>
|
92 |
</execution>
|
93 |
</executions>
|
94 |
</plugin>
|
95 |
</plugins>
|
96 |
</build>
|
97 |
</profile>
|
98 |
<profile>
|
99 |
<id>linux-profile</id> |
100 |
<activation>
|
101 |
<os>
|
102 |
<family>linux</family> |
103 |
</os>
|
104 |
</activation>
|
105 |
<properties>
|
106 |
<native-platform>linux</native-platform> |
107 |
<native-distribution>Ubuntu-9.04</native-distribution> |
108 |
<native-compiler>gcc4</native-compiler> |
109 |
<native-arch>i386</native-arch> |
110 |
<native-libraryType>dynamic</native-libraryType> |
111 |
<native-classifier>${native-platform}-${native-distribution}-${native-compiler}-${native-arch}-${native-libraryType}</native-classifier> |
112 |
</properties>
|
113 |
<build>
|
114 |
<plugins>
|
115 |
<plugin>
|
116 |
<groupId>org.apache.maven.plugins</groupId> |
117 |
<artifactId>maven-dependency-plugin</artifactId> |
118 |
<executions>
|
119 |
<execution>
|
120 |
<id>copy-dependencies</id> |
121 |
<phase>generate-sources</phase> |
122 |
<goals>
|
123 |
<goal>copy-dependencies</goal> |
124 |
</goals>
|
125 |
<configuration>
|
126 |
<includeTypes>tar.gz</includeTypes> |
127 |
<outputDirectory>${project.build.directory}/native_dependencies</outputDirectory> |
128 |
<overWriteReleases>true</overWriteReleases> |
129 |
<overWriteSnapshots>true</overWriteSnapshots> |
130 |
<overWriteIfNewer>true</overWriteIfNewer> |
131 |
</configuration>
|
132 |
</execution>
|
133 |
</executions>
|
134 |
</plugin>
|
135 |
<plugin>
|
136 |
<groupId>org.codehaus.mojo</groupId> |
137 |
<artifactId>exec-maven-plugin</artifactId> |
138 |
<executions>
|
139 |
<execution>
|
140 |
<id>unpack-dependencies</id> |
141 |
<phase>generate-sources</phase> |
142 |
<goals>
|
143 |
<goal>exec</goal> |
144 |
</goals>
|
145 |
<configuration>
|
146 |
<executable>sh</executable> |
147 |
<arguments>
|
148 |
<argument>${build-dir}/scripts/unpack-dependencies.sh</argument> |
149 |
<argument>${project.build.directory}/native_dependencies</argument> |
150 |
<argument>${user.home}/.depman</argument> |
151 |
</arguments>
|
152 |
</configuration>
|
153 |
</execution>
|
154 |
</executions>
|
155 |
</plugin>
|
156 |
</plugins>
|
157 |
</build>
|
158 |
</profile>
|
159 |
<profile>
|
160 |
<id>mac-profile</id> |
161 |
<activation>
|
162 |
<os>
|
163 |
<family>mac</family> |
164 |
</os>
|
165 |
</activation>
|
166 |
<properties>
|
167 |
<native-platform>mac</native-platform> |
168 |
<native-distribution>10.5</native-distribution> |
169 |
<native-compiler>gcc4</native-compiler> |
170 |
<native-arch>universal</native-arch> |
171 |
<native-libraryType>dynamic</native-libraryType> |
172 |
<native-classifier>${native-platform}-${native-distribution}-${native-compiler}-${native-arch}-${native-libraryType}</native-classifier> |
173 |
</properties>
|
174 |
<build>
|
175 |
<plugins>
|
176 |
<plugin>
|
177 |
<groupId>org.apache.maven.plugins</groupId> |
178 |
<artifactId>maven-dependency-plugin</artifactId> |
179 |
<executions>
|
180 |
<execution>
|
181 |
<id>copy-dependencies</id> |
182 |
<phase>generate-sources</phase> |
183 |
<goals>
|
184 |
<goal>copy-dependencies</goal> |
185 |
</goals>
|
186 |
<configuration>
|
187 |
<includeTypes>tar.gz</includeTypes> |
188 |
<outputDirectory>${project.build.directory}/native_dependencies</outputDirectory> |
189 |
<overWriteReleases>true</overWriteReleases> |
190 |
<overWriteSnapshots>true</overWriteSnapshots> |
191 |
<overWriteIfNewer>true</overWriteIfNewer> |
192 |
</configuration>
|
193 |
</execution>
|
194 |
</executions>
|
195 |
</plugin>
|
196 |
<plugin>
|
197 |
<groupId>org.codehaus.mojo</groupId> |
198 |
<artifactId>exec-maven-plugin</artifactId> |
199 |
<executions>
|
200 |
<execution>
|
201 |
<id>unpack-dependencies</id> |
202 |
<phase>generate-sources</phase> |
203 |
<goals>
|
204 |
<goal>exec</goal> |
205 |
</goals>
|
206 |
<configuration>
|
207 |
<executable>sh</executable> |
208 |
<arguments>
|
209 |
<argument>${build-dir}/scripts/unpack-dependencies.sh</argument> |
210 |
<argument>${project.build.directory}/native_dependencies</argument> |
211 |
<argument>${user.home}/.depman</argument> |
212 |
</arguments>
|
213 |
</configuration>
|
214 |
</execution>
|
215 |
</executions>
|
216 |
</plugin>
|
217 |
</plugins>
|
218 |
</build>
|
219 |
</profile>
|
220 |
<profile>
|
221 |
<id>eclipse-project</id> |
222 |
<build>
|
223 |
<plugins>
|
224 |
<plugin>
|
225 |
<artifactId>maven-antrun-plugin</artifactId> |
226 |
<configuration>
|
227 |
<tasks>
|
228 |
<ant antfile="${build-dir}/ant-tasks/eclipse-tasks.xml" |
229 |
target="eclipse.eclipse"/> |
230 |
</tasks>
|
231 |
</configuration>
|
232 |
</plugin>
|
233 |
</plugins>
|
234 |
</build>
|
235 |
</profile>
|
236 |
</profiles>
|
237 |
</project>
|