Statistics
| Revision:

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

History | View | Annotate | Download (4.54 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-library-base-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
  </build>
39

    
40
  <profiles>
41
        <profile>
42
          <id>se</id>
43
          <activation>
44
            <activeByDefault>true</activeByDefault>
45
          </activation>
46
          
47
          <build>
48
                <plugins>
49
                        <plugin>
50
                                <groupId>org.apache.maven.plugins</groupId>
51
                                <artifactId>maven-compiler-plugin</artifactId>
52
                                <configuration>
53
                                        <source>1.4</source>
54
                                        <target>1.4</target>
55
                                        <!-- put your configurations here -->
56
                                        <encoding>ISO-8859-1</encoding>
57
                                </configuration>
58
                        </plugin>
59
                        <plugin>
60
                                <groupId>org.apache.maven.plugins</groupId>
61
                                <artifactId>maven-jar-plugin</artifactId>
62
                                <configuration>
63
                                  <excludes>
64
                                    <exclude>**/se/**</exclude>
65
                                  </excludes>
66
                        </configuration>                
67

    
68
                        <executions>
69
                          <!-- Generates a jar file only with the libCompat API. 
70
                          <execution>
71
                                <id>api</id>
72
                                <phase>package</phase>
73
                                <goals><goal>jar</goal></goals>
74
                                <configuration>
75
                                  <classifier>api</classifier>
76
                                  <excludes>
77
                                    <exclude>**/se/**</exclude>
78
                                  </excludes>
79
                                </configuration>
80
                          </execution>
81
                          -->
82
                          <!-- Generates a jar file only with the libCompat SE implementation. -->
83
                          <execution>
84
                                <id>se</id>
85
                                <phase>package</phase>
86
                                <goals><goal>jar</goal></goals>
87
                                <configuration>
88
                                  <classifier>se</classifier>
89
                                  <excludes>
90
                                    <exclude>NONE</exclude>
91
                                  </excludes>
92
                                  <includes>
93
                                          <include>**/se/**</include>
94
                                  </includes>
95
                                </configuration>
96
                          </execution>
97
                          <!-- Generates a jar file with the test, to be reused by other 
98
                               library implementations. -->
99
                          <execution>
100
                                <goals><goal>test-jar</goal></goals>
101
                          </execution>
102
                        </executions>
103
                  </plugin>
104
                </plugins>
105
          </build>
106
        </profile>
107
          
108
    <profile>
109
      <id>cdc</id>
110
          <activation>
111
            <activeByDefault>false</activeByDefault>
112
          </activation>
113
          <build>
114

    
115
                <plugins>
116
                    <plugin>
117
                <groupId>org.apache.maven.plugins</groupId>
118
                <artifactId>maven-compiler-plugin</artifactId>
119
                <configuration>
120
                  <excludes>
121
                          <exclude>**/se/**</exclude>
122
                  </excludes>
123
                  <testExcludes>
124
                          <exclude>**/se/**</exclude>
125
                  </testExcludes>
126
                </configuration>
127
              </plugin>
128
              
129
                  <plugin>
130
                        <groupId>org.apache.maven.plugins</groupId>
131
                        <artifactId>maven-jar-plugin</artifactId>
132
                                <configuration>
133
                                  <excludes>
134
                                    <exclude>**/se/**</exclude>
135
                                  </excludes>
136
                        </configuration>                
137
                        <executions>
138
                          <!-- Generates a jar file only with the libCompat API. 
139
                          <execution>
140
                                <id>api</id>
141
                                <phase>package</phase>
142
                                <goals><goal>jar</goal></goals>
143
                                <configuration>
144
                                  <classifier>api</classifier>
145
                                  <excludes>
146
                                    <exclude>**/se/**</exclude>
147
                                  </excludes>
148
                                </configuration>
149
                          </execution>
150
                          -->
151
                          <!-- Generates a jar file with the test, to be reused by other 
152
                               library implementations. -->
153
                          <execution>
154
                                <goals><goal>test-jar</goal></goals>
155
                          </execution>
156
                        </executions>
157
                  </plugin>
158
                  
159
                </plugins>
160
          </build>
161
      
162
    </profile>
163
  </profiles>
164

    
165
        <reporting>
166
                <plugins>
167
                        <plugin>
168
                                <groupId>org.apache.maven.plugins</groupId>
169
                                <artifactId>maven-javadoc-plugin</artifactId>
170
                                <configuration>
171
                                        <doctitle>${project.name} ${project.version}</doctitle>
172
                                        <groups>
173
                                                <group>
174
                                                        <title>API</title>
175
                                                        <packages>org.gvsig.compat:org.gvsig.compat.lang</packages>
176
                                                </group>
177
                                                <group>
178
                                                        <title>Java SE implementation</title>
179
                                                        <packages>org.gvsig.compat.se*</packages>
180
                                                </group>
181
                                        </groups>
182
                                </configuration>
183
                        </plugin>
184
                </plugins>
185
        </reporting>
186
</project>