mvn deploy cuts .pom file off if file is >12kb ----------------------------------------------
Key: MNG-5021 URL: http://jira.codehaus.org/browse/MNG-5021 Project: Maven 2 & 3 Issue Type: Bug Components: Deployment Affects Versions: 2.2.1 Environment: C:\>mvn --version Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200) Java version: 1.6.0_21 Java home: C:\Program Files\JAVA\jdk1.6.0_21\jre Default locale: en_GB, platform encoding: Cp1252 OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows" C:\> Reporter: Stefan Schilling Attachments: runtime-v6.1.pom, webspherePortal-61.pom When deploying a pom file to the local repository (I haven't tried it on a remote one) and the pom file gets >12kb, the file gets cut off during deployment, resulting in a inconsistent state within the repository. Command used for deployment: mvn deploy:deploy-file -Durl="file://%HOME%\.m2\repository" -Dfile=webspherePortal-61.pom -DpomFile=webspherePortal-61.pom Attached you will find two files: - webspherePortal-61.pom: the source to be deployed to the local repository (~16kb) - runtime-v6.1.pom: the resulting file as created by mvn deploy. Note, that the file gets just cut off in line 268 (source file has 354 lines). Note-1: this bug does not come up when using the following environment. C:\>mvn --version Apache Maven 3.0 (r1004208; 2010-10-04 13:50:56+0200) Java version: 1.6.0_22 Java home: C:\Program Files\Java\jdk1.6.0_22\jre Default locale: en_GB, platform encoding: Cp1252 OS name: "windows 7" version: "6.1" arch: "amd64" Family: "windows" C:\> Note-2: for this bug report, I re-ran this task, the file got deployed successfully for exactly one run; since then I'm having this error again. Please contact me, if you need further details. Thanks for your support. -- 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