root / branches / v2_0_0_prep / libraries / libCompat / pom.xml @ 31493
History | View | Annotate | Download (7.45 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 |
|
9 |
<!-- The Basics -->
|
10 |
<groupId>org.gvsig</groupId> |
11 |
<artifactId>org.gvsig.compat</artifactId> |
12 |
<version>2.0-SNAPSHOT</version> |
13 |
|
14 |
<name>libCompat</name> |
15 |
<url>http://gvsig.org</url> |
16 |
<parent>
|
17 |
<groupId>org.gvsig</groupId> |
18 |
<artifactId>gvsig-base-library-pom</artifactId> |
19 |
<version>2.0-SNAPSHOT</version> |
20 |
</parent>
|
21 |
<distributionManagement>
|
22 |
<site>
|
23 |
<id>gvsig-site-repository</id> |
24 |
<url>${site-repository}/</url> |
25 |
</site>
|
26 |
</distributionManagement>
|
27 |
|
28 |
|
29 |
<properties>
|
30 |
<build-dir>${basedir}/../build</build-dir> |
31 |
</properties>
|
32 |
|
33 |
<dependencies>
|
34 |
<dependency>
|
35 |
<groupId>org.gvsig</groupId> |
36 |
<artifactId>org.gvsig.tools</artifactId> |
37 |
<version>2.0-SNAPSHOT</version> |
38 |
</dependency>
|
39 |
</dependencies>
|
40 |
|
41 |
<!-- Build Settings -->
|
42 |
<build>
|
43 |
<sourceDirectory>src</sourceDirectory> |
44 |
<testSourceDirectory>src-test</testSourceDirectory> |
45 |
<testResources>
|
46 |
<testResource>
|
47 |
<directory>${basedir}/resources-test</directory> |
48 |
</testResource>
|
49 |
</testResources>
|
50 |
</build>
|
51 |
|
52 |
<profiles>
|
53 |
<profile>
|
54 |
<id>se</id> |
55 |
<activation>
|
56 |
<activeByDefault>true</activeByDefault> |
57 |
</activation>
|
58 |
|
59 |
<build>
|
60 |
<plugins>
|
61 |
<plugin>
|
62 |
<groupId>org.apache.maven.plugins</groupId> |
63 |
<artifactId>maven-compiler-plugin</artifactId> |
64 |
<configuration>
|
65 |
<source>1.4</source> |
66 |
<target>1.4</target> |
67 |
<!-- put your configurations here -->
|
68 |
<encoding>ISO-8859-1</encoding> |
69 |
</configuration>
|
70 |
</plugin>
|
71 |
<plugin>
|
72 |
<groupId>org.apache.maven.plugins</groupId> |
73 |
<artifactId>maven-jar-plugin</artifactId> |
74 |
<configuration>
|
75 |
<excludes>
|
76 |
<exclude>**/se/**</exclude> |
77 |
</excludes>
|
78 |
</configuration>
|
79 |
|
80 |
<executions>
|
81 |
<!-- Generates a jar file only with the libCompat SE implementation. -->
|
82 |
<execution>
|
83 |
<id>se</id> |
84 |
<phase>package</phase> |
85 |
<goals>
|
86 |
<goal>jar</goal> |
87 |
</goals>
|
88 |
<configuration>
|
89 |
<classifier>se</classifier> |
90 |
<excludes>
|
91 |
<exclude>NONE</exclude> |
92 |
</excludes>
|
93 |
<includes>
|
94 |
<include>**/se/**</include> |
95 |
</includes>
|
96 |
</configuration>
|
97 |
</execution>
|
98 |
<!--
|
99 |
Generates a jar file with the test, to be reused by other library
|
100 |
implementations.
|
101 |
-->
|
102 |
<execution>
|
103 |
<goals>
|
104 |
<goal>test-jar</goal> |
105 |
</goals>
|
106 |
</execution>
|
107 |
</executions>
|
108 |
</plugin>
|
109 |
<plugin>
|
110 |
<artifactId>maven-antrun-plugin</artifactId> |
111 |
<executions>
|
112 |
<execution>
|
113 |
<id>services</id> |
114 |
<phase>package</phase> |
115 |
<goals>
|
116 |
<goal>run</goal> |
117 |
</goals>
|
118 |
<configuration>
|
119 |
<tasks>
|
120 |
<jar destfile="${project.build.directory}/${project.build.finalName}.jar" |
121 |
update="true"> |
122 |
<fileset dir="${basedir}/resources/api" /> |
123 |
</jar>
|
124 |
<jar destfile="${project.build.directory}/${project.build.finalName}-se.jar" |
125 |
update="true"> |
126 |
<fileset dir="${basedir}/resources/se" /> |
127 |
</jar>
|
128 |
</tasks>
|
129 |
</configuration>
|
130 |
</execution>
|
131 |
</executions>
|
132 |
</plugin>
|
133 |
<plugin>
|
134 |
<groupId>org.apache.maven.plugins</groupId> |
135 |
<artifactId>maven-surefire-plugin</artifactId> |
136 |
<configuration>
|
137 |
<additionalClasspathElements>
|
138 |
<additionalClasspathElement>${basedir}/resources/api</additionalClasspathElement> |
139 |
<additionalClasspathElement>${basedir}/resources/se</additionalClasspathElement> |
140 |
</additionalClasspathElements>
|
141 |
</configuration>
|
142 |
</plugin>
|
143 |
</plugins>
|
144 |
</build>
|
145 |
</profile>
|
146 |
|
147 |
<profile>
|
148 |
<id>cdc</id> |
149 |
<activation>
|
150 |
<activeByDefault>false</activeByDefault> |
151 |
</activation>
|
152 |
<build>
|
153 |
<plugins>
|
154 |
<plugin>
|
155 |
<groupId>org.apache.maven.plugins</groupId> |
156 |
<artifactId>maven-compiler-plugin</artifactId> |
157 |
<configuration>
|
158 |
<excludes>
|
159 |
<exclude>**/se/**</exclude> |
160 |
</excludes>
|
161 |
<testExcludes>
|
162 |
<exclude>**/se/**</exclude> |
163 |
</testExcludes>
|
164 |
</configuration>
|
165 |
</plugin>
|
166 |
|
167 |
<plugin>
|
168 |
<groupId>org.apache.maven.plugins</groupId> |
169 |
<artifactId>maven-jar-plugin</artifactId> |
170 |
<configuration>
|
171 |
<excludes>
|
172 |
<exclude>**/se/**</exclude> |
173 |
</excludes>
|
174 |
</configuration>
|
175 |
<executions>
|
176 |
<!--
|
177 |
Generates a jar file only with the libCompat API. <execution>
|
178 |
<id>api</id> <phase>package</phase> <goals><goal>jar</goal></goals>
|
179 |
<configuration> <classifier>api</classifier> <excludes>
|
180 |
<exclude>**/se/**</exclude> </excludes> </configuration> </execution>
|
181 |
-->
|
182 |
<!--
|
183 |
Generates a jar file with the test, to be reused by other library
|
184 |
implementations.
|
185 |
-->
|
186 |
<execution>
|
187 |
<goals>
|
188 |
<goal>test-jar</goal> |
189 |
</goals>
|
190 |
</execution>
|
191 |
</executions>
|
192 |
</plugin>
|
193 |
<plugin>
|
194 |
<artifactId>maven-antrun-plugin</artifactId> |
195 |
<executions>
|
196 |
<execution>
|
197 |
<id>services</id> |
198 |
<phase>package</phase> |
199 |
<goals>
|
200 |
<goal>run</goal> |
201 |
</goals>
|
202 |
<configuration>
|
203 |
<tasks>
|
204 |
<jar destfile="${project.build.directory}/${project.build.finalName}.jar" |
205 |
update="true"> |
206 |
<fileset dir="${basedir}/resources/api" /> |
207 |
</jar>
|
208 |
</tasks>
|
209 |
</configuration>
|
210 |
</execution>
|
211 |
</executions>
|
212 |
</plugin>
|
213 |
|
214 |
</plugins>
|
215 |
</build>
|
216 |
|
217 |
</profile>
|
218 |
<profile>
|
219 |
<id>eclipse-project</id> |
220 |
<build>
|
221 |
<plugins>
|
222 |
<plugin>
|
223 |
<artifactId>maven-antrun-plugin</artifactId> |
224 |
<configuration>
|
225 |
<tasks>
|
226 |
<ant antfile="${build-dir}/ant-tasks/eclipse-tasks.xml" |
227 |
target="eclipse.all"/> |
228 |
</tasks>
|
229 |
</configuration>
|
230 |
</plugin>
|
231 |
</plugins>
|
232 |
</build>
|
233 |
</profile>
|
234 |
</profiles>
|
235 |
|
236 |
<reporting>
|
237 |
<plugins>
|
238 |
<plugin>
|
239 |
<groupId>org.apache.maven.plugins</groupId> |
240 |
<artifactId>maven-javadoc-plugin</artifactId> |
241 |
<reportSets>
|
242 |
<reportSet>
|
243 |
<id>api</id> |
244 |
<configuration>
|
245 |
<excludePackageNames>org.gvsig.compat.se</excludePackageNames> |
246 |
<name>Javadoc: API</name> |
247 |
<destDir>apidoc</destDir> |
248 |
<windowtitle>API Documentation</windowtitle> |
249 |
<links>
|
250 |
<link>http://java.sun.com/j2se/1.5.0/docs/api/</link> |
251 |
<link>http://www.slf4j.org/api/</link> |
252 |
<link>${site-repository}/org.gvsig.tools/2.0.0/apidocs/</link> |
253 |
</links>
|
254 |
</configuration>
|
255 |
<reports>
|
256 |
<report>javadoc</report> |
257 |
</reports>
|
258 |
</reportSet>
|
259 |
<reportSet>
|
260 |
<id>se-impl</id> |
261 |
<configuration>
|
262 |
<doctitle>${project.name} ${project.version} SE
|
263 |
Implementation</doctitle>
|
264 |
<subpackages>org.gvsig.compat.se</subpackages> |
265 |
<name>Javadoc: SE impl</name> |
266 |
<destDir>sedoc</destDir> |
267 |
<windowtitle>SE implementation Documentation</windowtitle> |
268 |
<links>
|
269 |
<link>http://java.sun.com/j2se/1.5.0/docs/api/</link> |
270 |
<link>http://www.slf4j.org/api/</link> |
271 |
<link>../apidoc/</link> |
272 |
<link>${site-repository}/org.gvsig.tools/2.0.0/apidocs/</link> |
273 |
</links>
|
274 |
</configuration>
|
275 |
<reports>
|
276 |
<report>javadoc</report> |
277 |
</reports>
|
278 |
</reportSet>
|
279 |
</reportSets>
|
280 |
</plugin>
|
281 |
</plugins>
|
282 |
</reporting>
|
283 |
</project>
|