Add all jars in a repository as dependencies in IntelliJ

老子叫甜甜 提交于 2019-12-12 12:01:53

问题


I have a savant repository in my project and I want to add all of the jars contained within the repo to IntelliJ's depenedcies list. I can add the jars one at a time, but I want to be able to add them all at once.

Is there a way to add all the jars found within all the directories/subdirectories?

Details: IntelliJ 12

Update: I can not change the repository structure, it is auto populated when ant builds.


回答1:


Adding jars from a directory is supported, but not recursively, please vote for this feature request.




回答2:


Yes, you can add all jars in a folder. You have to create a library and select option: "Attach file or directories" and the select a directory. This way even a future changes to the directory will be visible.



来源:https://stackoverflow.com/questions/14965016/add-all-jars-in-a-repository-as-dependencies-in-intellij

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!