Questions tagged [maven-module]
106 questions
0
votes
2 answers
maven - advice on usage of multi-modules (jar, war, …) project
I have the following Maven organization:
- ./pom.xml (top-level project, which defines the 4 modules below)
- ./a/pom.xml (library jar)
- ./b/pom.xml (library jar)
- ./c/pom.xml (war)
- ./d/pom.xml (executable jar)
For building and…

Appelsien Sap
- 363
- 1
- 3
- 9
0
votes
1 answer
maven - advice on usage of multi-modules (jar, war, ...) project
I have the following Maven organization:
- ./pom.xml (top-level project, which defines the 4 modules below)
- ./a/pom.xml (jar)
- ./b/pom.xml (jar)
- ./c/pom.xml (war)
- ./d/pom.xml (war)
So far, I have been using Maven as following…

Appelsien Sap
- 363
- 1
- 3
- 9
0
votes
1 answer
My maven module cannot find class in my other maven module though I am setting it as dependency
I have two maven modules. One named tests and one ws-ejb.
In the tests pom.xml I have set the ws-ejb to be a dependency so I can use the EJB's in my tests.
This is a shortened version of the pom.xml of my tests maven module:
…

number_43
- 29
- 1
- 5
0
votes
2 answers
How to tell Maven to compile auto-generated maven modules?
In a project I'm working on, we auto generate the interfaces API in a folder called api/ which contains several sub-folders, where each of them has a pom file able to compile the content of the module.
project-root
- api
- module-api-1
-…

slux83
- 686
- 9
- 20
0
votes
1 answer
Maven build, test and run on a docker machine
It's probably too soon to ask this question but I hope someone has already had the same problem as me.
I have to build a jar that run on a centos7, openjdk-7 machine.
I created a docker machine in a ridiculously short time :) but my issue is more a…

Thomas Leduc
- 1,092
- 1
- 20
- 44
0
votes
1 answer
Jenkins maven-project plugin doesn't support reactor module exclusion
I can't get module exclusion to work with Jenkins maven plugin, see the output below:
07:11:53 Executing Maven: -B -f /home/jenkins/.jenkins/workspace/my_project/pom.xml clean cobertura:cobertura install -P nogpl,ci -pl -gotham/java/dev-server -X…

Jakub Bochenski
- 3,113
- 4
- 33
- 61
0
votes
0 answers
How to share code between Maven modules so IntelliJ IDEA recognises it?
I have got a library project (written in ActionScript), that has two build outputs: One is made by including library A, the other is made by including library B.
My goal is to mavenize this library, and I've come up with the following solution:
I…

sydd
- 1,824
- 2
- 30
- 54
0
votes
2 answers
Creating war file failed from maven multi module project using java
I have a parent maven project and two child modules of that parent. One of the child modules has a packaging type of jar. And this jar is to be used in the other child module which has packaging type of war.
First child's pom.xml:

Anshu Bhattarai
- 73
- 1
- 2
- 9
0
votes
1 answer
Separate project for core modules IntelliJ
If you are using a module in multiple projects in IntelliJ IDEA is it common practice to make a new project for these modules or to make the modules in one of the projects they are included in?

user2248702
- 2,741
- 7
- 41
- 69
0
votes
1 answer
Autowiring a bean from one maven module to another maven module within same multi-module maven project
I have a multi module maven project with follwing child module
Tracker
|--Tracker-core
|--Tracker-dao
| |---src/main/resource/spring-dao-config.xml
|
|--Tracker-services
| |---src/main/resource/spring-service-config.xml
|
|--Tracker-web
In…

amFroz
- 95
- 1
- 12
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
Managing different dependency contexts in java (maven) project
I have an applicatoin where all the code is very cohesive, but runs in different class environments. The application does the same thing many ways, using different APIs.
I want to thus have different parts of the build run with different…

jayunit100
- 17,388
- 22
- 92
- 167
0
votes
2 answers
Maven Custom Parent property from Module
I cant access, from a Maven module, to a property defined in the properties section of the parent.
As a matter of fact When I launch the build below the warName is the default one.
This is the parent Pom
....
4.0.0
…

Panciz
- 2,183
- 2
- 30
- 54
0
votes
1 answer
Maven: How to skip sub-modules if a profile is activated?
I want Maven to skip building all sub-modules if the user neglects to specify a build profile. https://stackoverflow.com/a/8305931/14731 explains how to include a module if a profile is selected, but not how to exclude it.
I understand I can copy…

Gili
- 86,244
- 97
- 390
- 689
0
votes
1 answer
How to integrate maven multiple modules report into one
I have 10 folders each one hosts a respective project. the report plugin was added to pom.xml of each project, which is not convenient to check the report into each project, I'm wondering if there is a way to integrate all project reports into one?