[ 
http://jira.codehaus.org/browse/MNG-5021?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benjamin Bentmann closed MNG-5021.
----------------------------------

    Resolution: Cannot Reproduce
      Assignee: Benjamin Bentmann

Using
{noformat}
Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
Java version: 1.6.0_23
Java home: D:\java\jdk-1.6\jre
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 7" version: "6.1" arch: "amd64" Family: "windows"
{noformat}
and a snapshot version in the POM I ran the deploy command 1000 times, never 
got the POM corrupted.

On a related note, it doesn't quite make sense that only Maven 2.2.1 is 
affected as it uses the same code (wagon-file) as Maven 3.0 for the deployment 
and there is no actual code change between version 1.0-beta-6 and 1.0-beta-7.

So without some more info on how to reproduce this, the issue remains a ghost 
in your machine.

bq. mvn deploy:deploy-file -Durl="file://%HOME%\.m2\repository"
BTW, deploying artifacts into your local repository is generally a bad idea. 
Local repos and remote repos have similar yet different structures, so use 
deploy to push into remote repos only and use {{install:install-file}} to 
install into your local repo.

> 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
>            Assignee: Benjamin Bentmann
>         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

        

Reply via email to