Michael,
Thanks for the help.
Below is the pom file.
I placed the Quickstart.jave , which does refer to JMapFrame in
C:\java\tutorial\src\main\java\org\geotools
The pom file is in
C:\java\tutorial\
As I said it works with Eclipse and other command line Maven builds work.

Regards,
Pat

<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/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <groupId>org.geotools</groupId>
  <artifactId>tutorial</artifactId>
  <version>1.0-SNAPSHOT</version>
  <packaging>jar</packaging>

  <name>tutorial</name>
  <url>http://maven.apache.org</url>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 <geotools.version>8-SNAPSHOT</geotools.version>
  </properties>

 

 <repositories>
<repository>
    <id>opengeo</id>
    <name>OpenGeo Maven Repository</name>
    <url>http://repo.opengeo.org/</url>
    <snapshots>
        <enabled>true</enabled>
    </snapshots>
</repository>
 </repositories>

  <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-swing</artifactId>
            <version>${geotools.version}</version>
        </dependency>
    </dependencies>
</project>



On 12/09/11, Michael Bedward <[email protected]> wrote:
Hi Pat,

I've just tried that tutorial and it worked for me, although I'm not
using Windows.

You don't include the useful bits of the error trace but did it, by
any chance, have anything to do with JMapFrame ?  If so, the problem
is that you currently need to run the tutorials with GeoTools version
8-SNAPSHOT as described here...

http://geotoolsnews.blogspot.com/2011/08/current-work-on-gt-swing-module.html

If you're getting a different error, please post the full error trace here.

Michael


On 12 September 2011 21:48, Patrick Browne <[email protected]> wrote:
> Hi,
> I am trying to compile GeoTools from a Windows-XP command line, using Maven.
> I am following the Maven Quickstart tutorial at:
> http://docs.geotools.org/latest/userguide/tutorial/quickstart/maven.html
>
> The first two Maven commands work fine.
> mvn archetype:create -DgroupId=org.geotools -DartifactId=tutorial
> mvn install
>
> But I get an error on the third command, see below for errors.
> mvn exec:java -Dexec.mainClass=org.geotools.tutorial.quickstart.Quickstart
>
> I have compiled and run the Hello World examples at command line using
> Maven.
> http://docs.geotools.org/stable/userguide/quickstart.html
>
> I have successfully run the Eclipse Quickstart, which includes a similar
> Maven set up.
> http://docs.geotools.org/stable/tutorials/quickstart/eclipse.html
>
> In all cases I used the suggested pom.xml for each example
>
>
> Regards,
> Pat
>
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2:java
> (def
> ault-cli) on project tutorial: An exception occured while executing the Java
> cla
> ss. org.geotools.tutorial.Quickstart -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> swit
> ch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please
> rea
> d the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
> xception
>
>
> ------------------------------------------------------------------------------
> Doing More with Less: The Next Generation Virtual Desktop
> What are the key obstacles that have prevented many mid-market businesses
> from deploying virtual desktops?   How do next-generation virtual desktops
> provide companies an easier-to-deploy, easier-to-manage and more affordable
> virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>
------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop 
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops?   How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to