That is cool - yes there could be something wrong with the website. Let 
us look at the pom.xml file provided:
> <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.example</groupId>
>   <artifactId>geotools-example</artifactId>
>   <packaging>jar</packaging>
>   <version>1.0-SNAPSHOT</version>
>   <name>geotools-example</name>
>   <url>http://maven.apache.org</url>
>   <dependencies>
>     <dependency>
>       <groupId>junit</groupId>
>       <artifactId>junit</artifactId>
>       <version>3.8.1</version>
>       <scope>test</scope>
>     </dependency>
>   </dependencies>
> </project>
I do not see a "version" anywhere in that ... but wait it was generated 
by the following line:

C:java>mvn archetype:create -DgroupId=org.geotools.demo.example 
-DartifactId=geotools-example


So I am hard pressed to see what could be the matter ... I will try it 
out here.
Jody

PS. What do you think of me combining these two pages down into one 
(longer) page? Would that be a good idea?

Tara Athan wrote:
> I am (still) trying to test the example at
> http://docs.codehaus.org/display/GEOTDOC/04+How+to+Read+a+Shapefile
> I started from the beginning
> (http://docs.codehaus.org/display/GEOTDOC/03+First+Project)
> in case there were any left-over problems from my previous trials.
>
> The first major obstacle I run into is this error message
>
> Compiling 2 source files to C:\java\src\geotools-example\target\classes
> [ERROR]Mojo:
> [ERROR]    org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
> [ERROR]FAILED for project:
> [ERROR]    org.geotools.demo.example:geotools-example:jar:1.0-SNAPSHOT
> [ERROR]Reason:
> [ERROR]org/geotools/demo/example/FirstProject.java.java:[31,11] 
> generics are not supported in -source 1.3
> [ERROR](use -source 5 or higher to enable generics)
> [ERROR]        Map<String,Serializable>
>
> Similarly, there is an error marker on line 31
>
>        Map<String,Serializable>
>            connectParameters = new HashMap<String,Serializable>();
>
> saying that generics are not available in -source 1.4
>
> However I have only the platform J2SE JDK1.6  : this is what is 
> visible under the Java Platforms tab in NetBeans.
> I ran a test program in another folder using generic types and there 
> was not a problem.
> When I move this file to the geotools-example folder, it fails.
> Could it be something in the pom.xml file that is causing this- I did 
> copy it directly from the website...?
>
> Thanks, Tara


-------------------------------------------------------------------------
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-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to