Reputation: 61
What is best way of managing versions of dependencies?.
Generally I would create a super POM (Not Parent POM) and I would declare all my dependencies in the super POM. So that all my projects can refer that POM for the dependencies. The advantage is that all my dependencies are controlled from a central POM.
But if we are developing some products selling to different clients year after year and also dependencies versions get updated year after year. How will I keep track of my dependency versions of products I released to each client?.. I don't want to keep updating my POM every time a dependency version needs to be updated.
So I was thinking of keeping the version of dependencies in my settings xml as properties and settings can be updated or version-ed per release.
I am experienced in Maven but not an expert. Any good suggestions?... Thanks In Advance Joseph
Upvotes: 0
Views: 315
Reputation: 28746
And just a little question, what difference do you make between versioning your settings.xml and versioning your parent pom ?
Upvotes: 2