Hi Luong,

> i saw that the geotools version was 2.5.5 and i just naturally thought that
> i also need this because i remember you asking what version of geotools i
> had, and noticed that i did not have this in my pom file.

Yes, I can see how you got that idea.  I should have explained things
more clearly.  So just to be clear, in a maven project, you control
the version of GeoTools that your app is using via the "version"
parameter on each of the dependencies.

When you've got more than a few dependencies it is boring, and
error-prone, to manually edit the version number of each. Also you
have change them all when you want to use a newer version of GeoTools.
Life's too short.  Here is an easier way...

Put this in the top section of your pom.xml (near <name>,
<description> etc. although the exact place doesn't matter)...

<properties>
    <geotoolsVersion>2.5.5</geotoolsVersion>
</properties>

Then specify each of the GeoTools dependencies in your pom.xml similar
to this...

        <dependency>
            <groupId>org.geotools</groupId>
            <artifactId>gt-main</artifactId>
            <version>${geotoolsVersion}</version>
        </dependency>

Now your dependencies will all use the same version of GeoTools and
when you want to change the version you only have to edit one line.
Easy-peasy :-)

Michael

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

Reply via email to