Maven - Reactor (Multiple Module)

About

The mechanism in Maven that handles Multiple Module projects is referred to as the reactor.

In the console

[INFO] Reactor Build Order:
[INFO] 
[INFO] Parent
[INFO] Tabular
[INFO] Tabular Old
[INFO] Text Manipulation
[INFO] Outlook
[INFO] Xml
[INFO] Mediawiki
[INFO] Tabular Downloader
[INFO] Crypto
[INFO] Ssh Tunneler
[INFO] Tabular Loader
[INFO] Query Executor
[INFO] Distribution

Management

Build only one module and its dependent module

  • To build module Foo and its module dependency
mvn install -pl moduleFoo -am

See mvn advanced reactor option

Support

Failure to find module:1.1.0-SNAPSHOT in repo was cached in the local repository,

Failure to find module:1.1.0-SNAPSHOT in repo was cached in the local repository, resolution will not be reattempted until the update interval of repo has elapsed or updates are forced

Solution:

  • Install them locally
mvn clean install
  • or Force the update with -U

Documentation / Reference


Powered by ComboStrap