Dear list,
I am new to GeoTools and stuck on 'Updating the IDE (Eclipse only)' section
of Quickstart. http://geotools.org/quickstart.html

 After importing the example project, I can get the same POM.XML file as in
the tutorial.

----------------------------------------------------------------------------------------------------------------
<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>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
</project> 
----------------------------------------------------------------------------------------------------------------

But when I replace the above pom.xml with that in the tutorial (i'd think
something is wrong in the following pom.xml),

----------------------------------------------------------------------------------------------------------------

<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";
xmlns="http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
        <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.1</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>
        </repositories>
</project>

----------------------------------------------------------------------------------------------------------------

and Updating the IDE with mvn eclipse:eclipse, I got

----------------------------------------------------------------------------------------------------------------
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'eclipse'.
[INFO]
------------------------------------------------------------------------
[INFO] Building example
[INFO]    task-segment: [eclipse:eclipse]
[INFO]
------------------------------------------------------------------------
[INFO] Preparing eclipse:eclipse
[INFO] No goals needed for project - skipping
[INFO] [eclipse:eclipse {execution: default-cli}]
[INFO] Using Eclipse Workspace: null
[INFO] Adding default classpath container:
org.eclipse.jdt.launching.JRE_CONTAINER
[INFO] Not writing settings - defaults suffice
[INFO] File C:\Program Files\Java\example\.project already exists.
       Additional settings will be preserved, run mvn eclipse:clean if you
want old settings to be removed.
[INFO] Wrote Eclipse project for "example" to C:\Program Files\Java\example.
[INFO]
       Sources for some artifacts are not available.
       Please run the same goal with the -DdownloadSources=true parameter in
order to check remote repositories for sources.
       List of artifacts without a source archive:
         o junit:junit:3.8.1

       Javadoc for some artifacts is not available.
       Please run the same goal with the -DdownloadJavadocs=true parameter
in order to check remote repositories for javadoc.
       List of artifacts without a javadoc archive:
         o junit:junit:3.8.1

[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Thu Apr 08 16:45:29 PDT 2010
[INFO] Final Memory: 8M/19M
[INFO]
------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------

Then I Hit refresh in Eclipse, I got nothing but junit-3.81.jar in the
referenced libraries.
the following is my environment
Apache Maven 2.2.1 (r801777; 2009-08-06 12:16:01-0700)
Java version: 1.6.0_18
Java home: C:\Program Files\Java\jdk1.6.0_18\jre
OS name: "windows 7" version: "6.1" arch: "x86" Family: "windows"
Eclipse 3.4.1

I also tried other pom files, but they did not work either.

Thanks for all hints 

mason





-- 
View this message in context: 
http://n2.nabble.com/After-F5-refreshing-I-got-nothing-but-junit-3-81-jar-in-the-referenced-libraries-Newbie-question-on-t-tp4869206p4869206.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to