Include project modules in a single jar

32
June 20, 2022, at 2:40 PM

I have a multi module maven project, the 3 modules are api, impl, all. The all module is a placeholder and has no source code, it only has a pom.xml which has dependencies on both other modules.

Any external consumer of my project only needs to have dependency on the all module. I need the jar for my all module to locally have the source that is present in the other 2 modules. I tried uber jar, but it packages all the external dependencies locally, which I don't need. What would be the cleanest way to achieve this?

READ ALSO
Get process instance id for restarted process

Get process instance id for restarted process

I am using Camunda and I want to restart already completed processI am doing that using the following logic:

64
How to run relevant methods using annotation?

How to run relevant methods using annotation?

Maybe this question title is not up to my queries but I am searching for the answers for so long

71
Best practice to convert a packet id to an instance of that class

Best practice to convert a packet id to an instance of that class

I'm creating a protocol system for a multiplayer game using as model the Minecraft's oneEach packet's type is identified by the first byte in the packet, and each packet implements some sort of "Packet" instance

38