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
4
votes
3 answers

Jenkins fails to build multi-module Maven project

I have a multi-module Maven project where I have multiple micro services as modules so I have modules listed in my parent pom.xml like below: core model-base module1
user1653027
  • 789
  • 1
  • 16
  • 38
4
votes
1 answer

Setting up maven to compile (instead of downloading) dependencies

I cloned the git repository of Apache ActiveMQ Artemis project (https://github.com/apache/activemq-artemis) and then typed mvn -Ptests test -pl :integration-tests I was surprised to see log messages like the following ... Downloading:…
user7610
  • 25,267
  • 15
  • 124
  • 150
4
votes
1 answer

Multi-module Maven with Profile in Eclipse Doesn't Resolve Dependencies on Children

For my setup, I have profiles defined in my ~/.m2/settings.xml, where the profiles define some project-specific repositories. From the command line, I can successfully build the projects using -PprofileHere. However, the profile isn't enabled…
coastalhacking
  • 307
  • 2
  • 13
4
votes
1 answer

maven multimodule project: can I jar-with-dependencies?

I have a maven project, with a main project A and modules B and C. The children inherit from A's pom. A | |----B | |----pom.xml | |----C | |----pom.xml | |----pom.xml It already builds jars for all the modules. Is there a way to include…
Wisco crew
  • 1,337
  • 1
  • 17
  • 25
4
votes
2 answers

Maven inheritance isn't working with pluginManagement

I have this plugin configured in parent pom 1.7 3.3 ...
jscherman
  • 5,839
  • 14
  • 46
  • 88
4
votes
1 answer

Associate Git commits from multiple repositories with a TFS 2013 build

I am using Team Foundation Server 2013 builds for a multi-module Gradle project, each module resides in its own Git repository. All of these repositories are located in a single TFS 2013 project. The build template is executed on the main module's…
Michael Schmeißer
  • 3,407
  • 1
  • 19
  • 32
4
votes
3 answers

Maven multi module project error

I'm using the followin folder structure: SpringMvcExample \_ pom.xml (root pom) \_ parent \_ pom.xml (parent pom) \_ model \_ src …
Alexandr
  • 9,213
  • 12
  • 62
  • 102
4
votes
1 answer

Gradle Android buildTypes overriding each other

I'd appreciate any help with this since I'm a noobie w/ gradle. I've got a build script with multiple buildTypes, but it appears settings for one of them are overwriting the others. Here's my build.gradle: buildscript { repositories { …
Karim Varela
  • 7,562
  • 10
  • 53
  • 78
4
votes
1 answer

Sharing code AND configuration using parent module in Maven

In my project I have two modules (A,B) depend on common module C. I would like A,B share common configuration, such as repository configuration, plugin configuration, etc. In order to achieve this, C is made the parent pom and A,B inherit from it…
Ivan Balashov
  • 1,897
  • 1
  • 23
  • 33
4
votes
3 answers

Maven assembly on multi module project with special structure

I'm new to Maven, and I think I've started to get the idea of how it works. But I'm not able to understand the maven assembly plugin. What I want to achieve is this: When all projects has been packaged, with their respective dependencies, I want to…
Aldrian
  • 2,919
  • 1
  • 17
  • 11
3
votes
1 answer

How can I mix parent POMs in a Maven multi-module build?

I have a Maven multi-module project and I need two different parent POMs in this build. The first one is the real parent POM for most modules in the project but one module is a demo project which uses the parent POM of a completely different project…
Aaron Digulla
  • 321,842
  • 108
  • 597
  • 820
3
votes
0 answers

Sonar reports JaCoCo Coverage for the Test classes themselves. Is this correct? How do I change this?

we have a multi-module Maven project of Eclipse Plugins. Code Coverage Report generation using JaCoCo is working, but the statistics seem to be false. Coverage of the test classes themselves is being calculated AND being added to the general code…
danowar
  • 675
  • 1
  • 11
  • 21
3
votes
1 answer

Tomcat deploy in maven multi modules project

I have maven project which contains two modules: jar and war. war-module depends on jar: -pom --jar --war Early I used org.codehaus.mojo tomcat-maven-plugin plugin to deploy my single war project by command: mvn tomcat:deploy But here this command…
CHEM_Eugene
  • 438
  • 3
  • 20
3
votes
3 answers

How to configure Jenkins for a multi-module maven project

I have a maven multi-modul project. The structure looks like: -modulA (Main project) - pom.xml -parentModul (Aggregator) - pom.xml - ModulB (Integration Test Project) -pom.xml Package definition is like:
Kayser
  • 6,544
  • 19
  • 53
  • 86
3
votes
2 answers

Refining a Spring Bean in a multi-module Maven project?

I am drawing a blank on this for some reason. I have a multi-module Spring/Maven project. In module1 I define a singleton bean called "info" and it works within module1 just fine. However module2 in this project (which depends on module1) has…
Dave
  • 21,524
  • 28
  • 141
  • 221