Maven问题总结:could not resolve archetype xxxxxxx from any of the configured repositories
2015-06-04 19:25
609 查看
错误提示
Eclipse中通过Archetype创建Maven项目时报错:Could not resolve archetype xxxxxxx from any of the configured repositories原因很简单:要用的Archetype在当前maven配置的仓库中找不到。那就只能找包含了该archetype的仓库,然后加入到maven配置中。
解决方法
在Maven安装目录/conf/settings.xml文件的<settings>元素里加入第三方的仓库镜像(这里用了lbiblio仓库)。<settings> <mirrors> <!-- mirror | Specifies a repository mirror site to use instead of a given repository. The repository that | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used | for inheritance and direct lookup purposes, and must be unique across the set of mirrors. --> <mirror> <id>ibiblio.org</id> <name>ibiblio Mirror of http://repo1.maven.org/maven2/</name> <url>http://mirrors.ibiblio.org/pub/mirrors/maven2</url> <mirrorOf>central</mirrorOf> </mirror> </mirrors> ...... </settings>
相关文章推荐
- HDU 2081 手机短号
- 红外遥控通信原理
- 林语堂:读书须有胆识,有眼光,有毅力
- 单臂路由
- SGU125 Shtirlits
- Eclipse 4.4.2 取消空格键代码上屏
- php之thinkphp部署Linux
- js去除空格
- 第十二周项目2-教师兼干部类
- 智力题 开灯问题
- arcgis for android apk太大
- 【Linux 工作经常使用命令 】
- Unix传奇
- arcgis for android apk太大
- 第二阶段冲刺第一天
- Ubuntu下用visualBox 安装的XP虚拟机,设置共享文件夹
- Android中Gson解析json
- Javascript模块化编程(三):require.js的用法
- uboot使用之心得体会
- win7下删除ubuntu