On Tue, Dec 20, 2011 at 8:08 AM, Paolo Castagna <castagna.li...@googlemail.com> wrote: > Hi Benson > > Benson Margulies wrote: >> Putting repos in all the poms would be viewed as evil by many, >> including me. Code moves, but released poms are forever. > > Which is more evil: having a duplicate <repositories> section > in each of the modules (with at least the Apache snapshots > repository) or requiring everybody wanting to checkout and > mvn package a Jena module to put the <repositories> section > in their settings.xml?
Paolo, This is why people release their disconnected poms; it avoids this dilemma. I'm not in favor of checking in poms that point to disconnected parents via -SNAPSHOT. I'm in favor of picking from a menu of two choices: release the parent, or make one big tree in which everything is released together. If you pick one of those, you need no settings.xml unless you want to hold an ASF release vote on multiple releasable items at once, and then the only people who need it are people testing the releases. --benson > > I think making life of potential committers as easy as possible > it's more important: svn co ... + mvn package. > > Another option is not to have the JenaTop parent pom.xml as > SNAPSHOT dependency and use only JenaTop parents from Maven > Central. This has the consequence that when a change in the > JenaTop parent pom.xml is needed, we need to push it out to > Maven Central as quick as possible. Not a situation I would > recommend, in particular at the beginning when changes to > the JenaTop parent still happen. > >> >> I'm sure by now you've realized the technical situation: since the >> repo is declared in a parent the parent, that declaration is not >> available when locating the parent in the first place (unless it is in >> setting.xml). > > Or in the module's pom.xml itself. > > Little duplication for us (to maintain, I am happy to do the > maintenance for that, I do not expect to change in the next > few years!), no action required by anyone else in the Jena > team or any future curios developer wanting to compile a Jena > module. > > My 2 cents, > Paolo > >> >> On Mon, Dec 19, 2011 at 10:02 PM, Andy Seaborne <a...@apache.org> wrote: >>> On 19/12/11 21:32, Paolo Castagna wrote: >>>> Benson Margulies wrote: >>>>>> (Still haven't completely grokked why SNAPSHOT versions can't pull down >>>>>> SNAPSHOT parent POMs but life is too short.) >>>>> >>>>> Whoops, missed this question. Have you run 'mvn deploy' to push the >>>>> snapshot? Even if you have, the snapshot repo isn't in anyone's repo >>>>> list by default. They would have to add it to their settings.xml. >>>> >>>> Does adding a<repositories> section in each of the modules help? >>>> Maven cannot retrieve the parent pom.xml file from Maven Central >>>> (which is the only repository available before retrieving the >>>> parent pom itself). >>> >>> Ah - good point. They are in the Apache POM which is jena-top's parent. >>> >>> Adding them to settings.xml causes things to work. My bad. >>> >>> >>>> It's not ideal because of the repetition, but if it works would be >>>> not that bad (Apache Maven repositories are not going to change). >>> >>> Could do - there's <repositories> in TDB and Fuseki currently which current >>> use the staged artifacts for testing. >>> >>>> My 2 cents, >>>> Paolo >>> >>> Thanks, >>> Andy