Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to build multiple maven projects in one step without a common parent?

Tags:

maven-2

I have read that to build multiple Maven projects in one step (with automatic building of dependencies) the Maven reactor plugin can be used. However, all the examples I have seen show that in order to use this plugin, the interdependent packages are modules of a common parent project.

Is it possible to use maven to build multiple projects in one step which are not modules of a common parent project?

For example - two projects from different repositories, one project depends on another, and I want to make local changes to both projects and build everything in one step. Can I do this?

like image 709
James Avatar asked Aug 02 '10 00:08

James


1 Answers

Is it possible to use maven to build multiple projects in one step which are not modules of a common parent project?

No, you need a aggregating project i.e. a project listing them as modules (and the sub-modules don't have to inherit from the aggregating project).

Related answer

  • What is the maven reactor?

See also

  • Maven Reference: 3.6.2. Multi-module vs. Inheritance
like image 55
Pascal Thivent Avatar answered Oct 20 '22 19:10

Pascal Thivent