Questions tagged [maven-module]
106 questions
4
votes
1 answer
Sharing dependencies between maven modules
I have the following structure:
main/
--pom.xml
--common/
--pom.xml
--core/
--pom.xml
Both common and core are modules of the main projects, so main/pom.xml is like this:
4.0.0
…

Chico Sokol
- 1,254
- 3
- 16
- 24
3
votes
2 answers
ERROR: /var/jenkins_home/workspace/gara-bo@script/Jenkinsfile not found
I have a maven multi modules project.
I create a pipeline to clean and deploy my project.
When I run the pipeline I got the following output :
``Started by user XXXXX
Checking out git http://XXXX:9080/gara/gara-back-end.git into…

Teddy Kossoko
- 1,168
- 3
- 20
- 48
3
votes
1 answer
Maven multimodule library build
I'm developing library with Maven system, which is published in the Nexus repository.
In the nexus (and the maven build as well), the project produces the final jar named -.jar - this is exactly what I want.
Now, I decided to…

Lukas Forst
- 802
- 1
- 8
- 25
3
votes
3 answers
Error creating assembly archive in multi module maven project
I have created a multi-module maven project with 2 modules(child1, child2). I am trying to create a package - APP.zip which should contain app.properties, child1.war and child2.war by using assembly plugin.But I am getting the below error when I run…

Karthik
- 1,302
- 5
- 25
- 56
3
votes
1 answer
Exclude properties file from a WAR type sub-module in Maven
I have a complex scenario of packaging my EAR projects, below is the sort of visual description to fully understand it:
ProjA.ear
|-- ProjA.war
|-- Util.war
| |-- WEB-INF
| | |-- classes
| | | -- log4j.properties
Similarly, I have…

Jaffy
- 575
- 1
- 6
- 15
3
votes
2 answers
Hibernate and JPA error: duplicate import on dependent Maven project
I have two Maven projects, one called project-data and the other one call project-rest which has a dependency on the project-data project.
The Maven build is successful in the project-data project but it fails in the project-rest project, with the…

Stephane
- 11,836
- 25
- 112
- 175
2
votes
0 answers
Pitest report-aggregate goal complains about transitive dependencies
I integrated Pitest according to https://pitest.org/aggregating_tests_across_modules/ in a Maven module project (Maven version 3.5.4).
When running mvn clean package the log shows the Pitest execution for the target modules (i.e. the modules for…

Mark Schäfer
- 925
- 1
- 12
- 23
2
votes
1 answer
How to assembly multiple executable JARs from a multi-module maven project
I have a multi-module project like this
foobar
|
+-- pom.xml
|
+-- common-lib/
| |
| +-- pom.xml
| +-- src/
|
+-- foo-app/
| |
| +-- pom.xml
| +-- src/
|
+-- bar-app/
| |
| +-- pom.xml
…

Feenaboccles
- 412
- 3
- 12
2
votes
1 answer
One profile properties are overriding with another profile properties in maven?
I have a problem with maven profiles. Coming to the details, I have two profiles like profile1 and profile2. I have declared few properties for both the profiles along with the modules which needs to be updated by each profile individually. Let see…

Nallamachu
- 1,420
- 18
- 34
2
votes
1 answer
Maven build skips submodules which are dependency in another module
I have nested multi module maven structure like this:
main_aggregator
|- submodule_A
| |- sub_submodule_1
| |- sub_submodule_2
|- submodule_B
|- submodule_C
pom.xml in main_aggregator has this in modules
…

CoCumis
- 99
- 1
- 8
2
votes
1 answer
Maven inherit parent module resources
In Maven, is it possible to load resources in a child module from the parent project?
parent project
---child module 1
---child module 2
I have resources in the parent project src/main/resources which I would like to be made available for the…

zzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
- 5,711
- 8
- 54
- 70
2
votes
4 answers
eclipse nullpointer exception for modulare maven project update
I'm using Eclipse 4.4.1 with m2e plugin and the latest gae dependencies. When I import the gae module sample project eclipse tells me that the project configuration is not up to date. If I run the suggested maven -> update project, I get a…

roemer
- 537
- 1
- 5
- 21
2
votes
1 answer
sharing java beans between maven modules in an app server
I'm not sure what I'm attempting is possible, therefore I'm looking for advice / guidance on the subject. Say I've got 2 maven modules running simultaneously, with module B having module A specified as dependency. I've also got an application server…

XXL
- 1,224
- 4
- 12
- 25
1
vote
2 answers
Accessing a Spring Boot Repository of an interface in a module from outside
Yes, Spring Data JPA is a nice feature, that delegates the creation/implementation of a database query to Springboot. I was able to use this simply by creation of a configuration class, that was annotated with @Configuration and…

Groovieman
- 31
- 5