Michael Bedward wrote:
> Hi list,
>
> I know the query that follows isn't a core question about geotools but
> since it it about building gt and gt projects I hope it's ok to post
> it here...
>
> Is it just me or do others find maven tiresome sometimes ?  I've spent
> a while trying to work out how to reduce the volume of downloads when
> I'm just building something that I've made some trivial changes to.
> But as far as I can work out, the only easy options seem to be all or
> nothing (-o for offline mode).  Is that right ?
>   
You should be able to go *just* into the project you modified; say 
modules/plugin/postgis
and type: mvn clean install

Used in this fashion you can just build the parts you changed...
> Tips on cheat sheets / examples etc. for using maven more economically would 
> be most welcome...
>   
The biggest thing you can do (if you work with others) is to set up a 
"mirror" of the remote repository for your LAN; I have done it a couple 
of times but am not sure of the the best practise right now.  Once you 
have one set up you can change your settings.xml file to point to it and 
everything will be much faster.

This is a trick I have used when working outside of North America and 
europe; if you are in either of those countries you should try and use a 
mirror that is closer to you.
> Don't get me wrong - I can see that the maven concept is very clever -
> but when I'm sitting here watching it spend ages checking itself,
> downloading the plexus stuff *yet again*, then going through the
> endless pom->pom->pom transitive trail before *finally* getting to my
> code, I feel sorely tempted to go back to old-school methods.
>   
If you do need to change something in the root pom.xml (say a version 
number for log4j) you can do so; and install the root pom non 
recursively; and then go into your project and install. Ie build 2 
things rather than everything.
> <cathartic rant>
> I wasted a couple of hours yesterday trying to work out why adding
> log4j to my very very basic geotools / swing app was generating so
> much pain.  I finally worked out it was because the all-or-nothing
> maven process wanted java messaging suite on my system but couldn't
> get it because it's a sun jar.  It's also a JEE tool (my app is only
> SE), isn't available for Mac (my development platform) and isn't
> required for anything I need to do with log4j...  In the end I learned
> how to exclude dependencies in the pom, so that was something I
> suppose, but it left me wondering if I wouldn't have been better off
> just building log4j myself and bunging the jar into my project.
> </cathartic rant>
>   
You lost me a bit there; if maven needed something it should of 
downloaded it; log4j
> Sorry for the word length...  I feel better now :)
>   
Good rant; and as you discover tips and trick please update our wiki - 
we can all use the help.
Jody

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to