Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

maven install error,can't perform any maven operation on specifical maven project/modules

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!

stack trace:

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)
like image 852
user2628867 Avatar asked Jul 29 '13 04:07

user2628867


2 Answers

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.

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

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

EDIT

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

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.

like image 118
ben75 Avatar answered Nov 07 '22 10:11

ben75


I wiped my ~/.m2/ folder and then re-ran and Maven re-downloaded everything - worked for me!

like image 22
Chris Staikos Avatar answered Nov 07 '22 11:11

Chris Staikos