|
From: Alessandro F. <ale...@gm...> - 2011-03-19 20:56:12
|
Andrea,
In fact I've decided that it is undoubtedly easier to work with maven when
using geotools.
I will go back to using maven moving forward.
Thanks for your assistance.
Regards,
Alessandro Ferrucci
On Sat, Mar 19, 2011 at 3:48 AM, Andrea Aime
<and...@ge...>wrote:
> On Fri, Mar 18, 2011 at 11:31 PM, Alessandro Ferrucci
> <ale...@gm...> wrote:
>
> > I've found lots of postings about people having this exact same issue but
> > they were all using maven plugin voodoo and creating these service
> functions
> > at build time... I am not using maven but pre-built bin jars downloaded
> from
>
> Alessandro,
> the only way to keep it simple is to use maven, what you're doing is trying
> to
> divine the list or required jars out of thin air, that's the real voodoo.
>
> If you need to read a shapefile the minimum set of jars you need, and
> really
> don't want to use maven to build, you'll still have to use maven, and the
> gt2 sources, to get the list of required jars.
>
> Running mvn depency:list from the gt-shapefile module one gets:
>
> mvn dependency:list -o
> [INFO]
> NOTE: Maven is executing in offline mode. Any artifacts not already in
> your local
> repository will be inaccessible.
>
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'dependency'.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Shapefile module
> [INFO] task-segment: [dependency:list]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [dependency:list {execution: default-cli}]
> [INFO]
> [INFO] The following files have been resolved:
> [INFO] com.vividsolutions:jts:jar:1.11:compile
> [INFO] commons-pool:commons-pool:jar:1.5.4:compile
> [INFO] hsqldb:hsqldb:jar:1.8.0.7:test
> [INFO] java3d:vecmath:jar:1.3.2:compile
> [INFO] javax.media:jai_core:jar:1.1.3:provided
> [INFO] jdom:jdom:jar:1.0:compile
> [INFO] junit:junit:jar:4.4:test
> [INFO] net.java.dev.jsr-275:jsr-275:jar:1.0-beta-2:compile
> [INFO] org.geotools:gt-api:jar:2.8-SNAPSHOT:compile
> [INFO] org.geotools:gt-data:jar:2.8-SNAPSHOT:compile
> [INFO] org.geotools:gt-epsg-hsql:jar:2.8-SNAPSHOT:test
> [INFO] org.geotools:gt-main:jar:2.8-SNAPSHOT:compile
>
> To run you'll need all the compile and provided ones, plugin a epsg db
> plugin,
> like gt-epsg-wkt or gt-epsg-hsql (but not both, see the documentation).
>
> Cheers
> Andrea
>
>
>
> --
> -------------------------------------------------------
> Ing. Andrea Aime
> GeoSolutions S.A.S.
> Tech lead
>
> Via Poggio alle Viti 1187
> 55054 Massarosa (LU)
> Italy
>
> phone: +39 0584 962313
> fax: +39 0584 962313
> mob: +39 333 8128928
>
> http://www.geo-solutions.it
> http://geo-solutions.blogspot.com/
> http://www.youtube.com/user/GeoSolutionsIT
> http://www.linkedin.com/in/andreaaime
> http://twitter.com/geowolf
>
> -------------------------------------------------------
>
--
Signed,
Alessandro Ferrucci
|