Eclipse使用Maven建立Web時錯誤:Could not resolve archetype

請檢查maven的setting 是否有問題。
window->Perfenence->maven->User Settings裏 看 Gloal Setting和User Setting是否一致。html

 

修改爲一致後解決。apache

 

 

若是仍是有問題 ,能夠在maven的安裝目錄的conf文件夾下 對setting.xml加入阿里的鏡像。maven

這樣提升下載速度。url

 

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"  
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
         xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0  
            http://maven.apache.org/xsd/settings-1.0.0.xsd">  
      
    <!-- 這個是配置阿里Maven鏡像 -->  
    <mirrors>  
        <mirror>  
          <id>aliyun</id>  
          <name>aliyun</name>  
          <url>http://maven.aliyun.com/nexus/content/groups/public/</url>  
          <mirrorOf>central</mirrorOf>  
        </mirror>  
    </mirrors>  
      
   
</settings>  
相關文章
相關標籤/搜索