简体   繁体   English

无法创建Maven Eclipse项目

[英]Not able to create Maven Eclipse Project

I am not able to create maven project in eclipse. 我无法在Eclipse中创建Maven项目。 I tried some suggestions from google but all did not work. 我尝试了谷歌的一些建议,但都没有用。 I am using windows os and eclipse 2018-12. 我正在使用Windows OS和Eclipse 2018-12。 See the error message in the image. 请参阅图像中的错误消息。

在此处输入图片说明

As per the error log shown in snapshot, You are getting this error because your eclipse is not able to connect to maven central repository to download the maven quick-app artifact(ie for standalone application). 根据快照中显示的错误日志,您将收到此错误,因为您的日食无法连接到Maven中央存储库以下载Maven快速应用程序工件(即,用于独立应用程序)。

If you are trying under proxy network than might be your organisation is blocking the maven central repository. 如果您尝试使用代理网络,则您的组织可能会阻止Maven中央存储库。 In such case please configure your organisation remote repository details inside maven setting.xml . 在这种情况下,请在maven setting.xml配置组织的远程存储库详细信息。

If you are not working behind proxy than please delete .m2 directory from under C:\\Users\\<UserName> and try again. 如果不是在代理后面工作,请从C:\\Users\\<UserName>下删除.m2目录,然后重试。

Sometime we face issue with eclipse embedded maven, as it might get corrupted. 有时我们会遇到Eclipse嵌入式Maven的问题,因为它可能会损坏。 If above solution won't work for you. 如果上述解决方案对您不起作用。 Than try downloading letest version of maven . 比尝试下载最简单的Maven版本。 And use the same in eclipse. 并在日食中使用相同的内容。

To configure different maven in eclipse go to Window menu -> Preferences -> Maven -> Installations 要在Eclipse中配置其他Maven,请转到“ Window menu -> Preferences -> Maven -> Installations

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM