如何在IntelliJ中导入库 [英] How to import library in IntelliJ
问题描述
我想在Java项目中使用此
或者,或者,只需单击此链接: https://repo1.maven.org/maven2/org/reflections/reflections/0.9.12/并从那里获取.jar.
I want to use this library in a Java project. How can i import this library and use it in my project?
I've heard about .jar files, that I should add. But this library has no .jar in it, only source files. So I don't know what is the best/cleanest way to import and use this library.
If you need any more information to help, do not hesitate to ask.
The best approach for that would be to use Maven (or Gradle).
But, if you really want to download the .jar file and import that one into IntelliJ, you can download it from Maven Central, here: https://mvnrepository.com/artifact/org.reflections/reflections/0.9.12.
Or, alternatively, just follow this link: https://repo1.maven.org/maven2/org/reflections/reflections/0.9.12/ and get the .jar from there.
这篇关于如何在IntelliJ中导入库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!