Intellij idea packages 3 moudules into one jar while I select 'copy to the ouput directory and link via manifest'
已回答
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.

请先登录再写评论。
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.