使用Maven运行应用程序 [英] Running an application using maven
问题描述
我正在尝试使用maven运行应用程序.我对此很陌生.我安装了它,并且工作正常.我无法运行它.我在控制台中收到以下错误:-
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: -
由于以下错误,无法从存储库:Central检索到"org.apache.maven.plugins"的存储库元数据:中央:错误传输文件:连接超时:connect
[警告]无法从资源库中央(http://repo1.maven.org/maven2)获取资源"org.apache.maven.plugins:maven-resources-plugin:pom:2.3":传输文件时出错:连接超时:连接`
[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?
推荐答案
您的系统很可能在代理服务器后面.如果是这样,请在home directory
的.m2
子文件夹中创建或更新settings.xml
,并按照记录的
Most likely your system is behind a proxy server. If so, create or update settings.xml
in the .m2
subfolder of your home directory
and add the proxy section as documented here.
您可以使用浏览器配置中可能存在的代理设置. (对于Internet Explorer:工具-> Internet选项->连接->局域网设置)
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)
这篇关于使用Maven运行应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!