java - Idea Intellij : Dependency org. json :json:20180813 not found,无法在maven中导入org.json库

标签 java json maven intellij-idea

我尝试在我的 pom.xml 中添加以下依赖项文件:

<dependency>
    <groupId>org.json</groupId>
    <artifactId>json</artifactId>
    <version>20180813</version>
</dependency>

但是,<version>标签的内容以红色突出显示,并且 Dependency org.json:json:20180813 not found弹出错误:

enter image description here

enter image description here

为什么会发生这种情况以及如何解决?

最佳答案

cloud1's answer helped me out :

Try pressing 'Reimport All Maven Projects' button. It's the first button at Maven Projects tab (blue circle). Looks like this dependency wasn't downloaded from Internet yet.

关于java - Idea Intellij : Dependency org. json :json:20180813 not found,无法在maven中导入org.json库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52485982/

相关文章:

c# - 用户定义的结构和默认(反)序列化

java - 如何减小矩形的高度? (Java、AWT)

html - 从 iOS 中的下载字符串中提取 URL

java - 填充表格时如何防止速度变慢?

java - Jackson - 将 java 对象转换为 json - 需要所有键为大写

maven - Nexus 代理到 Artifactory 虚拟存储库

maven deploy 使用快照但 404 用于发布

java - 构建前编辑文件

java - 从 Java 方法返回多个值 : why no n-tuple objects?

java - 试图调用子方法,但将其实例化为父方法