[ http://jira.codehaus.org/browse/MNG-2551?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_125702 ]
Hadrian Zbarcea commented on MNG-2551: -------------------------------------- I fought with the same unexplainable issue (on osx 10.5.2) until dkulp gave me a valuable pointer. It only happened during deploy. What made things worse is that an xml parsing error would pop up only later, while using the truncated pom. The problem in my case was that I was deploying back into the local maven2 repo so pom files were written back to the same location they were read from (doh). Deploying to a different location made the problem go away. So I suspect this is not a problem after all. I guess an enhancement would be to verify that the read and write locations are not the same (even that may not be totally possible if soft links are used, but hey, it's more than nothing). > pom metadata file gets truncated during install into local repository > --------------------------------------------------------------------- > > Key: MNG-2551 > URL: http://jira.codehaus.org/browse/MNG-2551 > Project: Maven 2 > Issue Type: Bug > Components: Artifacts and Repositories > Affects Versions: 2.0.4 > Environment: Win XP, JDK 1.4 > Reporter: Sharmarke Aden > Fix For: Reviewed Pending Version Assignment > > Attachments: pom.xml, shared-1.9.0.pom > > > When I attempt to install my project artifact to my local repository it seems > that sometimes an incomplete/truncated ".pom" is deployed to my local > repository. It's kind of weird because sometimes it happens and sometimes it > doesn't. Any thoughts as to what could cause this? Attached is my pom.xml and > the truncated pom meta data artifact deployed to my local repository. One > thing I found that's odd is that the size of the truncated pom generated is > consistently 4096 bytes. > p.s. my pom.xml is UTF-8 encoded and uses Unix style line delimiters. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira