I have created several projects in Java that I would like to package as group. I have created a wrapper project to hold these. So we pretty much have a set up like this
- Project 1 - Has dependencies on ThirdPartyProject1
- Project 2 - Has dependencies on ThirdPartyProject2
- Project 3 - Has dependencies on ThirdPartyProject3
- WrapperProject - Has dependencies on Project1, Project2, and Project3.
We are packaging a project that uses the WrapperProject and my supervisors would like to package the third party dependencies in separate file than the WrapperProject.jar that would be produced during the assembly.
I wonder whether that is possible and how? I have been looking into the Maven dependency plugin but have not used it before and so I am not quite sure how it works. At the end of the day I would like to have a lib folder and a Jar file that would look something like this.
Lib - ThirdPartyProject1.jar - ThirdPartyProject2.jar - ThirdPartyProject3.jar
WrapperProject.jar - Project1.jar - Project2.jar - Project3.jar