[ 
https://issues.apache.org/jira/browse/MNG-6216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15966374#comment-15966374
 ] 

Robert Scholte commented on MNG-6216:
-------------------------------------

By accident I hit this issue today. There are probably 2 issues in play, I was 
able to partly reproduce it.
The root cause is upgrade of the Modello Plugin, which contained a 
[fix|https://github.com/codehaus-plexus/modello/issues/5] regarding invalid 
XML. 
What happened in my case is that one of the parents contained its content 
twice, i.e.
{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<project>
...
</project>
<?xml version="1.0" encoding="UTF-8"?>
<project>
...
</project>
{code}
The weird thing is that the file was correct in the artifact repository, so for 
some reason during the download the content was duplicated.
Anyhow, I think we shouldn't use this strict setup in case of indirect poms 
since often we cannot change these (third party files) and Maven used to expect 
those kind of poms.
The other thing is that in plexus-utils we need to improve PI reading after the 
closing-tag.
And a completely different issue: why was the content doubled.

So the workaround is probably, clean your local repository and download the 
poms again.

> IndexArrayOutOfBounds when parsing POM 
> ---------------------------------------
>
>                 Key: MNG-6216
>                 URL: https://issues.apache.org/jira/browse/MNG-6216
>             Project: Maven
>          Issue Type: Bug
>    Affects Versions: 3.5.0
>            Reporter: Marc Savy
>         Attachments: log
>
>
> When building apiman https://github.com/apiman/apiman.git on Maven 3.5.0 the 
> XML parser seems to have some issues parsing the apiman-test-common module. 
> If you want to reproduce, you can simply use mvn clean install, no profiles 
> needed.
> Log: https://gist.github.com/msavy/a1b4307fb238a543dfd6af426b42d446 
> Also attached.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to