Note that there are some explanatory texts on larger screens.

plurals
  1. POMaven 2 project versions, dependency versions, and perpetual releasing
    text
    copied!<p>Scenario: The system has number of components, each with its own POM. There are some long dependency chains (A depends on B depends on C, etc.). I want each "non-developer-desktop" build to be a potential release candidate -- if it passes QA, we will deploy it without rebuilding. In other words, I never want to build SNAPSHOT versions as part of my regularly scheduled builds, only versions like 1.3.0.5, 1.3.0.6, etc. I also want to enable the developers to work on multiple components at once.</p> <p>To forestall some expected suggestions: the Maven Release Plugin doesn't help me ... unless there's some magic way I can have my dependency versions not be SNAPSHOTs in the POMs but still let the developers work on more than one component at once? </p> <p><b>How should we manage the project and dependency versions in all of our our POMs?</b> Right now it's just SNAPSHOTs everywhere, which makes things simple for the developers (they started with SNAPSHOTs and never concerned themselves with anything else). But it's worrying at deployment time (builds with SNAPSHOT dependencies are not well-defined, and not reproducible).</p> <p>I'd like to avoid excessive juggling at build time, but right now I don't see any way around it.</p> <dl> <dt>Let's say I have components util, libj, libk, APP, and UI, with dependencies as follows:</dt> <dd>libj -> util (libj depends on util)</dd> <dd>libk -> util</dd> <dd>APP -> libj</dd> <dd>UI -> libj, libk</dd> </dl> <p><p>I have development teams working on APP and UI, and they will sometimes need to make changes/additions to some of the dependencies (even util) in order to enable their current work. How should the checked-in POM and dependency versions for each component look?</p> <p>Edit: I updated the title to refer to Maven 2 instead of 2.0, since it became apparent that I would need to work with 2.1 or better in order to best resolve this.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload