Statistics
| Revision:

root / branches / v2_0_0_prep / libraries / libMetadata / pom.xml @ 32058

History | View | Annotate | Download (5.29 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>org.gvsig.metadata</artifactId>
10
        <packaging>jar</packaging>
11
        <version>2.0-SNAPSHOT</version>
12
        <name>libMetadata</name>
13
        <url>http://gvsig.org</url>
14
        <parent>
15
                <groupId>org.gvsig</groupId>
16
                <artifactId>gvsig-base-library-pom</artifactId>
17
                <version>2.0-SNAPSHOT</version>
18
        </parent>        
19
        <distributionManagement>
20
                <site>
21
                        <id>gvsig-repository</id>
22
                        <url>${site-repository}/</url>
23
                </site>
24
        </distributionManagement>
25

    
26
        <properties>
27
                <build-dir>${basedir}/../build</build-dir>
28
        </properties>
29
        <dependencies>
30
                <dependency>
31
                        <groupId>org.gvsig</groupId>
32
                        <artifactId>org.gvsig.tools</artifactId>
33
                        <version>2.0-SNAPSHOT</version>
34
                </dependency>
35
        </dependencies>
36
        <build>
37
                <sourceDirectory>src</sourceDirectory>
38
                <testSourceDirectory>src-test</testSourceDirectory>
39
                <plugins>
40
                        <plugin>
41
                                <groupId>org.apache.maven.plugins</groupId>
42
                                <artifactId>maven-compiler-plugin</artifactId>
43
                                <configuration>
44
                                        <source>1.4</source>
45
                                        <target>1.4</target>
46
                                        <!-- put your configurations here -->
47
                                        <encoding>ISO-8859-1</encoding>
48
                                </configuration>
49
                        </plugin>
50
                        <plugin>
51
                                <groupId>org.apache.maven.plugins</groupId>
52
                                <artifactId>maven-jar-plugin</artifactId>
53
                                <configuration>
54
                                        <excludes>
55
                                                <exclude>**/simple/**</exclude>
56
                                        </excludes>
57
                                </configuration>
58
                                <executions>
59
                                        <!--
60
                                                Generates a jar file only with the libMetadata simple implementation.
61
                                        -->
62
                                        <execution>
63
                                                <id>simple</id>
64
                                                <!--phase>package</phase-->
65
                                                <goals>
66
                                                        <goal>jar</goal>
67
                                                </goals>
68
                                                <configuration>
69
                                                        <classifier>simple</classifier>
70
                                                        <excludes>
71
                                                                <exclude>NONE</exclude>
72
                                                        </excludes>
73
                                                        <includes>
74
                                                                <include>**/simple/**</include>
75
                                                        </includes>
76
                                                        <!--finalName>${project.build.finalName}</finalName-->
77
                                                </configuration>
78
                                        </execution>
79
                                </executions>
80
                        </plugin>
81
                        <plugin>
82
                                <artifactId>maven-antrun-plugin</artifactId>
83
                                <executions>
84
                                        <execution>
85
                                                <id>services</id>
86
                                                <phase>package</phase>
87
                                                <goals>
88
                                                        <goal>run</goal>
89
                                                </goals>
90
                                                <configuration>
91
                                                        <tasks>
92
                                                                <jar destfile="${project.build.directory}/${project.build.finalName}.jar"
93
                                                                        update="true">
94
                                                                        <fileset dir="${basedir}/resources/api" />
95
                                                                </jar>
96
                                                                <jar destfile="${project.build.directory}/${project.build.finalName}-simple.jar"
97
                                                                        update="true">
98
                                                                        <fileset dir="${basedir}/resources/simple" />
99
                                                                </jar>
100
                                                        </tasks>
101
                                                </configuration>
102
                                        </execution>
103
                                </executions>
104
                        </plugin>
105
                        <plugin>
106
                                <groupId>org.apache.maven.plugins</groupId>
107
                                <artifactId>maven-surefire-plugin</artifactId>
108
                                <configuration>
109
                                        <additionalClasspathElements>
110
                                                <additionalClasspathElement>${basedir}/resources/api</additionalClasspathElement>
111
                                                <additionalClasspathElement>${basedir}/resources/simple</additionalClasspathElement>
112
                                        </additionalClasspathElements>
113
                                </configuration>
114
                        </plugin>
115
                </plugins>
116
        </build>
117
        <profiles>
118
                <profile>
119
                        <id>eclipse-project</id>
120
                        <build>
121
                                <defaultGoal>antrun:run</defaultGoal>
122
                                <plugins>
123
                                        <plugin>
124
                                                <artifactId>maven-antrun-plugin</artifactId>
125
                                                <configuration>
126
                                                        <tasks>
127
                                                                <ant antfile="${build-dir}/ant-tasks/eclipse-tasks.xml"
128
                                                                        target="eclipse.all"/>
129
                                                        </tasks>
130
                                                </configuration>
131
                                        </plugin>
132
                                </plugins>
133
                        </build>                                
134
                </profile>                
135
        </profiles>
136
        <reporting>
137
                <plugins>
138
                        <plugin>
139
                                <groupId>org.apache.maven.plugins</groupId>
140
                                <artifactId>maven-javadoc-plugin</artifactId>
141
                                <reportSets>
142
                                        <reportSet>
143
                                                <id>api</id>
144
                                                <configuration>
145
                                                        <excludePackageNames>org.gvsig.metadata.simple</excludePackageNames>
146
                                                        <name>Javadoc: API</name>
147
                                                        <destDir>apidoc</destDir>
148
                                                        <windowtitle>API Documentation</windowtitle>
149
                                                        <links>
150
                                                                <link>http://java.sun.com/j2se/1.5.0/docs/api/</link>
151
                                                                <link>http://www.slf4j.org/api/</link>
152
                                                                <link>${site-repository}/org.gvsig.tools/2.0.0/apidocs/</link>
153
                                                                <link>${site-repository}/org.gvsig.i18n/2.0.0/apidocs/</link>
154
                                                        </links>
155
                                                </configuration>
156
                                                <reports>
157
                                                        <report>javadoc</report>
158
                                                </reports>
159
                                        </reportSet>
160
                                        <reportSet>
161
                                                <id>basic-impl</id>
162
                                                <configuration>
163
                                                        <doctitle>${project.name} ${project.version} Basic Implementation
164
                                                                </doctitle>
165
                                                        <subpackages>org.gvsig.metadata.simple</subpackages>
166
                                                        <name>Javadoc: basic impl</name>
167
                                                        <destDir>basicimpldoc</destDir>
168
                                                        <windowtitle>Basic implementation Documentation</windowtitle>
169
                                                        <links>
170
                                                                <link>http://java.sun.com/j2se/1.5.0/docs/api/</link>
171
                                                                <link>http://www.slf4j.org/api/</link>
172
                                                                <link>../apidoc/</link>
173
                                                                <link>${site-repository}/org.gvsig.tools/2.0.0/apidocs/</link>
174
                                                                <link>${site-repository}/org.gvsig.i18n/2.0.0/apidocs/</link>
175
                                                        </links>
176
                                                </configuration>
177
                                                <reports>
178
                                                        <report>javadoc</report>
179
                                                </reports>
180
                                        </reportSet>
181
                                </reportSets>
182
                        </plugin>
183
                </plugins>
184
        </reporting>
185
</project>