Statistics
| Revision:

svn-gvsig-desktop / branches / v2_0_0_prep / libraries / libCompat / pom.xml @ 36769

History | View | Annotate | Download (7.28 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
        <eclipse.project.name>libCompat</eclipse.project.name>
31
        </properties>
32

    
33
        <dependencies>
34
                <dependency>
35
                        <groupId>org.gvsig</groupId>
36
                        <artifactId>org.gvsig.tools.lib</artifactId>
37
            <scope>compile</scope>
38
                </dependency>
39
        <dependency>
40
            <groupId>org.slf4j</groupId>
41
            <artifactId>slf4j-log4j12</artifactId>
42
            <scope>runtime</scope>
43
        </dependency>
44
           </dependencies>
45

    
46
        <!-- Build Settings -->
47
        <build>
48
                <sourceDirectory>src</sourceDirectory>
49
                <testSourceDirectory>src-test</testSourceDirectory>
50
                <testResources>
51
                        <testResource>
52
                                <directory>${basedir}/resources-test</directory>
53
                        </testResource>
54
                </testResources>
55
        </build>
56

    
57
        <profiles>
58
                <profile>
59
                        <id>se</id>
60
                        <activation>
61
                                <activeByDefault>true</activeByDefault>
62
                        </activation>
63

    
64
                        <build>
65
                                <plugins>
66
                                        <plugin>
67
                                                <groupId>org.apache.maven.plugins</groupId>
68
                                                <artifactId>maven-compiler-plugin</artifactId>
69
                                                <configuration>
70
                                                        <source>1.4</source>
71
                                                        <target>1.4</target>
72
                                                        <!-- put your configurations here -->
73
                                                        <encoding>ISO-8859-1</encoding>
74
                                                </configuration>
75
                                        </plugin>
76
                                        <plugin>
77
                                                <groupId>org.apache.maven.plugins</groupId>
78
                                                <artifactId>maven-jar-plugin</artifactId>
79
                                                <configuration>
80
                                                        <excludes>
81
                                                                <exclude>**/se/**</exclude>
82
                                                        </excludes>
83
                                                </configuration>
84

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

    
152
                <profile>
153
                        <id>cdc</id>
154
                        <activation>
155
                                <activeByDefault>false</activeByDefault>
156
                        </activation>
157
                        <build>
158
                                <plugins>
159
                                        <plugin>
160
                                                <groupId>org.apache.maven.plugins</groupId>
161
                                                <artifactId>maven-compiler-plugin</artifactId>
162
                                                <configuration>
163
                                                        <excludes>
164
                                                                <exclude>**/se/**</exclude>
165
                                                        </excludes>
166
                                                        <testExcludes>
167
                                                                <exclude>**/se/**</exclude>
168
                                                        </testExcludes>
169
                                                </configuration>
170
                                        </plugin>
171

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

    
219
                                </plugins>
220
                        </build>
221

    
222
                </profile>
223
                <profile>
224
                        <id>eclipse-project</id>
225
                        <build>
226
                                <plugins>
227
                                        <plugin>
228
                                                <artifactId>maven-antrun-plugin</artifactId>
229
                                                <configuration>
230
                                                        <tasks>
231
                                                                <ant antfile="${build-dir}/ant-tasks/eclipse-tasks.xml" target="eclipse.all" />
232
                                                        </tasks>
233
                                                </configuration>
234
                                        </plugin>
235
                                </plugins>
236
                        </build>
237
                </profile>
238
        </profiles>
239

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