maven 使用问题汇总

来源:互联网 发布:淘宝宝贝链接复制不了 编辑:程序博客网 时间:2024/06/07 13:09

1.修改中央仓库

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

  1. <mirror>  
  2.   
  3.       <id>CN</id>  
  4.       <name>OSChina Central</name> 
  5.       <url>http://maven.oschina.net/content/groups/public/</url>  
  6.       <mirrorOf>central</mirrorOf>  
  7.   
  8.  </mirror>  
  2)放在本地仓库目录中

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


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

enter image description here

"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"
0 0
原创粉丝点击