Running an application using maven

白昼怎懂夜的黑 提交于 2019-12-25 09:27:49

问题


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?


回答1:


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.

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)



来源:https://stackoverflow.com/questions/5063694/running-an-application-using-maven

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!