使用 Maven 运行应用程序
我正在尝试使用 Maven 运行应用程序。我对此很陌生。我已安装它并且工作正常。我无法运行它。我在控制台中收到以下错误:-
[警告] 无法从存储库检索“org.apache.maven.plugins”的存储库元数据:由于错误而导致中央:传输文件时出错:连接超时:连接
[警告]无法从存储库中心(http://repo1.maven.org/maven2)获取资源“org.apache.maven.plugins:maven-resources-plugin:pom:2.3”:传输文件时出错:连接超时:连接`
我可以做什么来运行我的应用程序?我哪里还欠缺?
I am trying to run an application using maven. I am very new to it. I got it installed and it is working properly. i am not able to run it. i am getting the following errors in the console: -
[WARNING] repository metadata for: 'org.apache.maven.plugins' could not be retrieved from repository: central due to an error: Error transferring file: Connection timed out: connect
[WARNING] Unable to get resource 'org.apache.maven.plugins:maven-resources-plugin:pom:2.3' from repository central (http://repo1.maven.org/maven2): Error transferring file: Connection timed out: connect`
What can i do to run my app? where am I lacking?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的系统很可能位于代理服务器后面。如果是这样,请在
home 目录
的.m2
子文件夹中创建或更新settings.xml
,并按照文档添加代理部分此处。您可以使用代理设置,该设置可能存在于您的浏览器配置中。 (如果是 Internet Explorer:工具 -> Internet 选项 -> 连接 -> LAN 设置)
Most likely your system is behind a proxy server. If so, create or update
settings.xml
in the.m2
subfolder of yourhome directory
and add the proxy section as documented here.You can use the proxy settings, which is likely to be present in your browser configuration. (In case of Internet Explorer : Tools -> Internet Options -> Connections -> LAN Settings)