简体   繁体   English

创建简单的Maven项目时出现错误

[英]Getting error while creating simple maven project

getting error while creating simple maven project 创建简单的Maven项目时出错

[WARNING] repository metadata for: 'org.apache.maven.plugins' could not be retrieved from repository: central due to an error: Error transferring file: repo1.maven.org
[INFO] Repository 'central' will be blacklisted
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be found

You might want to check your internet connection (but you posted here somehow, so I guess it's OK). 您可能要检查您的互联网连接(但是您以某种方式发布在这里,所以我认为可以)。

Then take a look at Maven docs about user settings; 然后看一下有关用户设置的Maven文档 if you're behind a firewall/NAT, then you probably need to add proxy definition inside the <proxy> tag. 如果您位于防火墙/ NAT之后,则可能需要在<proxy>标记内添加代理定义。

Read here on how to connect to maven from a proxy . 在这里阅读有关如何从代理连接到Maven的信息 Try updating after that it will work. 尝试更新之后,它将起作用。

Another possibility is that your organization firewall/proxy prohibits downloading of jars. 另一种可能性是您的组织防火墙/代理禁止下载jar。 You can verify that by trying to download the jars through a browser. 您可以通过尝试通过浏览器下载罐子来验证。 If you get an error, then you may want to work with your IT folks to fix it. 如果遇到错误,则可能需要与IT人员一起修复它。

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

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