Our project has six maven projects all these are independent projects. And each project has its own sub modules. But we are maintaining same pom version for all these independent projects and every time we are replacing the same pom version in all these projects. I want to read the pom version from some common file which should reflect in all these projects if pom version changes. Can you please let me know how to do this.
Asked
Active
Viewed 75 times
0
-
Check out answers here https://stackoverflow.com/questions/10582054/maven-project-version-inheritance-do-i-have-to-specify-the-parent-version – Omoro Oct 31 '18 at 11:46
-
You say "every time we are replacing the same pom version in all these projects" - do you mean for every release? Do you have each project on its own versions for development and then do an alignment for a cross-project release? Or do you mean you set the version for every change in every project? – Ryan Dawson Oct 31 '18 at 11:53
-
Hi Ryan, We are changing pom version in every project for every release – user3094331 Oct 31 '18 at 12:55
-
Can you please show the directory structure and give some examples how your pom files are looking?...and simple answer is: you can't read it from file.. – khmarbaise Nov 01 '18 at 13:14