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
5
votes
0 answers

Publish to MavenCentral with private submodule

Our Android project is a monorepo containing couple of app modules, and even more library modules. One of the libraries should be also accessible to other developers so we have decided to deploy it on MavenCentral. Let's call it the library L. This…
Pilsner25
  • 141
  • 1
  • 5
5
votes
1 answer

Creating a multi module project with maven spring and kotlin get unresolved reference

I am trying to build a multi module maven project with kotlin and spring. I get an error when the kotlin-maven-plugin runs the compile phase. [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] ---…
pnts
  • 51
  • 1
  • 2
5
votes
0 answers

Maven Release plugin: Running specific preparationGoals & completionGoals in some modules of a project

For the release process / preparation in my multi-module project I want to run additional goals in a selected set of modules (webapps). For example: pom.xml (parent/root) |-- common-module/pom.xml |-- some-webapp/pom.xml |--…
user2039709
  • 890
  • 7
  • 17
5
votes
2 answers

How do I configure my Maven Jenkins job to only build modules where I've checked in code?

I'm using Maven 3.5, Git, and Jenkins 2.138.1. I have a Maven Jenkins job set up for my multi-module Maven project. Normally, if I want to build just a single module in Maven and whatever it affects, I can run mvn install -pl myModule -am from a…
Dave
  • 15,639
  • 133
  • 442
  • 830
5
votes
2 answers

minify frontend with minify-maven-plugin

I'm using the maven plugin minify-maven-plugin in order to minify my frontend project. This works fine when I go over dos box to the frontend project and execute mvn clean install but when I execute mvn clean install in the main pom in my reactor…
quma
  • 5,233
  • 26
  • 80
  • 146
5
votes
1 answer

Maven: Ignore inter-module dependencies while running unit tests

We have a large multi-module Maven project. I've been experimenting with speeding up our unit test builds using the -T option, with some positive results. However, there are some dependency paths in our project like this: module A <- module B <-…
choover
  • 852
  • 7
  • 12
5
votes
2 answers

Maven2 applying filtering to the file under pom type packaging

I am new to maven. I want to use filtering in a multimodule project. The packaging type of the parent pom is set to pom. The structure of the project is as follows: pom.xml | |______MODULE1 | | | pom.xml | …
Harry
  • 75
  • 2
  • 10
5
votes
1 answer

Eclipse m2e multi-module project checkout and convert to maven

I have recently had need to checkout an apache project to do some fact-finding/debugging (specifically maven-surefire-plugin, see this question). This, like most other apache projects, is a maven multi-module project. So, in eclipse, I open up the…
Lucas
  • 14,227
  • 9
  • 74
  • 124
5
votes
2 answers

How to activate a Maven Profile for a specific module in a mutli-module project

We have a multi-module Maven project consisting of a parent POM and 5 or more modules. Each module can be deployed to a running server as part of the build if we activate our custom "auto-deploy" profile, which is defined explicitly in each module…
Craig S. Dickson
  • 407
  • 6
  • 14
5
votes
1 answer

Multiple versions of the same multi-modules maven project under eclipse

I'd like to work on two different versions of the same multi-modules maven project under eclipse. Unfortunately, when you import a multi-module maven project under eclipse, you can change the parent module project name yourself, to prevent…
Laurent Grégoire
  • 4,006
  • 29
  • 52
4
votes
2 answers

multi-module project and ${basedir} placeholder

I have a multi module project with the following structure: -parent -module1 -module2 -src -main -javadoc -stylesheet.css -pom.xml I want to configure the javadoc plugin in the parent POM. But, I need to…
manash
  • 6,985
  • 12
  • 65
  • 125
4
votes
0 answers

Quarkus can't start dev mode with multimodule project

I tried setting up a multi module project with quarkus. I setup a parent with 3 child modules that all can be started with the quarkus dev mode. However when I try to start quarkus dev mode in the parent pom I get the Exception that it can not be…
4
votes
0 answers

How to make a data class Parcelable in a Kotlin library in multi-module Android project?

I am trying to break my android app into smaller gradle modules (for now data and model modules). I want to keep my model module as a Kotlin library because it will only contains data classes. But some of those data classes are Parcelable. To use…
Arpit Shukla
  • 9,612
  • 1
  • 14
  • 40
4
votes
3 answers

Is it possible to load Spring-Boot properties from config folder within parent module of a Maven multi-module project?

Is it possible to load multiple Spring-Boot .yml config files from a config folder within parent module of a multi-module project? So, structure looks like this: parent-module/ pom.xml config/ application-prd.yml application-dev.yml …
djangofan
  • 28,471
  • 61
  • 196
  • 289
4
votes
0 answers

Obfuscate Maven Multi Module Spring Boot Project

I am having a Spring boot multi-module maven project running with Java8. I need to obfuscate using proguard. My requirement is only to obfuscate my code and keep everything as-is. So my project looks like below: Module B has a dependency on…
Ashish Pancholi
  • 4,569
  • 13
  • 50
  • 88