Statistics
| Revision:

svn-gvsig-desktop / tags / v2_0_0_Build_2023 / libraries / libCompat / pom.xml @ 41653

History | View | Annotate | Download (7.02 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-repository</id>
24
                        <url>${site-repository}/</url>
25
                </site>
26
        </distributionManagement>
27

    
28
        <properties>
29
                <build-dir>${basedir}/../build</build-dir>
30
        </properties>
31

    
32
        <dependencies>
33
                <dependency>
34
                        <groupId>org.gvsig</groupId>
35
                        <artifactId>org.gvsig.tools.lib</artifactId>
36
                </dependency>
37
        </dependencies>
38

    
39
        <!-- Build Settings -->
40
        <build>
41
                <sourceDirectory>src</sourceDirectory>
42
                <testSourceDirectory>src-test</testSourceDirectory>
43
                <testResources>
44
                        <testResource>
45
                                <directory>${basedir}/resources-test</directory>
46
                        </testResource>
47
                </testResources>
48
        </build>
49

    
50
        <profiles>
51
                <profile>
52
                        <id>se</id>
53
                        <activation>
54
                                <activeByDefault>true</activeByDefault>
55
                        </activation>
56

    
57
                        <build>
58
                                <plugins>
59
                                        <plugin>
60
                                                <groupId>org.apache.maven.plugins</groupId>
61
                                                <artifactId>maven-compiler-plugin</artifactId>
62
                                                <configuration>
63
                                                        <source>1.4</source>
64
                                                        <target>1.4</target>
65
                                                        <!-- put your configurations here -->
66
                                                        <encoding>ISO-8859-1</encoding>
67
                                                </configuration>
68
                                        </plugin>
69
                                        <plugin>
70
                                                <groupId>org.apache.maven.plugins</groupId>
71
                                                <artifactId>maven-jar-plugin</artifactId>
72
                                                <configuration>
73
                                                        <excludes>
74
                                                                <exclude>**/se/**</exclude>
75
                                                        </excludes>
76
                                                </configuration>
77

    
78
                                                <executions>
79
                                                        <!-- Generates a jar file only with the libCompat SE implementation. -->
80
                                                        <execution>
81
                                                                <id>se</id>
82
                                                                <phase>package</phase>
83
                                                                <goals>
84
                                                                        <goal>jar</goal>
85
                                                                </goals>
86
                                                                <configuration>
87
                                                                        <classifier>se</classifier>
88
                                                                        <excludes>
89
                                                                                <exclude>NONE</exclude>
90
                                                                        </excludes>
91
                                                                        <includes>
92
                                                                                <include>**/se/**</include>
93
                                                                        </includes>
94
                                                                </configuration>
95
                                                        </execution>
96
                                                        <!--
97
                                                                Generates a jar file with the test, to be reused by other library
98
                                                                implementations.
99
                                                        -->
100
                                                        <execution>
101
                                                                <goals>
102
                                                                        <goal>test-jar</goal>
103
                                                                </goals>
104
                                                        </execution>
105
                                                </executions>
106
                                        </plugin>
107
                                        <plugin>
108
                                                <artifactId>maven-antrun-plugin</artifactId>
109
                                                <executions>
110
                                                        <execution>
111
                                                                <id>services</id>
112
                                                                <phase>package</phase>
113
                                                                <goals>
114
                                                                        <goal>run</goal>
115
                                                                </goals>
116
                                                                <configuration>
117
                                                                        <tasks>
118
                                                                                <jar destfile="${project.build.directory}/${project.build.finalName}.jar"
119
                                                                                        update="true">
120
                                                                                        <fileset dir="${basedir}/resources/api" />
121
                                                                                </jar>
122
                                                                                <jar destfile="${project.build.directory}/${project.build.finalName}-se.jar"
123
                                                                                        update="true">
124
                                                                                        <fileset dir="${basedir}/resources/se" />
125
                                                                                </jar>
126
                                                                        </tasks>
127
                                                                </configuration>
128
                                                        </execution>
129
                                                </executions>
130
                                        </plugin>
131
                                        <plugin>
132
                                                <groupId>org.apache.maven.plugins</groupId>
133
                                                <artifactId>maven-surefire-plugin</artifactId>
134
                                                <configuration>
135
                                                        <additionalClasspathElements>
136
                                                                <additionalClasspathElement>${basedir}/resources/api</additionalClasspathElement>
137
                                                                <additionalClasspathElement>${basedir}/resources/se</additionalClasspathElement>
138
                                                        </additionalClasspathElements>
139
                                                </configuration>
140
                                        </plugin>
141
                                </plugins>
142
                        </build>
143
                </profile>
144

    
145
                <profile>
146
                        <id>cdc</id>
147
                        <activation>
148
                                <activeByDefault>false</activeByDefault>
149
                        </activation>
150
                        <build>
151
                                <plugins>
152
                                        <plugin>
153
                                                <groupId>org.apache.maven.plugins</groupId>
154
                                                <artifactId>maven-compiler-plugin</artifactId>
155
                                                <configuration>
156
                                                        <excludes>
157
                                                                <exclude>**/se/**</exclude>
158
                                                        </excludes>
159
                                                        <testExcludes>
160
                                                                <exclude>**/se/**</exclude>
161
                                                        </testExcludes>
162
                                                </configuration>
163
                                        </plugin>
164

    
165
                                        <plugin>
166
                                                <groupId>org.apache.maven.plugins</groupId>
167
                                                <artifactId>maven-jar-plugin</artifactId>
168
                                                <configuration>
169
                                                        <excludes>
170
                                                                <exclude>**/se/**</exclude>
171
                                                        </excludes>
172
                                                </configuration>
173
                                                <executions>
174
                                                        <!--
175
                                                                Generates a jar file only with the libCompat API. <execution>
176
                                                                <id>api</id> <phase>package</phase> <goals><goal>jar</goal></goals>
177
                                                                <configuration> <classifier>api</classifier> <excludes>
178
                                                                <exclude>**/se/**</exclude> </excludes> </configuration> </execution>
179
                                                        -->
180
                                                        <!--
181
                                                                Generates a jar file with the test, to be reused by other library
182
                                                                implementations.
183
                                                        -->
184
                                                        <execution>
185
                                                                <goals>
186
                                                                        <goal>test-jar</goal>
187
                                                                </goals>
188
                                                        </execution>
189
                                                </executions>
190
                                        </plugin>
191
                                        <plugin>
192
                                                <artifactId>maven-antrun-plugin</artifactId>
193
                                                <executions>
194
                                                        <execution>
195
                                                                <id>services</id>
196
                                                                <phase>package</phase>
197
                                                                <goals>
198
                                                                        <goal>run</goal>
199
                                                                </goals>
200
                                                                <configuration>
201
                                                                        <tasks>
202
                                                                                <jar destfile="${project.build.directory}/${project.build.finalName}.jar"
203
                                                                                        update="true">
204
                                                                                        <fileset dir="${basedir}/resources/api" />
205
                                                                                </jar>
206
                                                                        </tasks>
207
                                                                </configuration>
208
                                                        </execution>
209
                                                </executions>
210
                                        </plugin>
211

    
212
                                </plugins>
213
                        </build>
214

    
215
                </profile>
216
                <profile>
217
                        <id>eclipse-project</id>
218
                        <build>
219
                                <plugins>
220
                                        <plugin>
221
                                                <artifactId>maven-antrun-plugin</artifactId>
222
                                                <configuration>
223
                                                        <tasks>
224
                                                                <ant antfile="${build-dir}/ant-tasks/eclipse-tasks.xml" target="eclipse.all" />
225
                                                        </tasks>
226
                                                </configuration>
227
                                        </plugin>
228
                                </plugins>
229
                        </build>
230
                </profile>
231
        </profiles>
232

    
233
        <reporting>
234
                <plugins>
235
                        <plugin>
236
                                <groupId>org.apache.maven.plugins</groupId>
237
                                <artifactId>maven-javadoc-plugin</artifactId>
238
                                <reportSets>
239
                                        <reportSet>
240
                                                <id>api</id>
241
                                                <configuration>
242
                                                        <excludePackageNames>org.gvsig.compat.se</excludePackageNames>
243
                                                        <name>Javadoc: API</name>
244
                                                        <destDir>apidoc</destDir>
245
                                                        <windowtitle>API Documentation</windowtitle>
246
                                                </configuration>
247
                                                <reports>
248
                                                        <report>javadoc</report>
249
                                                </reports>
250
                                        </reportSet>
251
                                        <reportSet>
252
                                                <id>se-impl</id>
253
                                                <configuration>
254
                                                        <doctitle>${project.name} ${project.version} SE
255
                                                                Implementation</doctitle>
256
                                                        <subpackages>org.gvsig.compat.se</subpackages>
257
                                                        <name>Javadoc: SE impl</name>
258
                                                        <destDir>sedoc</destDir>
259
                                                        <windowtitle>SE implementation Documentation</windowtitle>
260
                                                        <links>
261
                                                                <link>../apidoc/</link>
262
                                                        </links>
263
                                                </configuration>
264
                                                <reports>
265
                                                        <report>javadoc</report>
266
                                                </reports>
267
                                        </reportSet>
268
                                </reportSets>
269
                        </plugin>
270
                </plugins>
271
        </reporting>
272
</project>