Hello,

Please reply to the user list rather than to me directly.

I can't see anything wrong with your pom.xml file. The only unusual
thing is that you have "2.6.0" as the version of your own application
(rather than 1.0-SNAPSHOT for example) but that won't cause the
problems that you are seeing.

To double check, I have just used your pom.xml file for a new
application with a reference to SimpleFeatureSource in the main class.
It compiles without problem.

It is possible that Maven was not able to download the GeoTools
2.7-SNAPSHOT jars for you (e.g. if the server was having problems or
you are working behind a proxy) but in that case your IDE should be
showing errors on your import statements (e.g. import
org.geotools.data.simple.SimpleFeatureSource).

Please check your local maven repository and confirm that GeoTools
jars have been installed by Maven. E.g. for SimpleFeatureSource with
GeoTools version 2.7-SNAPSHOT you should see the following in your
local repository:

.../repository/org/geotools/gt-api/2.7-SNAPSHOT/gt-api-2.7-SNAPSHOT.jar

Michael


On 5 October 2011 14:56, santhosh polisetty <[email protected]> wrote:
> <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/maven-v4_0_0.xsd";>
> <modelVersion>4.0.0</modelVersion>
> <properties>
> <geotools.version>2.7-SNAPSHOT</geotools.version>
> </properties>
> <groupId>org.geotools</groupId>
> <artifactId>tutorial</artifactId>
> <packaging>jar</packaging>
> <version>2.6.0</version>
> <name>san</name>
> <url>http://maven.apache.org</url>
> <dependencies>
> <dependency>
> <groupId>junit</groupId>
> <artifactId>junit</artifactId>
> <version>3.8.1</version>
> <scope>test</scope>
> </dependency>
> <dependency>
> <groupId>org.geotools</groupId>
> <artifactId>gt-shapefile</artifactId>
> <version>${geotools.version}</version>
> </dependency>
> <dependency>
> <groupId>org.geotools</groupId>
> <artifactId>gt-api</artifactId>
> <version>${geotools.version}</version>
> </dependency>
> <dependency>
> <groupId>org.geotools</groupId>
> <artifactId>gt-render</artifactId>
> <version>${geotools.version}</version>
> </dependency>
> <dependency>
> <groupId>org.geotools</groupId>
> <artifactId>gt-swing</artifactId>
> <version>${geotools.version}</version>
> <exclusions>
> <exclusion>
> <groupId>org.apache.xmlgraphics</groupId>
> <artifactId>batik-transcoder</artifactId>
> </exclusion>
> </exclusions>
> </dependency>
> </dependencies>
> <repositories>
> <repository>
> <id>maven2-repository.dev.java.net</id>
> <name>Java.net repository</name>
> <url>http://download.java.net/maven/2</url>
> </repository>
> <repository>
> <id>osgeo</id>
> <name>Open Source Geospatial Foundation Repository</name>
> <url>http://download.osgeo.org/webdav/geotools/</url>
> </repository>
> <repository>
> <snapshots>
> <enabled>true</enabled>
> </snapshots>
> <id>opengeo</id>
> <name>OpenGeo Maven Repository</name>
> <url>http://repo.opengeo.org</url>
> </repository>
> </repositories>
> </project>
> Sir,thank you for responding to my mail..............

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to