Ok. So yeah, you should be able to just run maven and have it pick up 
all dependencies.

The reason for the org.geotools.xsd group id rather than just 
org.geotools is just a geotools convention we use when modules are 
grouped into a common "parent" module.

I should also note that at the moment we are experiencing problems with 
our maven repository. I am trying to fix the issues but for a time you 
might not be able to find artifacts online. I am working on this as we 
speak.

Also, if you want to attach your pom.xml, i will verify that there are 
no other problems.

-Justin

Martin Tomko wrote:
> Justin,
> maybe I did not understand your question properly:
> I am using maven directly, but my understandign is that it uses a binary 
> release (I am not compiling geotools).
> This is how I get all my other modules (at the end of email): Note tyhat 
> they all have groupID org.geotools, not org.geotools.xsd, as in the 
> dependency I found for gt-xsd-gml3. Why is it different?
> 
> Cheers
> Martin
> 
>        <dependency>
>            <groupId>org.geotools</groupId>
>            <artifactId>gt-main</artifactId>
>            <version>${geotools.version}</version>
>        </dependency>
>        <dependency>
>            <groupId>org.geotools</groupId>
>            <artifactId>gt-shapefile</artifactId>
>            <version>${geotools.version}</version>
>        </dependency>
>        <dependency>
>            <groupId>org.geotools</groupId>
>            <artifactId>gt-image</artifactId>
>            <version>${geotools.version}</version>
>        </dependency>
>        <dependency>
>            <groupId>org.geotools</groupId>
>            <artifactId>gt-geotiff</artifactId>
>            <version>${geotools.version}</version>
>        </dependency>
>        <dependency>
>            <groupId>org.geotools</groupId>
>            <artifactId>gt-referencing</artifactId>
>            <version>${geotools.version}</version>
>        </dependency>
>        <dependency>
>            <groupId>org.geotools</groupId>
>            <artifactId>gt-imagemosaic</artifactId>
>            <version>${geotools.version}</version>
>        </dependency>
>        <dependency>
>            <groupId>org.geotools</groupId>
>            <artifactId>gt-imagepyramid</artifactId>
>            <version>${geotools.version}</version>
>        </dependency>
>        <dependency>
>            <groupId>org.geotools</groupId>
>            <artifactId>gt-epsg-hsql</artifactId>
>            <version>${geotools.version}</version>
>        </dependency>
>        <dependency>
>            <groupId>org.geotools</groupId>
>            <artifactId>gt-widgets-swing</artifactId>
>            <version>${geotools.version}</version>
>        </dependency>
>        <dependency>
>            <groupId>org.geotools</groupId>
>            <artifactId>gt-render</artifactId>
>            <version>${geotools.version}</version>
>        </dependency>
>        <dependency>
>            <groupId>org.geotools</groupId>
>            <artifactId>gt-api</artifactId>
>            <version>${geotools.version}</version>
>        </dependency>
>        <dependency>
>            <groupId>org.opengis</groupId>
>            <artifactId>geoapi</artifactId>
>            <version>2.2-SNAPSHOT</version>
>        </dependency>
>        <dependency>
>            <groupId>org.geotools</groupId>
>            <artifactId>gt-coverage</artifactId>
>            <version>${geotools.version}</version>
>        </dependency>
> 
> 
> 
> Justin Deoliveira wrote:
>> Hi Martin,
>>
>> How are you running your project? Are you using maven directly? Or are 
>> you running from a binary release?
>>
>> If you are you using maven directly can just add the xsd-gml3 module 
>> to your pom and then all necessary dependencies will be automatically 
>> handled.
>>
>> However if you are running from the binary release, you will need all 
>> the regular geotools jars, plus the xsd-gml3,xsd-gml2, and xsd-core 
>> jars. Here is an exhaustive list of all he java libraries you will 
>> need. You can replace 2.5-SNAPSHOT with whatever version you are using.
>>
>> common-2.2.1.jar
>> commons-beanutils-1.7.0.jar
>> commons-collections-3.1.jar
>> commons-jxpath-1.2.jar
>> commons-logging-1.1.1.jar
>> commons-pool-1.3.jar
>> ecore-2.2.2.jar
>> geoapi-2.2.0.jar
>> gt-api-2.5-SNAPSHOT.jar
>> gt-coverage-2.5-SNAPSHOT.jar
>> gt-epsg-hsql-2.5-SNAPSHOT.jar
>> gt-graph-2.5-SNAPSHOT.jar
>> gt-main-2.5-SNAPSHOT.jar
>> gt-metadata-2.5-SNAPSHOT.jar
>> gt-referencing-2.5-SNAPSHOT.jar
>> gt-xsd-core-2.5-SNAPSHOT.jar
>> gt-xsd-gml2-2.5-SNAPSHOT.jar
>> gt-xsd-gml3-2.5-SNAPSHOT.jar
>> hsqldb-1.8.0.7.jar
>> jai_core-1.1.3.jar
>> jdom-1.0.jar
>> jsr-275-1.0-beta-2.jar
>> jts-1.9.jar
>> picocontainer-1.2.jar
>> vecmath-1.3.1.jar
>> xercesImpl-2.7.1.jar
>> xml-apis-1.0.b2.jar
>> xml-apis-xerces-2.7.1.jar
>> xsd-2.2.2.jar
>>
>> Hope that helps, let me know if you have any problems.
>>
>> -Justin
>>
>>
>> Martin Tomko wrote:
>>> Dear Justin, all,
>>> I am playing with the parsing of GML geometries from GML3. What are 
>>> the correct maven dependencies for GML3 and the associate XML parser?
>>> I have troubles to do the imports suggested by Justin:
>>>
>>> import org.geotools.gml3.GMLConfiguration;
>>> import org.geotools.xml.Parser;
>>>
>>> using geotools 2.5. snapshot.
>>>
>>> for the following code:
>>> GMLConfiguration gml = new GMLConfiguration();
>>> Parser p = new Parser(gml);
>>>
>>> Polygon p = (Polygon) p.parse( ... );
>>>
>>> Thanks
>>> Martin
>>
>>
> 
> 


-- 
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to