Java 将当前项目转换为Maven的问题

Java 将当前项目转换为Maven的问题,java,maven,selenium-webdriver,eclipse-kepler,Java,Maven,Selenium Webdriver,Eclipse Kepler,我正在将当前项目转换为Maven项目。单击“转换为Maven”后,我得到以下错误信息 Errors occurred during the build. Errors running builder 'Maven Project Builder' on project 'ActiTime'. Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of it

我正在将当前项目转换为Maven项目。单击“转换为Maven”后,我得到以下错误信息

Errors occurred during the build.
Errors running builder 'Maven Project Builder' on project 'ActiTime'.
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
我已经添加了POI、POI ooxml、Selenium、testNg依赖项,但现在我得到了

ArtifactDescriptorException: Failed to read artifact descriptor for org.seleniumhq.selenium:selenium-java:jar:2.48.2: ArtifactResolutionException: Could not transfer artifact org.seleniumhq.selenium:selenium-java:pom:2.48.2 from/to central (http://repo.maven.apache.org/maven2): connection timed out to http://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-java/2.48.2/selenium-java-2.48.2.pom
有人能调查一下吗 我使用EclipseKeepler作为ID和JDK1.7

下面是POM.XML的屏幕截图和错误。请参考这个

您是否有internet连接?为什么要修改settings.xml?您也可以在pom.xml中添加存储库位置。请参阅:)默认情况下,settings.xml不是必需的,当您要覆盖存储库设置时,它是必需的,因此请将其删除并重试。如果您只是在浏览器中粘贴,这是否有效(您会看到一长串链接)?您是否使用eclipse中的Build project选项构建项目?尝试ALT+SHIFT+X和M组合,它会要求您提供一个选项(目标)指定干净安装并以这种方式运行,让我知道发生了什么,而且依赖项错误是针对maven资源插件的,我在pom中看不到。刷新(F5)项目并更改工作空间设置。(转到首选项->工作区->使用本机钩子)@RahilKumar您无法找到它,您必须手动编写它。也可以尝试ALT+F5(右键单击project->Maven->更新项目配置)