Include external lib jars in an artifact jar?
I have an artifact that uses an external library. Is it possible to include that library within my artifact jar from InteliJ itself?
---
Original message URL: http://devnet.jetbrains.net/message/5521009#5521009
请先登录再写评论。
Yes. When you create a JAR artifact (in the "Artifact" pane of the Project Structure (Ctrl+Alt+Shift+S) dialog), there are two options for what to do with any dependencies. The one option is "extract to the target jar". If you select this option, all dependencies for the module defined in the "Module" setting at the top will be extracted and included in the JAR.


After making such a selection, you will see the extracted dependency shown in the Artifacts Output Layout Tab:
Thanks, that worked great!