问题
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