Maven安装错误,无法在特定的Maven项目/模块上执行任何Maven操作 [英] maven install error,can't perform any maven operation on specifical maven project/modules

查看:133
本文介绍了Maven安装错误,无法在特定的Maven项目/模块上执行任何Maven操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

全部!我需要有关Eclipse Maven插件发生了什么的帮助. 如今,构建过程运行良好!虽然今天早上没有建造! 我已经用谷歌搜索,但仍然无法找到发生了什么! 我从错误日志中得到了堆栈跟踪;有人可以为我提供一些有关此错误的线索,或者如果可能的话,16386是什么意思 预先感谢!

all! i need some help on what happened to my eclipse maven plugin . the building process worked well yestoday! while it failed to build this morning ! i have googled but still not able to locate what happened ! i got the stack trace from the error log ; could somebody offer me some clue for this error,or what does 16386 mean there if possible thanks in advance!

堆栈跟踪:

java.lang.ArrayIndexOutOfBoundsException: 16386
at org.codehaus.plexus.util.xml.pull.MXParser.parsePI(MXParser.java:2470)
at org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:1257)
at org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1105)
at org.codehaus.plexus.util.xml.Xpp3DomBuilder.build(Xpp3DomBuilder.java:179)
at org.codehaus.plexus.util.xml.Xpp3DomBuilder.build(Xpp3DomBuilder.java:86)

推荐答案

16386是数组中的索引. 问题在于该数组不如16386大.(即,数组的大小<16387)

16386 is the index in the array. The problem is that the array is not as big as 16386. (i.e. size of the array < 16387)

无论如何,它不会帮助您解决此问题.

Anyway, it won't help you to solve this problem.

您可以检查您的pom.xml是否包含此文件(并且它是有效的):

You can check that your pom.xml contains this (and that it is valid):

<?xml version="1.0" encoding="UTF-8" ?>

编辑

您的问题肯定是本地问题.因此,首先检查您的Maven配置文件的有效性:

Your problem is certainly a local problem. So first check the validity of your maven config files:

  • .m2/settings.xml
  • M2_HOME/conf/settings.xml

如果这些看起来不错,那么问题也可能是由本地存储库中的任何地方的损坏的"(错误的XML)pom.xml引起的.最简单的解决方法是擦除〜/.m2/存储库,让Maven重新下载所有内容.

If these look fine, then the problem may also be caused by a "corrupt" (bad XML) pom.xml ANYWHERE in your local repo... the easiest workaround is to just wipe your ~/.m2/repository, to let Maven re-download everything.

这篇关于Maven安装错误,无法在特定的Maven项目/模块上执行任何Maven操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆