Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LATEST version of parent project in Maven

I am using Maven2. I have created a parent POM for my organization. I want the various groups will use it as a parent for their project but I want them to use the latest version. for some reason, using it as a parent with version LATEST doesn't work,

any idea?

Thanks, Ronen.

like image 959
rperez Avatar asked Dec 17 '22 07:12

rperez


1 Answers

You don't need to define a new version for every small change you make in the POM.

The version means specific features of an artifact (in a POM are build settings), what I'd do is to declare one version and make all the projects use that version (to use a SNAPSHOT version is a great idea). If you make a small update do it in that version. If you make a bigger change you might want to declare a new version and have all the new POMs to use that version, this way you'll avoid to break old projects by using a new super POM.

like image 151
victor hugo Avatar answered Dec 27 '22 10:12

victor hugo