intellij-idea - Intellij 使用 java 创建示例 struts web 项目,然后显示此错误
解决方案
如果您的 pom.xml 中有 Maven 中央存储库的 URL,定义如下:
<repository>
<id>Maven Central</id>
<name>Maven Central Repository</name>
<url>http://central.maven.org/maven2</url>
</repository>
然后 url 需要更新,以
<repository>
<id>Maven Central</id>
<name>Maven Central Repository</name>
<url>https://repo1.maven.org/maven2</url>
</repository>
因为:“从 2020 年 1 月 15 日开始,中央存储库将不再支持通过 HTTP 进行的通信”(https://blog.sonatype.com/central-repository-moving-to-https)
推荐阅读
- arrays - 如果数组中的两个连续数字相等,如何缩小数组然后删除一个并增加另一个
- vb.net - 团结我需要从无限循环运行更新
- android - ellipsize 在 ConstraintLayout 中不起作用
- reactjs - 反应本机 npm 开始无法正常工作
- python - 如何避免在 Django 中基于函数的视图中重复代码?
- c# - C# 编译器:来自 lambda 的类
- node.js - BashScript 停止/永远不会在没有任何错误消息的情况下完成
- android - 如何禁用 ViewPager 滑动并使用按钮单击启用手动滑动
- junit - Junit 测试用例未针对模拟 JPA 运行
- scala - 尝试放置数据时,Aplakka scala s3 连接器挂起