目录
解决Unrecognised tag: 'mirror' (position: START_TAG seen ...问题
解决Unrecognised tag: 'mirror' (position: START_TAG seen ...</mirror>问题
1.遇到问题:报错
Unrecognised tag: 'mirror' (position: START_TAG seen ...</mirror>
在idea中更新maven依赖,看到下载地址是默认的中央仓库,不是自定义配置的阿里云镜像。
2.检查配置
(1)idea配置 File -> Settings -> Build,Execution, Deployment -> Build Tools -> Maven
确认是选择了自定义的目录。
(2)确认配置文件settings.xml配置了,新下载的依赖也是在自定义的目录中。
原来是标签放错了位置,<mirror>应该在<mirrors> 中间,也许之前一直连接的是中央仓库,只是没发现.........
还是有一个报错, 但是之前那个问题已经解决了。
解决IDEA的[ERROR] Plugin org.apache.maven.plugins:maven-archetype-plugin:RELEASE or one of its dependencies could not be resolved问题
1.遇到问题:报错
在使用IDEA创建maven项目时,总是创建不成功,文件残缺,下面是错误提示。
2.解决:
(1)打开maven解压目录下的conf文件夹里的setting.xml,在其中添加如下,
这个是仓库的路径,地址自己来定。
还有,往下,阿里的镜像更新了所以用https了而不是http。
保存之后退出。
(2)检查IDEA的Setting for New Projects的设置,
注意:setting只是对当前项目进行设置。
点击“Files--->New Projects Setup---->Setting for New Projects”,打开,
(3)查看MAVEN中安装repository目录中的:org.apache.maven.plugins:maven-archetype-plugin,对应org=>apche=>maven=>plugins=>maven-archetype-plugin包:
删除目录下的文件,创建的时候才会自动下载远程代码库的jar包。
(4)重启IDEA,新建maven项目,错误就不见了。
成功创建。