I am facing issues in organizing Maven multi-module projects. I want to use the files in one child project(B)
from other child projects which are C, D and E
. Below is complete scenario described.
I have Parent project A
and its child projects are B(output jar)
, C(output pom)
and D(output pom)
. Project C
has its own four children(F, G, Example1 and Example2
). And, project D
has its children which is named as E(output pom)
. It looks like this:
Project A(parent)
|-- project B(child1; outputs jar which is my GUI)
|-- project C(child2; outputs pom)
|-- project F(child of project C, outputs war)
|-- project G(child of project C, outputs war)
|-- project Example1(child of project C, outputs war)
|-- project Example2(child of project C, outputs war)
|-- project D(child3; outputs pom)
|-- project E(child of project D; outputs pom)
Now, project B is my GUI
of the project which internally uses the some of the files from project C, D, E, F. G. Example1 and 2
. During programming I am able to execute the files from all projects in project B
. But problems come when I release the final package of the project and use only jar
of the project B
because I am unable to execute files from the other projects which are C, D, E, F. G. Example1 and 2
. Could anyone please help me how to use other projects? I am beginner in the Maven so I do not have idea how to integrate files between different child projects.