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
     解决办法:
     
  • 相关阅读:
    I'm Telling the Truth
    B-shaass and lights codeForces
    1
    不容易系列之(4)——考新郎 HDU
    犯人冲突
    不互质的和
    OI回忆录
    NOI2018退役记
    uoj221【NOI2016】循环之美
    uoj220【NOI2016】网格
  • 原文地址:https://www.cnblogs.com/zhanggl/p/4455322.html
Copyright © 2011-2022 走看看