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
73
votes
19 answers

ERROR : error.NonExistentClass Kotlin In multi module Dagger project

I'm using Dagger 2 and Kotlin for Android development. My project is also a multi-module project. My settings.gradle file is like this: include :app include :lib I'm also maintaining the lib module. In the Dagger Files (for example in the…
72
votes
4 answers

Build order of Maven multimodule project?

The situation is, I have two Maven multimodule projects with the same structure: Parent - Module 1 - Module 2 When I build project 1, I see that parent is built first (order is parent->module1->module2). However for project 2, parent is…
Zhao Yi
  • 2,335
  • 7
  • 23
  • 27
57
votes
3 answers

Execute gradle task on sub projects

I have a MultiModule gradle project that I am trying to configure. Root projA projB other projC projD projE ... What I want to be able to do is have a task in the root build.gradle which will execute…
Nathan Case
  • 655
  • 1
  • 6
  • 15
53
votes
4 answers

Spring Boot: autowire beans from library project

I'm struggling to autowire beans from my custom library, imported with gradle. after reading couple of similar topics I am still unable to find solution. I have a Spring Boot project that depends on another project (my custom library with…
maret
  • 1,826
  • 1
  • 13
  • 18
49
votes
1 answer

Getting the properties defined in the parent POM inside the child modules [multi-module projects]

I'm having issues with passing properties from a super pom [of the multimodule project] into a child pom. At the moment I have the following files: superpom
monksy
  • 14,156
  • 17
  • 75
  • 124
46
votes
3 answers

How to create a Jandex index in Quarkus for classes in a external module

First of all, I have a multi-module maven hierarchy like that: ├── project (parent pom.xml) │   ├── service │   ├── api-library So now to the problem: I am writing a JAX-RS Endpoint in the service module which uses classes in the api-library. When…
Emre Isik
  • 696
  • 1
  • 7
  • 14
41
votes
8 answers

MavenError: Failed to execute goal on project: Could not resolve dependencies In Maven Multimodule project

I am trying to create a maven multi-module project. the project is created successfully but when I am trying to use one module as a dependency of another module, it throws an exception. When I create a module using eclipse, I was selecting packaging…
Harmeet Singh Taara
  • 6,483
  • 20
  • 73
  • 126
40
votes
6 answers

Specify common resources in a multi-module maven project

Is there any way to share resources between modules of a parent project in Maven? For example, I would like to specify one log4j.properties file for all the modules in a multi-module Maven project. Generally, I use Eclipse IDE to create the parent…
jilt3d
  • 3,864
  • 8
  • 34
  • 41
39
votes
4 answers

In a Maven project, how can I automatically update the version all child modules, plus the parent?

I have a multi-module project. parent POM (1.0-SNAPSHOT) |-- module1 (1.0-SNAPSHOT) |-- module2 (1.0-SNAPSHOT) `-- module3 (1.0-SNAPSHOT) When I execute mvn release:prepare it verify that parent POM has a SNAPSHOT version and all dependent…
eugenn
  • 1,638
  • 6
  • 23
  • 38
36
votes
3 answers

Maven multi-module project - copying all "package" JARS from submodules into parent/target/

I have a maven project with quite a few submodules. What I am looking for is a way to get all the .jar files produced by the sub-modules included in the aggregating POM's /target/ directory, so they can be conveniently used afterwards. They don't…
Andrew
  • 8,322
  • 2
  • 47
  • 70
33
votes
3 answers

Maven naming conventions for hierarchical multiple module projects

I've got a question on Maven naming conventions (groupId, artifactId and directory names) in a multiple module project with a hierarchical directory structrure. Research Before asking, I went through other the web on this topic and what I cleared…
d1e
  • 6,372
  • 2
  • 28
  • 41
29
votes
4 answers

Why does sbt build fail with "MissingRequirementError: object scala.runtime in compiler mirror not found."?

I have this multi-module build configuration that I'm trying to get working, but whenever I try to compile the project it fails with the following error: ➜ postgresql-netty git:(multi-module) sbt clean compile [info] Loading global plugins from…
Maurício Linhares
  • 39,901
  • 14
  • 121
  • 158
25
votes
4 answers

Maven : Multimodule projects and versioning

What are the best practices for software versioning and multimodules projects with Maven? I mean, when I create a multimodules project with Maven, what is the best approach for the versioning? To use a single version for all the modules (defined in…
manash
  • 6,985
  • 12
  • 65
  • 125
25
votes
6 answers

Maven Multi-module dependency package not found

I've got a multi module project: The parent POM.xml:
Christiaan Janssen
  • 1,003
  • 1
  • 9
  • 14
23
votes
7 answers

Import Maven multi-module project into Eclipse

How do I properly import a Maven multi-module project into Eclipse? When I import a new Maven project and select the parent pom, I can see the submodules under the parent pom which are visible in the package explorer and project explorer. However,…
Tuomas Toivonen
  • 21,690
  • 47
  • 129
  • 225
1
2 3
59 60