I have a folder with multiple sub-directories, which all have a JAR file in each of them. This is a simplified structure of the files:
lib/
|
|__lib1/
| |_version1/
| | |_lib1-1.0.jar
| |_version2/
| | |_lib1-2.0.jar
|
|__lib2/
| |_version1/
| | |_lib2-1.0.jar
| |_version2/
| | |_lib2-2.0.jar
Now, I would like to add all of the JARs recursively into the dependencies list inside of the Project Strucutre (in IntelliJ IDEA 14).
Is there a quick way of achieving this without having to expand all directories and select the artifacts manually?
In your project home directory, there exists an .iml file add this under
<library> : <jarDirectory url="url to the folder containing jars" recursive = "true">
Worked for me.
On IntelliJ 2019.2
As soon as you save IntelliJ will recurse through the directories and add all the jars it can find to the entry of your library in the project navigator.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With