maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Scholte" <>
Subject Re: Double copy of XML in POMs
Date Fri, 03 Aug 2018 08:07:42 GMT
Yes, this is a known issue, see  MNG-6281[1] Up until Maven 3.3.9 this was  
never an issue, until we fixed  MNG-6020[2]. Before that Maven stopped  
reading after the closing root-tag.
It is very hard to reproduce. One of the possibilities I have in mind is  
that the same pom is required twice (either by 2 Maven executions or as  
part of the reactor) and that the files are appended.
I still think  MNG-6020 is a good fix: the file must contain valid XML. So  
I'd love to see an explanation for this weird behavior and fix it.



On Thu, 02 Aug 2018 12:48:52 +0200, Joshua Fox <>  

> I got a lot of these error messages using Maven 3.5 on Windows 10.
>> The POM for… jar…  is invalid, transitive dependencies (if any) will  
>> not be >>available, enable debug logging for more details
>> It turns out that the POM files consisted  of a double copy of the XML!  
>> See the attached example.
>> I removed ~/.m2/ and rebuilt, and the POMs were  OK.
>> Is this a known issue? It is very strange to see XML appearing twice.
  • Unnamed multipart/alternative (inline, None, 0 bytes)
    • Unnamed multipart/related (inline, None, 0 bytes)
View raw message