Questions tagged [maven-module]
106 questions
1
vote
2 answers
Maven cyclic dependency
my maven project has multiple maven modules. Two of those modules (product and feature) are dependent on each other. When I include the modules as dependencies in the pom files, an ! mark appears on the modules. On running maven install I get this…

Sid
- 435
- 4
- 9
- 19
1
vote
1 answer
Running ant from a maven module containing other modules
I have a directory structure like the following:
root/ui/
root/ui/pom.xml
root/ui/build.xml
root/ui/_idea/{files that I want copied are here}
root/ui/ssui/pom.xml (An inner module)
In my POM file, I'm trying to call the ant file using
…

Ruan Mendes
- 90,375
- 31
- 153
- 217
1
vote
1 answer
How to build a full generated maven module
I have this classical project tree:
project
pom.xml
This pom.xml generates a full maven project with its own pom.xml like this:
project
pom.xml
generated-module
pom.xml
src
...
Is it possible to generate and buid this generated…

Nelson G.
- 5,145
- 4
- 43
- 54
1
vote
1 answer
Maven module - How to use it as an external lib in an unrelated project
I have set-up a modular project in Maven with a parent project having more than one child projects.
The pom.xml of parent looks as follows -
4.0.0
com.company
…

Ujjwal
- 603
- 12
- 23
1
vote
0 answers
How to pass testng parameters in maven multi modules
I have maven project with 4 modules
Project
--->module 1
|
--->WebDriver setUp
--->module 2
|
----> testng.xml
How can I get in setUp() parameters from testng.xml file ?

SelenUser
- 638
- 5
- 13
1
vote
1 answer
How to exclude specific libraries by default in maven?
I'm writing some kind of framework, and within want to provide a specific feature that uses lucene (take lucene as an example of any feature here).
So in my framework I definitely have to maven include the lucene library as dependency to be able to…

membersound
- 81,582
- 193
- 585
- 1,120
1
vote
1 answer
Bootstrap a Spring @Configuration class from another Maven module in a multi-module project
Before the spiel, I think the question essentially boils down to this:
How can I instantiate correctly @Configuration beans from an application's XML-based configuration?
In an attempt to modularize my project and follow something of a clean…

chrisjleu
- 4,329
- 7
- 42
- 55
1
vote
0 answers
Execute maven plugin goal on specific modules
I have the following situation:
masterpom.xml:
...
sample-module
...
org.codehaus.mojo
versions-maven-plugin
2.1
…

0x5C91
- 3,360
- 3
- 31
- 46
1
vote
1 answer
Combining jars for multi modules maven project in a single jar
I have a parent maven project that includes some child projects and a build/assembly project. The structure looks like this
ParentProj
+ pom.xml
+ ChildProj1
++ pom.xml
+ ChildProj2
++ pom.xml
+ buildProj
++ …

adeelmahmood
- 2,371
- 8
- 36
- 59
1
vote
1 answer
Web, Model, Service & Repository to Divide Into Separate Projects, Spring MVC
I have a MVC Spring Project using Maven and Tomcat. I am trying to seperate the projcet to subProjects like
---Web (Controller and Jsp's)
|
---Model ( Model classes)
|
---Service
|
---Repository
I want to let everything separate to be…

SamSamet
- 395
- 1
- 5
- 20
1
vote
1 answer
How to build a Maven module if a profile is activated and a property is not set?
I've got 3 modules:
Module1
Module2
Module3
and 3 profiles:
Profile1
Profile2
Profile3
I'd like to build Module1 if:
Profile2 or Profile3 is activated, and
Command-line property skipModule1 is not set.
Regardless of whether Module1 is built,…

Gili
- 86,244
- 97
- 390
- 689
0
votes
0 answers
package a module before integration tests
I have a multi-module maven project.
one of the modules (module-A) let me create an executable jar. This jar is normally executed from a third party application and communicate via stdin/stdout.
a second one (module-B) is an integration test. In…

Vito De Tullio
- 2,332
- 3
- 33
- 52
0
votes
1 answer
NoClassDefFoundError in Maven multi-module project
I have splitted an application to prevent code duplicates in various submodules.
So all modules are using the submodule "core" which contain some DAOs and Util-Classes.
When I now execute a module and it is calling the Util-Class of core, a…

HarleyDavidson
- 559
- 6
- 17
0
votes
0 answers
Spring bean gutter Icon not being displayed in Intellij idea
Idea warn: "Autowired members must be defined in valid Spring bean (@Component|@Service|...)"
Multi-module project, it is determined that the dependency has been introduced, and the project can run normally, but Idea gives a warning.
I tried to…

fengche
- 16
0
votes
1 answer
Microservice architecture design (spring maven multi-module project) to create a working ci/cd flow
I'm currently learning gitlab ci/cd and ran into a problem.
I am a java developer and I have written a multi-module maven project with microservice architecture.
At the root of the project, I have a BOM file in which the heir modules are declared…

Limbo1111
- 9
- 4