Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.plugin / org.gvsig.projection.app / org.gvsig.projection.app.cresques / pom.xml @ 40656

History | View | Annotate | Download (8.88 KB)

1
<?xml version="1.0" encoding="UTF-8"?>
2
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3
  <modelVersion>4.0.0</modelVersion>
4
  <artifactId>org.gvsig.projection.app.cresques</artifactId>
5
  <packaging>jar</packaging>
6
  <name>CRS: basic management (Cresques based, java)</name>
7
  <description>Basic CRS management implementation based on the Cresques java library. 
8
Provides basic management of CRS for a very reduced set of CRS, has features such as:
9
- Allows setting the coordinate reference system (CRS), by default, in views and layers.
10
- Supports conversion of coordinates (no datum changing).
11
- Supports transformation of coordinates (datum changing).
12
</description>
13
  <parent>
14
      <groupId>org.gvsig</groupId>
15
      <artifactId>org.gvsig.projection.app</artifactId>
16
      <version>2.0.16</version>
17
  </parent>
18
  
19
  
20
    <repositories>
21
      <repository>
22
          <id>osgeo</id>
23
          <name>Open Source Geospatial Foundation</name>
24
          <url>http://download.osgeo.org/webdav/geotools</url>
25
          <releases>
26
              <enabled>true</enabled>
27
              <updatePolicy>never</updatePolicy>
28
              <checksumPolicy>warn</checksumPolicy>
29
          </releases>
30
          <snapshots>
31
              <enabled>false</enabled>
32
          </snapshots>
33
      </repository>
34
    </repositories>
35
  
36
  
37
  <dependencies>
38
     <dependency>
39
         <groupId>javax.units</groupId>
40
         <artifactId>jsr108</artifactId>
41
         <scope>runtime</scope>
42
       </dependency>
43
      <dependency>
44
          <groupId>org.gvsig</groupId>
45
          <artifactId>org.gvsig.andami</artifactId>
46
          <scope>provided</scope>
47
      </dependency>
48
      <dependency>
49
          <groupId>org.gvsig</groupId>
50
          <artifactId>org.gvsig.i18n</artifactId>
51
          <scope>provided</scope>
52
      </dependency>
53
      <dependency>
54
          <groupId>org.slf4j</groupId>
55
          <artifactId>slf4j-api</artifactId>
56
          <scope>provided</scope>
57
      </dependency>
58

    
59
      <dependency>
60
          <groupId>org.gvsig</groupId>
61
          <artifactId>org.gvsig.projection.cresques.ui</artifactId>
62
          <scope>runtime</scope>
63
      </dependency>
64
      <dependency>
65
          <groupId>org.gvsig</groupId>
66
          <artifactId>org.gvsig.projection.api</artifactId>
67
          <scope>runtime</scope>
68
      </dependency>
69
      <dependency>
70
        <groupId>org.opengis</groupId>
71
        <artifactId>geoapi</artifactId>
72
        <scope>runtime</scope>
73
      </dependency>
74
      <dependency>
75
        <groupId>javax.media</groupId>
76
        <artifactId>jai_core</artifactId>
77
        <scope>runtime</scope>
78
      </dependency>
79
      <dependency>
80
        <groupId>javax.media</groupId>
81
        <artifactId>jai_codec</artifactId>
82
        <scope>runtime</scope>
83
      </dependency>
84
      <dependency>
85
        <groupId>geojava</groupId>
86
        <artifactId>geojava</artifactId>
87
        <scope>runtime</scope>
88
      </dependency>
89
      <dependency>
90
        <groupId>org.geotools</groupId>
91
        <artifactId>gt2-legacy</artifactId>
92
        <scope>runtime</scope>
93
      </dependency>
94
      <dependency>
95
        <groupId>org.geotools</groupId>
96
        <artifactId>gt2-main</artifactId>
97
        <scope>runtime</scope>
98
      </dependency>
99
      <dependency>
100
        <groupId>org.geotools</groupId>
101
        <artifactId>gt2-referencing</artifactId>
102
        <scope>runtime</scope>
103
      </dependency>
104
      <dependency>
105
        <groupId>commons-dbcp</groupId>
106
        <artifactId>commons-dbcp</artifactId>
107
        <scope>runtime</scope>
108
      </dependency>
109
      <dependency>
110
        <groupId>commons-collections</groupId>
111
        <artifactId>commons-collections</artifactId>
112
        <scope>runtime</scope>
113
      </dependency>
114
      <dependency>
115
          <groupId>org.gvsig</groupId>
116
          <artifactId>org.gvsig.projection.cresques.impl</artifactId>
117
          <scope>runtime</scope>
118
      </dependency>
119

    
120
  </dependencies>
121

    
122
  <properties>
123
      <gvsig.package.info.codealias>org.gvsig.projection.app.mainplugin</gvsig.package.info.codealias>
124
          <gvsig.package.info.official>true</gvsig.package.info.official>
125
          <gvsig.package.info.dependencies>conflict: org.gvsig.projection.app.proj4j -ge 1</gvsig.package.info.dependencies>
126
  </properties>
127

    
128
  <profiles>
129
      <profile>
130
        <id>gvsig-plugin</id>
131
        <activation>
132
          <file>
133
            <exists>buildNumber.properties</exists>
134
          </file>
135
        </activation>
136
        <build>
137
          <plugins>
138

    
139
            <plugin>
140
                <artifactId>maven-assembly-plugin</artifactId>
141
                <executions>
142
                  <execution>
143
                    <id>gvsig-plugin-package</id>
144
                    <phase>package</phase>
145
                    <goals>
146
                        <goal>single</goal>
147
                    </goals>
148
                  </execution>
149
                </executions>
150
            </plugin>
151

    
152
            <plugin>
153
              <artifactId>maven-clean-plugin</artifactId>
154
              <configuration>
155
                <skip>false</skip>
156
                <failOnError>true</failOnError>
157
                <filesets>
158
                  <fileset>
159
                    <directory>${gvsig.product.folder.path}/gvSIG/extensiones/${project.artifactId}</directory>
160
                  </fileset>
161
                </filesets>
162
              </configuration>
163
              <executions>
164
                <execution>
165
                  <id>default-clean</id>
166
                  <phase>clean</phase>
167
                </execution>
168
              </executions>
169
            </plugin>
170

    
171

    
172
            <plugin>
173
              <groupId>org.codehaus.gmaven</groupId>
174
              <artifactId>gmaven-plugin</artifactId>
175
              <executions>
176

    
177
                <execution>
178
                  <id>increase-build-number</id>
179
                  <phase>process-sources</phase>
180
                  <goals>
181
                    <goal>execute</goal>
182
                  </goals>
183
                </execution>
184

    
185
                <execution>
186
                  <id>build-package-info</id>
187
                  <phase>prepare-package</phase>
188
                  <goals>
189
                    <goal>execute</goal>
190
                  </goals>
191
                </execution>
192

    
193
                <execution>
194
                  <id>build-package-index</id>
195
                  <phase>package</phase>
196
                  <goals>
197
                    <goal>execute</goal>
198
                  </goals>
199
                </execution>
200

    
201
                <execution>
202
                  <id>install-plugin</id>
203
                  <phase>install</phase>
204
                  <goals>
205
                    <goal>execute</goal>
206
                  </goals>
207
                  <configuration>
208
                    <source><![CDATA[
209
                      //
210
                      // Don't install the gvsig plugin by default in the product/gvSIG/extensiones,
211
                      // only install the package in the product/install folder.
212
                      //
213
                      ant = new AntBuilder()
214
                      pkgname = "gvSIG-desktop-" + 
215
                        project.properties["gvsig.package.info.gvSIGVersion"] + "-" + 
216
                        project.artifactId + "-" + 
217
                        project.properties["gvsig.package.info.version"] + "-" + 
218
                        project.properties["buildNumber"] + "-" + 
219
                        project.properties["gvsig.package.info.state"] + "-" + 
220
                        project.properties["gvsig.package.info.operatingSystem"] + "-" + 
221
                        project.properties["gvsig.package.info.architecture"] + "-" + 
222
                        project.properties["gvsig.package.info.javaVM"]
223
                        
224
                      source = project.basedir.getAbsolutePath() + "/target/" + pkgname + ".gvspkg.zip"
225
                      target = new File(project.properties["gvsig.product.folder.path"] + 
226
                        "/install/" + 
227
                        project.artifactId + "/" +
228
                        pkgname + ".gvspkg")
229
                      target.getParentFile().mkdirs()
230

    
231
                      log.info("Copy plugin package from " + source + " to " + target)
232
                      ant.copy(file:source, tofile:target.getAbsolutePath())
233

    
234
                      source  = project.basedir.getAbsolutePath() + "/target/" + pkgname + ".gvspki"
235
                      target = project.properties["gvsig.product.folder.path"] + 
236
                        "/install/" + 
237
                        project.artifactId + "/" +
238
                        pkgname + ".gvspki"
239
                      log.info("Copy plugin package index from " + source + " to " + target)
240
                      ant.copy(file:source, tofile:target)
241

    
242
                    ]]></source>
243
                  </configuration>
244
                </execution>
245

    
246
              </executions>
247
            </plugin>
248

    
249
          </plugins>
250
        </build>
251
      </profile>
252

    
253
  </profiles>
254

    
255
</project>
256