Maven - Reactor (Multiple Module)

Card Puncher Data Processing

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





Discover More
Idea Maven Dependency Tree
Maven - Dependency

dependency management in Maven. Dependency are artifact where your software depends on. Dependency are defined in the pom.xml, section dependencies. When you build an application, Maven will search...
Idea Maven Module
Maven - Module

module management in Maven. A multi-module project is defined by a parent POM referencing one or more sub-modules. The mechanism in Maven that handles multi-module projects is referred to as the reactor....
Card Puncher Data Processing
Maven - test jar

A test jar is a jar file used to share test code between module. In two steps: Creating the test jar that is shared with the other modules (ie all test class will be package in a test jar) ...



Share this page:
Follow us:
Task Runner