Intellij idea packages 3 moudules into one jar while I select 'copy to the ouput directory and link via manifest'
Answered
Here is my project. It contains 3 independent modules. And robin-app has reference to robin-springroot, and robin-springroot has reference to robin-springroot-plugin.

While packaging, I choose copy to the ouput directory and link via manifest, and I guess in the final output folder, I should see robin-app.jar, robin-springroot.jar, and robin-springroot-plugin.jar the three files. But I find that I only get robin-app.jar, and it contains all the classes in other modules. Why is it? Thanks.

Please sign in to leave a comment.
This behavior is by design, module output will be in the single jar, this setting affects only jar dependencies. Consider using Maven plug-ins for packaging the standalone jars.