Hello lists,
My install of geojson module on Geotools2.5-M3 was failed because the
installation of json-lib-2.2.2-jdk15.jar with maven is not in the best way :
mvn install:install-file -Dfile=json-lib-2.2.2-jdk15.jar -DgroupId=net.sf
-DartifactId=net.sf.json -Dversion=2.5-M3 -Dpackaging=jar
My package net.sf.json-2.5-M3.jar is under local (.m2) directory:
~/.m2/repository/net/sf/net.sf.json/2.5-M3$
net.sf.json-2.5-M3.jar
mvn -o install was failed and this is the message :
[INFO] Compilation failure
/home/../work/geotools/geotools-2.5-M3/modules/unsupported/geojson/src/main/java/org/geotools/data/geojson/GeoJSONBuilder.java:[21,19]
package net.sf.json does not exist
/home/../work/geotools/geotools-2.5-M3/modules/unsupported/geojson/src/main/java/org/geotools/data/geojson/GeoJSONBuilder.java:[22,24]
package net.sf.json.util does not exist
My pom.xml is like here :
++added
</dependency>
<dependency>
<groupId>net.sf</groupId>
<artifactId>net.sf.json</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependencies>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-api</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-main</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-postgis</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
++added
<plugin>
<groupId>org.geotools.maven</groupId>
<artifactId>jar-collector</artifactId>
<version>2.5-M3</version>
<executions>
<execution>
<goals>
<goal>collect</goal>
</goals>
</execution>
</executions>
</plugin>
Thank you for help.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel