Commit f669624d authored by Matija Obreza's avatar Matija Obreza

Mavenizing

parent 1edcfb70
......@@ -19,12 +19,36 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.genesys2</groupId>
<groupId>org.genesys-pgr</groupId>
<artifactId>genesys2-server</artifactId>
<name>Genesys 2 Server</name>
<packaging>war</packaging>
<version>0.9.1</version>
<url>https://www.genesys-pgr.org</url>
<description>Genesys 2 Server</description>
<licenses>
<license>
<name>The Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<scm>
<connection>https://bitbucket.org/genesys2/genesys2-server.git</connection>
<developerConnection>scm:git:git@bitbucket.org:genesys2/genesys2-server.git</developerConnection>
<url>git@bitbucket.org:genesys2/genesys2-server.git</url>
</scm>
<organization>
<name>Global Crop Diversity Trust</name>
<url>https://www.croptrust.org</url>
</organization>
<issueManagement>
<url>https://bitbucket.org/genesys2/genesys2-server/issues</url>
</issueManagement>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
......@@ -80,37 +104,18 @@
<id>central</id>
<url>http://repo.maven.apache.org/maven2</url>
</repository>
<!-- <repository>
<id>JBOSS</id>
<url>http://repository.jboss.org/nexus/content/groups/public</url>
</repository>
<repository>
<id>ibiblio.mirrors</id>
<name>ibiblio.mirrors</name>
<url>http://mirrors.ibiblio.org/pub/mirrors/maven2</url>
</repository> -->
<!-- <repository>
<id>spring-social-google</id>
<name>Spring Social Google</name>
<url>http://gabiaxel.github.io/maven/</url>
</repository> -->
<!-- <repository>
<id>sonatype-oss</id>
<url>https://oss.sonatype.org/content/groups/public</url>
</repository>
<repository>
<id>releases</id>
<name>Releases</name>
<url>https://oss.sonatype.org/content/repositories/releases</url>
<!-- <repository> <id>JBOSS</id> <url>http://repository.jboss.org/nexus/content/groups/public</url>
</repository> <repository> <id>ibiblio.mirrors</id> <name>ibiblio.mirrors</name>
<url>http://mirrors.ibiblio.org/pub/mirrors/maven2</url> </repository> -->
<!-- <repository> <id>spring-social-google</id> <name>Spring Social Google</name>
<url>http://gabiaxel.github.io/maven/</url> </repository> -->
<!-- <repository> <id>sonatype-oss</id> <url>https://oss.sonatype.org/content/groups/public</url>
</repository> <repository> <id>releases</id> <name>Releases</name> <url>https://oss.sonatype.org/content/repositories/releases</url>
</repository> -->
</repositories>
<!-- <pluginRepositories>
<pluginRepository>
<id>sonatype mirror</id>
<url>http://search.maven.org/remotecontent?filepath=</url>
</pluginRepository>
</pluginRepositories> -->
<!-- <pluginRepositories> <pluginRepository> <id>sonatype mirror</id> <url>http://search.maven.org/remotecontent?filepath=</url>
</pluginRepository> </pluginRepositories> -->
<dependencies>
......@@ -484,11 +489,6 @@
<version>4.0.4</version>
</dependency>
<dependency>
<groupId>org.genesys2</groupId>
<artifactId>transifex-client</artifactId>
<version>0.2-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
......@@ -505,9 +505,14 @@
<version>4.3.6</version>
</dependency>
<dependency>
<groupId>org.genesys</groupId>
<groupId>org.genesys-pgr</groupId>
<artifactId>transifex-client</artifactId>
<version>0.4-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.genesys-pgr</groupId>
<artifactId>worldclim-reader</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>0.0.3-SNAPSHOT</version>
</dependency>
</dependencies>
......@@ -709,19 +714,4 @@
</plugins>
</pluginManagement>
</build>
<version>0.9.1</version>
<url>http://genesys-pgr.org</url>
<description>Genesys 2 Server</description>
<organization>
<name>Global Crop Diversity Trust</name>
<url>https://www.croptrust.org</url>
</organization>
<scm>
<connection>scm:git:git@bitbucket.org:genesys2/genesys2-server.git</connection>
<url>git@bitbucket.org:genesys2/genesys2-server.git</url>
</scm>
<issueManagement>
<url>https://bitbucket.org/genesys2/genesys2-server/issues</url>
</issueManagement>
</project>
......@@ -233,11 +233,11 @@ public class WorldClimUpdater implements InitializingBean {
Double lon = geo.getLongitude();
if (lat != null && lon != null) {
Integer tileIndex = WorldClimUtil.getTileIndex(5, lon, lat);
Long tileIndex = WorldClimUtil.getTileIndex(5, lon, lat);
if (tileIndex != null) {
tileIndexSet.add((long) tileIndex);
tileIndexSet.add(tileIndex);
if (geo.getTileIndex() == null) {
geo.setTileIndex((long) tileIndex);
geo.setTileIndex(tileIndex);
toSave.add(geo);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment