Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Release only one module in multimodule maven project

 
sourabh girdhar
Ranch Hand
Posts: 71
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have one Multimodule maven projects which has nearly 20 modules. there is one common module which changes rarely and other 19 are independent of each other. Issue is when I change one module and go for release with hudson, It releases all modules.

If I go to specify version number for each module, it is very tedious job to change all numbers.

It is like increase in version number unneccessarily and also wastage of time/memory. For e.g. if I change each out of 19 twice , the common version will go to 1.39 or 39.0 which I don't want to avoid confusion. we are using standard release plugin.

Is there any way to manage release such that we can release only one module instead of whole project.

Thanks
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18009
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think your problem is with Hudson and I haven't looked at Hudson yet. It's possible that your dependencies aren't set properly, however, if changing a satellite module triggers a rebuild of the shared module, and hence all the other satellite modules.

For a straight Maven build, it isn't so bad. You can check out the module of interest from the source repository and build just that one module.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Issue is when I change one module and go for release with hudson, It releases all modules.

Hudson will do this if the changed module is a dependency of the other modules (as noted in the pom.xml files of the other modules). This is the behavior that you want because when you change the one module you need to run the unit tests on the other modules to prevent regression errors.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic