如何在IntelliJ中导入库 [英] How to import library in IntelliJ

查看:54
本文介绍了如何在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆