Questions tagged [multi-module]

A multi-module project/application is composed by several modules each focusing on a certain concern, enforcing the SRP (Single Responsibility Principle) at module level.

A multi-module project/application is composed by several modules each focusing on a certain concern, enforcing the SRP (Single Responsibility Principle) at module level.

In , a multi-module project is handled via aggregation of an aggregator project providing list of aggregated modules.

Often, but not necessarily, the aggregator project is also the parent project of aggregated modules, providing further governance and common management on - for example - plugins, dependencies, properties.

More Info

886 questions
9
votes
3 answers

Spring multi module i18n, with modules extending the messageSource contents

I have a multi module Spring project with Maven. I'm using Spring 3.2.3 with annotation config. I have the following layout: parent common (depends on parent) webapp (depends on parent, common, module1, module2) module1 (depends on…
Benjamin M
  • 23,599
  • 32
  • 121
  • 201
9
votes
1 answer

Releasing a multi-module Maven project hosted in single Git repository

I'm trying to release individual modules of a multi-module project, contained within a single git repository. The folder structure looks something like this: |- api/pom.xml |- database/pom.xml |- core/pom.xml pom.xml The parent pom is…
Joel Westberg
  • 2,656
  • 1
  • 21
  • 27
8
votes
1 answer

Managing multi-module dependencies with Maven assembly plugin

I use Maven assembly plugin to create an assembly for my multi-module project. There are two separate applications built from this multi-module project, each having a separate set of dependencies. I made a custom assembly descriptor which assembles…
8
votes
2 answers

Using Liquibase in multi module project

I have two modules (editor and engine) that work with a common database. For deployment of scripts I want to use liquibase. I do not want to duplicate the same scripts in two places, and I want to manage them in one place. To do this, I created a…
All_Safe
  • 1,339
  • 2
  • 23
  • 43
8
votes
0 answers

How to configure Flyway for multimodule project?

I have a multimodule project where one of the modules is responsible for handling my migrations, so my project structure looks like this: project | |-> application |-> approval-management |-> database |-> security ... My pom.xml for database module…
Akka Jaworek
  • 1,970
  • 4
  • 21
  • 47
8
votes
3 answers

Spring Boot Multi Module with Data JPA Not Working

I have my multimodule spring boot project. I moved service, entity and repository to the core module and in the war module I have the controller alone. What is the problem here? If I use without JPA, then my core module working fine. If I add JPA…
Shakthi
  • 826
  • 3
  • 15
  • 33
8
votes
1 answer

Gradle 5 Kotlin DSL: Common Tasks & Maven Artifacts in multi-modules projects

I really would like to appreciate Gradle 5 especially in combination with the new Kotlin DSL, but I’m having a very hard time to get (in my eyes) a very, very simple and common build running with Gradle. Task Release a Java library with several…
bentolor
  • 3,126
  • 2
  • 22
  • 33
8
votes
3 answers

How to release Maven multi-module project with inter-project dependencies?

Lets say we have 3 layers project. DB, Business, Web and aggregating pom. Project |-DB | |-pom.xml |-Business | |-pom.xml |-pom.xml All modules are ment to be released and branched together, so Aggregator pom is configured to assign the…
8
votes
2 answers

Do Maven Multi-Module and EAR play well together?

Today, I've been looking at Maven Multi-Module and EAR projects and they seem quite similar in that both seem to define an assembly of a collection of other projects - it almost seems like an EAR project should just be an alternate packaging for a…
brabster
  • 42,504
  • 27
  • 146
  • 186
8
votes
3 answers

Maven phase order with mulit-module project?

Forgive me. I'm a noob at Maven. Here is my maven project directory: project/ pom.xml moduleA/ moduleB/ sub-moduleA/ sub-moduleB/ sub-moduleC/ moduleC/ Of course, within each module and sub-module, they have…
Rob Avery IV
  • 3,562
  • 10
  • 48
  • 72
7
votes
1 answer

Maven - delegate plugin execution to submodule

I've got a super POM gathering versions, plugin & dependency definitions for its 2 child submodules: one for a webapp (running with jetty:run), the other one for DB migrations ("running" with liquibase:update). This works fine so long as I changed…
fbiville
  • 8,407
  • 7
  • 51
  • 79
7
votes
2 answers

Sonar with multi-module gradle project

I have java and kotlin based multi module gradle project. I am trying to setup sonar analysis for the same. I configured sonar at root project and ran analysis with CircleCI. The result in sonarcloud gets for only one of the sub-project. My project…
karikevinod
  • 633
  • 7
  • 16
7
votes
2 answers

Dependency on a module on a multimodule gradle project

I have a multi-module project in Gradle. I refactored the common functionality into a module named common. I have tests in a different module (lets say module A) of the multi-module project that consume the classes under src/main/java of the…
user_mda
  • 18,148
  • 27
  • 82
  • 145
7
votes
1 answer

Android navigation component and BottomNavigationView in a multi module application

I've been trying to create a multi module application where every feature is a standalone library (module). Single activity pattern is applied throughout the project. The structure consists of an 'app' module which contains the MainActivity. A core…
7
votes
2 answers

Pack a multi-module Gradle library into a single module

I've split my pancakes Gradle-based library written in Kotlin into multiple modules: pancakes-core, pancakes-addon1, ..., pancakes-addonN. The addon ones include the core one. Now, most users shouldn't care and will just want the default…
Anton3
  • 577
  • 4
  • 14