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

Combining output of maven modules and parent

My project consists of maven modules and a parent module. Each module will have its own xml resources. I want to change output directory of each module to parent module's directory. All the resources and class files will go to parent module's output…
Murat
  • 3,084
  • 37
  • 55
0
votes
1 answer

Maven multi module and plugin calls

my multi module project has the following structure: parent module 1 <-- inherits from parent via ../parent/pom.xml module 2 <-- inherits from parent via ../parent/pom.xml aggregator <--…
Kamil Szuster
  • 195
  • 1
  • 1
  • 10
0
votes
1 answer

Maven multi-module project within a multi-module project. Is it possible?

The project I am involved in developing appears to have the potential to grow into a multi-module project containing sub multi-module projects. While it was just at multi-module stage I decided to have a parent pom at the root with child poms in…
Ree
  • 863
  • 2
  • 18
  • 38
0
votes
1 answer

Fail in test on View in Multimodule Maven + Spring + MyBatis + Database H2. java.lang.IllegalStateException: Failed to load ApplicationContext

I have a Multimodule Maven with two modules: Logic and View. My Multimodule configuration is Spring + MyBatis + Database H2, for SOAP services. My project work properly, without errors. But when I try exec a Junit test inside of View Module show me…
Ramon
  • 85
  • 1
  • 2
  • 8
0
votes
1 answer

CQ5 Multi OSGi Bundle Project

How can I create multiple OSGi bundles for a CQ application using maven. I'm using the multimodule-content-package-archetype provided by adobe with Eclipse. What I'm trying to achieve is a logical separation in the bundles (like logging in one…
kallada
  • 1,829
  • 4
  • 33
  • 64
0
votes
1 answer

Spring project with multimodule

I am looking to create a Spring web application and I use Maven as the build automation tool. I prefer to go with multimodule application. The reason for modules are: I have an admin module in my application and user module. The code changes in…
Sam
  • 554
  • 1
  • 12
  • 23
0
votes
3 answers

Maven Properties Plugin

I am using Maven Properties plugin to load the properties from a properties file. My Project is a multi module project with EAR and EJB modules with there respective pom files. And there is a parent pom. I am getting an error if I dont keep the…
user2791546
  • 199
  • 1
  • 1
  • 3
0
votes
2 answers

IT Code Coverage for multi-module Maven projects that have differing parents

I've spent the day yesterday up and down StackOverflow and Google and have come close to some solutions, but nothing is working. I hope someone could just tell me whether this is even possible. We have a multi-module Maven project. I just learned…
0
votes
1 answer

Folders in Maven parent project

I'm working on a Maven multi-module project, with the following structure: erm-project |-- erm-commons |-- erm-web |-- erm-backend Within the parent project erm-project there is a src/ folder. Is a src/ folder neccessary for…
mhmpl
  • 1,045
  • 2
  • 13
  • 29
0
votes
1 answer

How to make Maven Versions Plugin update-parent goal work with multi-module project

I'm using version 2.1 of the versions-maven-plugin. I have a source tree like the following: +-- JavaProjects +-- customs-deployment-support +-- pom.xml +-- pom.xml (a.k.a. base-parentpom) +-- Projects +-- customs-template …
0
votes
1 answer

Best pattern to develop a erp with maven multi module

I have a ERP project with modules stock, purchases and sales. These are web applications, using hibernate, maven, springMVC and spring security. What is the best way to organize the structure of this project? 1 - Each application being a web…
graell
  • 834
  • 5
  • 11
0
votes
0 answers

Changing variables from exec statement in imported module

I'm trying to use a bash script to run multiple python scripts at once, and I modify python variables like amounts or min/max from the bash script (called MasterLoader) by passing in args like so: A_Num=20 python A1.py "global AMOUNT; AMOUNT =…
Patrick
  • 13
  • 1
  • 5
0
votes
1 answer

Avoid referencing parent pom in maven multi module project

My multi module project is made of public (open source) and private (undisclosed) modules. I need to create a master-all pom file referencing master-public and master-private, so that some plugins & commands are aware of all projects (e.g.…
Martin Pernollet
  • 2,285
  • 1
  • 28
  • 39
0
votes
1 answer

maven release plugin : Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1

I am trying to use maven release plugin to make a release of my multi-module project. when i execute mvn release:prepare i get following error ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.0:prepare (default-cli) on…
KItis
  • 5,476
  • 19
  • 64
  • 112
0
votes
1 answer

Maven multi module project build: modules in local repo

Suppose we have a multimodule project: first second where second depends on first through dependencies. If I run mvn cleanpackage, does maven or reactor will put any of the modules to local…
glaz666
  • 8,707
  • 19
  • 56
  • 75