玖叶教程网

前端编程开发入门

Idea构建异常---Could not parse metadata maven-metadata-local.xml

如果你去网上搜怎么解决,好吧,大部分是说,你要找到这个文件,然后删除掉:


[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.5.2:install (default-install) on project appscomm-account: Failed to install metadata com.appscomm:appscomm-account/maven-metadata.xml: Could not parse metadata /test/maven-metadata-local.xml: in epilog non whitespace content is not allowed but got n (position: END_TAG seen ...</metadata>\nn... @13:2) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:



我已经试过了,我这边不行.通过这种方法解决不了.


下面是我的解决方法和问题:


1.先说明这个是冲突引起的,如果你的maven仓库,repository本地仓库如果是用svn等版本管理的,中有上面的这个:maven-metadata-local.xml去检查一下这个文件是不是,在svn更新更新的时候冲突了.


2.冲突了仅仅删除上面的文件还不够,删除以后还是报错.


3.然后再去看:在本地mavenrepository中,有没有你项目的编译好的jar包,或者你项目的package的路径的文件夹,如果有你项目的目录,去删除,因为里面肯定是有冲突的文件,所以导致编译不成功.






?

发表评论:

控制面板
您好,欢迎到访网站!
  查看权限
网站分类
最新留言