Intellij resources not in built artifact

前端 未结 2 947
你的背包
你的背包 2021-01-01 23:42

I\'m attempting to build a .jar that contains a non-standard images and fonts, which I have added to the resource folder in my project. I am able to load them into my projec

2条回答
  •  忘掉有多难
    2021-01-02 00:16

    You can create your own artifacts in the project structure: enter image description here

    There you can add the directory contents of the resources folder. Press the green plus and navigate to your folder and add it. You can then click build-> build artifacts -> build. In my case the jar is created in ./out/artifacts folder.

提交回复
热议问题