您的位置:首页 > 其它

maven 使用问题汇总

2016-02-01 12:50 176 查看
1.修改中央仓库

  1)从安装目录conf中复制setting文件,在里面添加

<mirror>  

  

      <id>CN</id>  

      <name>OSChina Central</name> 

      <url>http://maven.oschina.net/content/groups/public/</url>  

      <mirrorOf>central</mirrorOf>  

  

 </mirror>  

  2)放在本地仓库目录中

  3)Eclipse->window->Preferences->Maven->User Setting 中选择自己的setting文件,Apply即可

2. "Index downloads are disabled, search results may be incomplete."



"Window" --> "Preferences" and choose Maven in the left side.

Now you have to check the box "Download repository index updates on startup"

 

If no "Search Results"

"Window" ---> "Show View" ---> "Maven Repositories" ---> "Global Repositories" 

 

chose "central" click right and "Update Index"
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: