Starting out Geotools
installing GIS in windows:
problem encountered with running the maven and JAVA;
solved==>
following quickstart in GEOtools web site==>
problem with my USB modem in UBUNTU so continued in windows.
succeed ==>Got the first program running in netbeans with default pom.xml file
problem==>errors encountered while downloading the missing dependencies. difficult to connect to the remote site.
NetBeans: Executing 'mvn.bat -Dnetbeans.execution=true clean install'
NetBeans: JAVA_HOME=C:\Program Files\Java\jdk1.6.0_21
Scanning for projects...
------------------------------------------------------------------------
Building example
task-segment: [clean, install]
------------------------------------------------------------------------
[clean:clean]
Deleting directory C:\Documents and Settings\Chathura\My Documents\NetBeansProjects\example\target
[resources:resources]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
skip non existing resourceDirectory C:\Documents and Settings\Chathura\My Documents\NetBeansProjects\example\src\main\resources
Downloading: http://download.java.net/maven/2/org/geotools/gt-main/${geotools.version}/gt-main-${geotools.version}.pom
Unable to find resource 'org.geotools:gt-main:pom:${geotools.version}' in repository maven2-repository.dev.java.net (http://download.java.net/maven/2)
Downloading: http://download.osgeo.org/webdav/geotools//org/geotools/gt-main/${geotools.version}/gt-main-${geotools.version}.pom
Unable to find resource 'org.geotools:gt-main:pom:${geotools.version}' in repository osgeo (http://download.osgeo.org/webdav/geotools/)
Downloading: http://repo1.maven.org/maven2/org/geotools/gt-main/${geotools.version}/gt-main-${geotools.version}.pom
Unable to find resource 'org.geotools:gt-main:pom:${geotools.version}' in repository central (http://repo1.maven.org/maven2)
Downloading: http://download.java.net/maven/2/org/geotools/gt-main/${geotools.version}/gt-main-${geotools.version}.jar
Unable to find resource 'org.geotools:gt-main:jar:${geotools.version}' in repository maven2-repository.dev.java.net (http://download.java.net/maven/2)
Downloading: http://download.osgeo.org/webdav/geotools//org/geotools/gt-main/${geotools.version}/gt-main-${geotools.version}.jar
Unable to find resource 'org.geotools:gt-main:jar:${geotools.version}' in repository osgeo (http://download.osgeo.org/webdav/geotools/)
Downloading: http://repo1.maven.org/maven2/org/geotools/gt-main/${geotools.version}/gt-main-${geotools.version}.jar
Unable to find resource 'org.geotools:gt-main:jar:${geotools.version}' in repository central (http://repo1.maven.org/maven2)
------------------------------------------------------------------------
[ERROR]BUILD ERROR
------------------------------------------------------------------------
Failed to resolve artifact.
Missing:
----------
1) org.geotools:gt-main:jar:${geotools.version}
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.geotools -DartifactId=gt-main -Dversion=${geotools.version} -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.geotools -DartifactId=gt-main -Dversion=${geotools.version} -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.geotools.demo:example:jar:1.0-SNAPSHOT
2) org.geotools:gt-main:jar:${geotools.version}
----------
1 required artifact is missing.
for artifact:
org.geotools.demo:example:jar:1.0-SNAPSHOT
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
osgeo (http://download.osgeo.org/webdav/geotools/),
maven2-repository.dev.java.net (http://download.java.net/maven/2)
------------------------------------------------------------------------
For more information, run Maven with the -e switch
------------------------------------------------------------------------
Total time: 24 seconds
Finished at: Fri Sep 10 18:35:30 IST 2010
Final Memory: 8M/19M
------------------------------------------------------------------------