Hi all,
I'd like to start using geotools, after downloading everything and following
the maven installation instructions I wanted to start my 1st test project as
described at:
http://docs.geotools.org/stable/userguide/quickstart.html

but my example won't run using the command...
I'd compiled it with a "build Successful" prompt,

but when I wanna start using 
mvn exec:java -Dexec.mainClass="org.geotools.demo.beipsiel.App"
...as described in the quickstart...
 the console returns
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: An exception occured
while executing the Java class. org.geotools.demo.beispiel.App  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife
cycleExecutor.java:719)
.......and several more (17...)

when Staring from the created classes-dircetory using:
org.geotools.demo.App
it works as desired....

the produced POM.xml is following at the end...

my current software-system is:
winXP 64bit, jdk1.6.0_12 (64bit)
I like to use for developement UltraEdit (TextEditor)

So my questions are....
1,) is there anything I missed???...seem so - but where & what???
2.) will it a better solution to downgrade my dev.Environment to jdk1.5X
(32bit) ??
3.) Is there a way to use geotools without maven (where I am a complete
newbee)...the compiling and project-buildings seem to be a bit oversized for
my (planned) usages....


So am i right iun thinking....when
every geotool JAR-archive is inside a directory, which is in the classpath
(e.g. ext-folder or at .) all should work normal...or is maven integrated
and has to be used.....
anyway before testing further, I'm greedy to get some hints for best
usage...

best regards
rolf

here's the generated 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/xsd/maven-4.0.0.xsd";>
  <modelVersion>4.0.0</modelVersion>

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

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

  <properties>
    <geotools.version>2.7-M0</geotools.version>
  </properties>

  <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>

  </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>
  </repositories>

</project>





------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to