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
7
votes
1 answer

Parent properties inside maven antrun plugin

There is a multi-module project. Inside the child I need to do some complicated stuff (integration test with deploying to application server and so on). So there is an integrationtest child, and from this module I need the root of the parent to…
Gábor Lipták
  • 9,646
  • 2
  • 59
  • 113
7
votes
1 answer

Supporting multiple Python module versions (with the same version of Python)

I looked around but cannot find a clear answer to my question. I have a very legitimate need for supporting N-versions of the same Python module. If they are stored in the same same package/directory, they would have to be uniquely named, like in…
NYCeyes
  • 5,215
  • 6
  • 57
  • 64
7
votes
1 answer

Maven Nested Modules - Second Level Children

I read a lot about maven multi module projects and came to the conclusion that I want to use the following approach: root --pom.xml --parent --pom.xml --module-a --pom.xml --module-b --pom.xml see here But now I am a bit…
JDC
  • 4,247
  • 5
  • 31
  • 74
7
votes
1 answer

Best Practices for Project Feature Sub-Modules with Mercurial and Eclipse?

I have a couple of ANT projects for several different clients; the directory structure I have for my projects looks like this: L___standard_workspace L___.hg L___validation_commons-sub-proj <- JS Library/Module | L___java | | …
leeand00
  • 25,510
  • 39
  • 140
  • 297
7
votes
2 answers

Compiling multi module maven projects without installing to local repository

I have a compiling (and packaging) problem in my multi-module maven project. Problem occurs when compiling one of two projects which are siblings and included in a parent project and also one is dependent on the other. For simplicity I am sketching…
harun
  • 129
  • 3
  • 11
7
votes
2 answers

Right way to use @ComponentScan in multi module Java-Config Spring MVC app

I've just started a new spring project, and this time I want to do things "right". In the last project I had issues with multiple registering of certain classes because of multiple @ComponentScan annotations. (i.e. all service classes got registered…
Benjamin M
  • 23,599
  • 32
  • 121
  • 201
7
votes
1 answer

maven m2eclipse multi module project

I have a multi module maven project and the directory structure is hierarchical. Some modules have dependencies on others. I have added the dependent modules to the dependency section of the project's POM. However, in order to resolve those…
Jeff Storey
  • 56,312
  • 72
  • 233
  • 406
7
votes
1 answer

How to package multi-module maven project with nested modules

I have a multi-module project in Maven that compiles correctly, but does not package correctly. In the main maven pom.xml, I include the modules like this: module1 module1/test
egervari
  • 22,372
  • 32
  • 121
  • 175
7
votes
4 answers

How to inherit from a multimodule Maven project with all its goodies?

The problem to which I cannot find a nice, scalable solution: I have a project that delivers multiple flavours of the given artifact. This has been set up as a multimodule project, currently with 3…
Lukasz Guminski
  • 862
  • 7
  • 20
6
votes
4 answers

Advice on creating Maven project structure - Multiple Modules vs Multiple Projects?

Consider the following enterprise application layering example: project-services -> POJO Services layer project-web -> Web application, depends upon 'project-services', deployed as a WAR project-web-services -> Web Services , depends upon…
Samarth Bhargava
  • 4,196
  • 3
  • 17
  • 16
6
votes
2 answers

How to create an aggregated Jacoco report for a multi-module project?

I have been looking for a solution for days for merging multiple Jacoco reports for a multi-module Android project in order to send them off to Sonarcloud at once. I have already checked tons of Stackoverflow posts and other things such as blogs,…
nuhkoca
  • 1,777
  • 4
  • 20
  • 44
6
votes
2 answers

error: cannot find symbol import dagger.hilt.android.components.ApplicationComponent;

I'm trying to include dagger hilt to my multimodule project with just three modules (app, frameworks_and_drivers, interface_adapters). I followed the hilt documentation…
Oscar Ivan
  • 819
  • 1
  • 11
  • 21
6
votes
3 answers

Maven multimodule project composition regarding dependencies sharing

There are a few similar questions, but nothing like this. How do you deal with this situation (typical scenario) : A project of 8-11 child projects, having a parent artifact/project and one main project that mostly uses/declares those others as…
lisak
  • 21,611
  • 40
  • 152
  • 243
6
votes
2 answers

Go modules without remote repository?

I'm trying to get Go modules working without involving a remote repository. src is a local directory that contains all my projects, also projects that are written in other languages than Go. For simplicity I have only show the two directories…
user12964890
6
votes
0 answers

Publishing projects with subproject dependencies to maven by using Gradle maven-publish plugin

I have a gradle multiproject with the following structure: root │ ├── core-library │ └── build.gradle │ ├── additional-feature-library │ │ │ ├── entities │ │ └── build.gradle │ │ │ └── build.gradle │ ├── sample-android-app │ └──…
Sartre
  • 143
  • 1
  • 2
  • 13