On 14 March 2014 07:15, Cyrus Harmon <ch-cdk@bobobeach.com> wrote:

On Mar 13, 2014, at 10:10 PM, Nina Jeliazkova <jeliazkova.nina@gmail.com> wrote:


The idea of the SNAPSHOTs is that they are not final and the best practice is to synchronise them with a  repository (which is supposed to host the most recent ones). 

If one doesn't need the very latest dependencies, the best practice is to use not SNAPSHOTS in your own project, but stable releases.  They are downloaded once and not supposed to be changed.

I usually like to work with the latest HEAD plus my local patches. To each their own...

Then SNAPSHOTS / LOCAL are for you.

I used to do the same ... may be in the first couple of years working with the CDK.
 

 One option I’ve considered is renaming the version to something like 1.5.6-LOCAL, but that brings me to my next problem, which is that it seems that the version is hardcoded in each of the pom.xml files. find . -name pom.xml | xargs grep -i 1.5.6-snapshot | wc -l tells me that there are 70 files with the version hardcoded.

This is the normal practice for multimodule projects.  You may also notice the dependencies versions are not hard coed, but use the variable ${project.parent.version}

I see the versions in each of the pom.xml files. Are these machine generated?


No, the modules  versions are specified manually. If modules are used in another module , then ${project.parent.version} is specified.  
 
Regards,
Nina
Do we fire off some sort of sed/perl script to change this automatically when a new release is called for? Surely there must be a way to store this information once and refer to that rather than sprinkling it throughout pom files scattered across the tree.

Not sed/perl scripts, but Maven release plugin.  It not only automatically changes versions, but verifies coupld of things, tags the release, commits to the code repository, you name it 


Ah, OK.

 

Thanks,

Cyrus


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Cdk-devel mailing list
Cdk-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdk-devel