I am working on a multiproject, and now I have a structure that resembles this (actually there are a couple of jar projects and several military projects)
/myProj |_______projA (jar) | |____pom.xml | |____target/jar files |_______projB (war) | |___pom.xml | |___web-inf/lib/jarfiles |_______projEar | |___pom.xml |___pom.xml
What I want to achieve is to make projA and projB to read their dependencies from a shared public folder instead of saving their own copy.
Actually, I don't care where they read them at compile time, but when I pack my EAR file, I want each jar / war be displayed only once, which reduces the size of the EAR.
I tried declaring dependencies of the parent pom, declaring dependencies like some other things, but so far I have not achieved this.
Is there an easy way to achieve this? Any simple maven plugin?
Thanks in advance.
source share