(It is appreciated if you can keep replies on the public mailing list. Thanks :))
As for the issue, it seems you are having problems accessing the opengeo maven repository. This may be a silly question but does the machine you are running this from have a connection to the internet? Maybe some firewall or proxy is getting into the way. It could also just be a fluke, that can happen with maven. Can you try it again? An alternative is to check out geotools trunk (http://svn.osgeo.org/geotools/trunk) and build it locally with maven. And then when you run the example it should not need to download any of the geotools dependencies from opengeo. Hope that helps. -Justin Kalman, Bohdan (IS) wrote: > Justin, > > Thanks for quick response. > I found states.xsd and states.xml files where you indicated, allright. > However, after I pasted your suggestions into my POM, I received the > following (error) messages when trying to build Eclipse project: > > C:\geotools-example>mvn eclipse:eclipse > [INFO] Scanning for projects... > [INFO] Searching repository for plugin with prefix: 'eclipse'. > [INFO] > ------------------------------------------------------------------------ > [INFO] Building geotools-example > [INFO] task-segment: [eclipse:eclipse] > [INFO] > ------------------------------------------------------------------------ > [INFO] Preparing eclipse:eclipse > [INFO] No goals needed for project - skipping > [INFO] [eclipse:eclipse] > [INFO] Using Eclipse Workspace: null > [INFO] Adding default classpath container: > org.eclipse.jdt.launching.JRE_CONTAIN > ER > [INFO] snapshot org.geotools.xsd:gt-xsd-gml3:2.6-SNAPSHOT: checking for > updates > from opengeo > [WARNING] repository metadata for: 'snapshot > org.geotools.xsd:gt-xsd-gml3:2.6-SN > APSHOT' could not be retrieved from repository: opengeo due to an error: > Error t > ransferring file > [INFO] Repository 'opengeo' will be blacklisted > [WARNING] An error occurred during dependency resolution. > Failed to retrieve org.geotools.xsd:gt-xsd-gml3-2.6-SNAPSHOT > Caused by: Unable to download the artifact from any repository > > Try downloading the file manually from the project website. > > Then, install it using the command: > mvn install:install-file -DgroupId=org.geotools.xsd > -DartifactId=gt-xsd-gml3 > -Dversion=2.6-SNAPSHOT -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.xsd > -DartifactId=gt-xsd-gml3 - > Dversion=2.6-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] > -Dreposit > oryId=[id] > > Path to dependency: > 1) org.geotools.demo.example:geotools-example:jar:1.0-SNAPSHOT > 2) org.geotools.xsd:gt-xsd-gml3:jar:2.6-SNAPSHOT > > > org.geotools.xsd:gt-xsd-gml3:jar:2.6-SNAPSHOT > > from the specified remote repositories: > opengeo (http://repo.opengeo.org/), > central (http://repo1.maven.org/maven2) > > > [INFO] Unable to read jar manifest from > C:\...\.m2\repository\org\geotools\xsd\ > gt-xsd-gml3\2.6-SNAPSHOT\gt-xsd-gml3-2.6-SNAPSHOT.jar > [INFO] Not writing settings - defaults suffice > [INFO] File C:\projects\jts\geotools-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 "geotools-example" to C:\geotools-example. > [INFO] > Sources for some artifacts are not available. > Please run the same goal with the -DdownloadSources=true > parameter in ord > er 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 or > der 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: 26 seconds > [INFO] Finished at: Wed Jun 10 16:18:51 EDT 2009 > [INFO] Final Memory: 6M/13M > [INFO] > ------------------------------------------------------------------------ > > > This is the POM I used: > > > <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> > <dependency> > <groupId>org.geotools.xsd</groupId> > <artifactId>gt-xsd-gml3</artifactId> > <version>2.6-SNAPSHOT</version> > </dependency> > </dependencies> > > <repositories> > <repository> > <id>opengeo</id> > <name>OpenGeo Maven Repository</name> > <url>http://repo.opengeo.org/</url> > <snapshots> > <enabled>true</enabled> > </snapshots> > </repository> > <repository> > <snapshots> > <enabled>false</enabled> > </snapshots> > <id>central</id> > <name>Maven Repository Switchboard</name> > <url>http://repo1.maven.org/maven2</url> > </repository> > </repositories> > </project> > > What's wrong? how to fix it? > > > > Again, I most apprciate your help. > > Regards, > > Bohdan Kalman > > > > > > > > -----Original Message----- > From: Justin Deoliveira [mailto:jdeol...@opengeo.org] > Sent: Wednesday, June 10, 2009 3:35 PM > To: Kalman, Bohdan (IS) > Cc: geotools-gt2-users@lists.sourceforge.net > Subject: Re: [Geotools-gt2-users] GML 3, GeoTools sample > > > Hi, > > If you declare a dependency on gt-xsd-gml3 in your pom, that should be > all you need. You also probably to add the opengeo maven repository. The > following pom will do it: > > <project> > ... > <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>org.geotools.xsd</groupId> > <artifactId>gt-xsd-gml3</artifactId> > <version>2.6-SNAPSHOT</version> > </dependency> > </dependencies> > ... > </project> > > > As for the states.xsd and states.xml files, you can download them from > our svn repo: > > http://svn.osgeo.org/geotools/trunk/modules/extension/xsd/xsd-gml3/src/test/resources/org/geotools/gml3/ > > Hope that helps. > > -Justin > > Kalman, Bohdan (IS) wrote: > > Hi, > > > > I'm trying to follow a GML3 example posted in the GeoTools manual. I > > have problems with the one from Justin Deoliveira called > > GML3ParsingTest.java. I can't figure all the libraries required by the > > example. Does anyone have a POM to run this example? Does anyone have > > files called states.xsd and states.xml that this example uses? > > > > I appreciate your help, > > > > Bohdan Kalman > > > > > > ------------------------------------------------------------------------ > > > > > ------------------------------------------------------------------------------ > > Crystal Reports - New Free Runtime and 30 Day Trial > > Check out the new simplified licensing option that enables unlimited > > royalty-free distribution of the report engine for externally facing > > server and web deployment. > > http://p.sf.net/sfu/businessobjects > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Geotools-gt2-users mailing list > > Geotools-gt2-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > > > -- > Justin Deoliveira > OpenGeo - http://opengeo.org > Enterprise support for open source geospatial. > -- Justin Deoliveira OpenGeo - http://opengeo.org Enterprise support for open source geospatial. ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Geotools-gt2-users mailing list Geotools-gt2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users