I had to add gt-swing to get it to compile, but it worked! Here's the final pom.xml:
<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> <groupId>com.mycompany</groupId> <artifactId>gttest1</artifactId> <packaging>jar</packaging> <version>1.0-SNAPSHOT</version> <name>gttest1</name> <url>http://maven.apache.org</url> <properties> <geotools.version>2.6-SNAPSHOT</geotools.version> </properties> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.0.2</version> <configuration> <source>1.5</source> <target>1.5</target> </configuration> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> <dependency> <groupId>org.geotools</groupId> <artifactId>gt-main</artifactId> <version>${geotools.version}</version> </dependency> <dependency> <groupId>org.geotools</groupId> <artifactId>gt-shapefile</artifactId> <version>${geotools.version}</version> </dependency> <dependency> <groupId>org.geotools</groupId> <artifactId>gt-epsg-hsql</artifactId> <version>${geotools.version}</version> </dependency> <dependency> <groupId>org.geotools</groupId> <artifactId>gt-swing</artifactId> <version>${geotools.version}</version> </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> <id>osgeo-snapshots</id> <name>Snapshot Repository</name> <snapshots> <enabled>true</enabled> </snapshots> <url>http://repo.opengeo.org/</url> </repository> </repositories> </project> ----- Original Message ----- From: "Michael Bedward" <[email protected]> To: "Tom Williamson" <[email protected]> Cc: "geotools users" <[email protected]> Sent: Friday, September 25, 2009 9:01 PM Subject: Re: Proofing Netbeans Quickstart (was: Re: [Geotools-gt2-users] Geotools-gt2-users Digest, Vol 40, Issue 32) > Hi Tom, > > Oops ! That error is due to code changes since 2.6-M2 was released. > Another example of the current creative chaos :-) > > It's probably best to leave the web page as it is for the moment > because we will be releasing 2.6-M3 shortly which will fix that > problem. Meanwhile, you can get the quickstart app working by using > the pom.xml below which uses the GeoTools snapshot development version > and specifies the snapshot repository. > > Thanks for bearing with us ! > > Michael > > <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> > <groupId>org.geotools.demo</groupId> > <artifactId>example</artifactId> > <packaging>jar</packaging> > <version>1.0-SNAPSHOT</version> > <name>example</name> > <url>http://maven.apache.org</url> > <properties> > <geotools.version>2.6-SNAPSHOT</geotools.version> > </properties> > <dependencies> > <dependency> > <groupId>junit</groupId> > <artifactId>junit</artifactId> > <scope>provided</scope> > </dependency> > <dependency> > <groupId>org.geotools</groupId> > <artifactId>gt-main</artifactId> > <version>${geotools.version}</version> > </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> > <id>osgeo-snapshots</id> > <name>Snapshot Repository</name> > <snapshots> > <enabled>true</enabled> > </snapshots> > <url>http://repo.opengeo.org/</url> > </repository> > </repositories> > </project> ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
