zoukankan      html  css  js  c++  java
  • eclispe 创建maven 项目:Could not resolve archetype org.apache.maven.archetypes

    昨天新装eclispe 后,创建maven工程后出现

    Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:RELEASE from any of the configured repositories.
      Could not resolve artifact
        Missing org.apache.maven.archetypes:maven-archetype-quickstart:pom:RELEASE

    网上的解决办法:

    http://blog.csdn.net/u011340807/article/details/12649249

    http://www.cnblogs.com/quanyongan/archive/2013/04/17/3025971.html

    自己的解决办法:

    修改了maven 仓库地址: 在maven 的conf目录下setting.xml配置文件中,修改仓库地址

      <localRepository>/path/to/local/repo</localRepository> 修改自己对应的路径。

     另一种错误:
    Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
    Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
     解决办法:
     
  • 相关阅读:
    HDU 1058
    Codeforces 349C
    HDU 2602
    HDU 2571
    HDU 2955
    HDU 2084
    HDU 1003
    HDU 1506 & 1505
    POJ 1854
    HDU 2095
  • 原文地址:https://www.cnblogs.com/zhanggl/p/4455322.html
Copyright © 2011-2022 走看看