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