首页 > 解决方案 > jar 文件,pom 文件未在 maven 项目中下载

问题描述

我正在尝试运行我的 maven 项目,但在 .m2 文件中我没有看到任何 jar 文件和 pom 文件。在 ecliplse 我得到以下错误

错误-

"Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to repo1.maven.org (http://repo1.maven.org/maven2): connect timed out -> [Help 1]"

我正在从我的浏览器导航“ http://repo1.maven.org/maven2 ”,我可以访问它。

.m2文件夹中,我看到以下文件 在此处输入图像描述

我正在使用简单的运行配置,请在下面找到 在此处输入图像描述

我不在任何代理下 在此处输入图像描述

标签: javamaven

解决方案


推荐阅读