You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Thomas Hart (JIRA)" <ji...@codehaus.org> on 2007/08/01 11:05:13 UTC

[jira] Created: (MNG-3129) Failed to copy full contents from

Failed to copy full contents from
---------------------------------

                 Key: MNG-3129
                 URL: http://jira.codehaus.org/browse/MNG-3129
             Project: Maven 2
          Issue Type: Bug
    Affects Versions: 2.0.7
            Reporter: Thomas Hart
            Priority: Blocker
         Attachments: error.log

Every time i execute a maven i get the message: 'Failed to copy full contents'. I check the code from the class FileUtils and there is a simle File#length() compare.

{code}
if( source.length() != destination.length() )
{
    final String message = "Failed to copy full contents from " + source +
        " to " + destination;
    throw new IOException( message );
}
{code}


mvn -version
Maven version: 2.0.7
Java version: 1.5.0_04
OS name: "windows xp" version: "5.1" arch: "x86"

-- 
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

        

[jira] Commented: (MRESOURCES-48) Failed to copy full contents from

Posted by "Jim Sellers (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRESOURCES-48?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_113723 ] 

Jim Sellers commented on MRESOURCES-48:
---------------------------------------

This might be an issue with the java version itself.  I ran into a problem that looks the same.
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6481955

When I upgraded to Java version: 1.5.0_11 it fixed it.

HTH

> Failed to copy full contents from
> ---------------------------------
>
>                 Key: MRESOURCES-48
>                 URL: http://jira.codehaus.org/browse/MRESOURCES-48
>             Project: Maven 2.x Resources Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2
>            Reporter: Thomas Hart
>            Priority: Blocker
>         Attachments: error.log
>
>
> Every time i execute a maven i get the message: 'Failed to copy full contents'. I check the code from the class FileUtils and there is a simle File#length() compare.
> {code}
> if( source.length() != destination.length() )
> {
>     final String message = "Failed to copy full contents from " + source +
>         " to " + destination;
>     throw new IOException( message );
> }
> {code}
> mvn -version
> Maven version: 2.0.7
> Java version: 1.5.0_04
> OS name: "windows xp" version: "5.1" arch: "x86"

-- 
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

        

[jira] Commented: (MRESOURCES-48) Failed to copy full contents from

Posted by "Brad Szabo (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRESOURCES-48?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_123787 ] 

Brad Szabo commented on MRESOURCES-48:
--------------------------------------

I have this issue appearing consistently on a build using Maven 2.0.8, Resources plugin version 2.2, and JDK 1.6.0_04 all running on RHEL 4. The JDK bug referenced above obviously does not apply to this environment, but just for reference, the path length causing the problem is only 146 characters.

> Failed to copy full contents from
> ---------------------------------
>
>                 Key: MRESOURCES-48
>                 URL: http://jira.codehaus.org/browse/MRESOURCES-48
>             Project: Maven 2.x Resources Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2
>            Reporter: Thomas Hart
>            Priority: Blocker
>         Attachments: error.log
>
>
> Every time i execute a maven i get the message: 'Failed to copy full contents'. I check the code from the class FileUtils and there is a simle File#length() compare.
> {code}
> if( source.length() != destination.length() )
> {
>     final String message = "Failed to copy full contents from " + source +
>         " to " + destination;
>     throw new IOException( message );
> }
> {code}
> mvn -version
> Maven version: 2.0.7
> Java version: 1.5.0_04
> OS name: "windows xp" version: "5.1" arch: "x86"

-- 
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

        

[jira] Closed: (MRESOURCES-48) Failed to copy full contents from

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRESOURCES-48?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Casey closed MRESOURCES-48.
--------------------------------

      Assignee: John Casey
    Resolution: Cannot Reproduce

reopen if we can reproduce this on a different machine.

> Failed to copy full contents from
> ---------------------------------
>
>                 Key: MRESOURCES-48
>                 URL: http://jira.codehaus.org/browse/MRESOURCES-48
>             Project: Maven 2.x Resources Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2
>            Reporter: Thomas Hart
>            Assignee: John Casey
>            Priority: Blocker
>             Fix For: 2.4
>
>         Attachments: error.log
>
>
> Every time i execute a maven i get the message: 'Failed to copy full contents'. I check the code from the class FileUtils and there is a simle File#length() compare.
> {code}
> if( source.length() != destination.length() )
> {
>     final String message = "Failed to copy full contents from " + source +
>         " to " + destination;
>     throw new IOException( message );
> }
> {code}
> mvn -version
> Maven version: 2.0.7
> Java version: 1.5.0_04
> OS name: "windows xp" version: "5.1" arch: "x86"

-- 
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

        

[jira] Commented: (MRESOURCES-48) Failed to copy full contents from

Posted by "Brad Szabo (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRESOURCES-48?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_123794 ] 

Brad Szabo commented on MRESOURCES-48:
--------------------------------------

I spoke too soon. It looks like an environment issue. After posting, I renamed the local repository (mv ~/.m2/repository ~/.m2/repository.bkup) to run a completely clean test and then started getting errors like this:

Downloading: http://internal.repo.com/maven2/releases/package/name/project-parent/3/project-parent-3.pom
15K downloaded
[DEBUG]   Artifact resolved
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).
<snip ... >
Caused by: org.apache.maven.project.InvalidProjectModelException: Not a v4.0.0 POM. for project package.name:project-parent at /home/builduser/.m2/repository/package/name/project-parent/3/project-parent-3.pom
        at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1405)
        at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1377)
        at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:528)
        at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1255)

When I checked the downloaded parent POM file it turned out to be empty, so I tried to simply copy a file and found out the real cause of the problem:
-bash$ cp pom.xml  ~/.m2/test
cp: closing `/home/builduser/.m2/test': Disk quota exceeded

In my case /home/builduser is a mounted drive and I had not been aware of its quota.

> Failed to copy full contents from
> ---------------------------------
>
>                 Key: MRESOURCES-48
>                 URL: http://jira.codehaus.org/browse/MRESOURCES-48
>             Project: Maven 2.x Resources Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2
>            Reporter: Thomas Hart
>            Priority: Blocker
>         Attachments: error.log
>
>
> Every time i execute a maven i get the message: 'Failed to copy full contents'. I check the code from the class FileUtils and there is a simle File#length() compare.
> {code}
> if( source.length() != destination.length() )
> {
>     final String message = "Failed to copy full contents from " + source +
>         " to " + destination;
>     throw new IOException( message );
> }
> {code}
> mvn -version
> Maven version: 2.0.7
> Java version: 1.5.0_04
> OS name: "windows xp" version: "5.1" arch: "x86"

-- 
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

        

[jira] Issue Comment Edited: (MRESOURCES-48) Failed to copy full contents from

Posted by "Brad Szabo (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRESOURCES-48?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_123787 ] 

bszabo edited comment on MRESOURCES-48 at 2/15/08 8:30 AM:
---------------------------------------------------------------

I have this issue appearing consistently on a build using Maven 2.0.8, Resources plugin version 2.2, and JDK 1.6.0_04 all running on RHEL 4. The JDK bug referenced above I don't think applies to this issue, and obviously not to my environment, but just for reference, the path length causing the problem is only 146 characters.

      was (Author: bszabo):
    I have this issue appearing consistently on a build using Maven 2.0.8, Resources plugin version 2.2, and JDK 1.6.0_04 all running on RHEL 4. The JDK bug referenced above obviously does not apply to this environment, but just for reference, the path length causing the problem is only 146 characters.
  
> Failed to copy full contents from
> ---------------------------------
>
>                 Key: MRESOURCES-48
>                 URL: http://jira.codehaus.org/browse/MRESOURCES-48
>             Project: Maven 2.x Resources Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2
>            Reporter: Thomas Hart
>            Priority: Blocker
>         Attachments: error.log
>
>
> Every time i execute a maven i get the message: 'Failed to copy full contents'. I check the code from the class FileUtils and there is a simle File#length() compare.
> {code}
> if( source.length() != destination.length() )
> {
>     final String message = "Failed to copy full contents from " + source +
>         " to " + destination;
>     throw new IOException( message );
> }
> {code}
> mvn -version
> Maven version: 2.0.7
> Java version: 1.5.0_04
> OS name: "windows xp" version: "5.1" arch: "x86"

-- 
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

        

[jira] Moved: (MRESOURCES-48) Failed to copy full contents from

Posted by "Brian Fox (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRESOURCES-48?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Fox moved MNG-3129 to MRESOURCES-48:
------------------------------------------

    Affects Version/s:     (was: 2.0.7)
                       2.2
                  Key: MRESOURCES-48  (was: MNG-3129)
              Project: Maven 2.x Resources Plugin  (was: Maven 2)

> Failed to copy full contents from
> ---------------------------------
>
>                 Key: MRESOURCES-48
>                 URL: http://jira.codehaus.org/browse/MRESOURCES-48
>             Project: Maven 2.x Resources Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2
>            Reporter: Thomas Hart
>            Priority: Blocker
>         Attachments: error.log
>
>
> Every time i execute a maven i get the message: 'Failed to copy full contents'. I check the code from the class FileUtils and there is a simle File#length() compare.
> {code}
> if( source.length() != destination.length() )
> {
>     final String message = "Failed to copy full contents from " + source +
>         " to " + destination;
>     throw new IOException( message );
> }
> {code}
> mvn -version
> Maven version: 2.0.7
> Java version: 1.5.0_04
> OS name: "windows xp" version: "5.1" arch: "x86"

-- 
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

        

[jira] Commented: (MRESOURCES-48) Failed to copy full contents from

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRESOURCES-48?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=187505#action_187505 ] 

John Casey commented on MRESOURCES-48:
--------------------------------------

So, can we close this issue, given that the original report was due to a disk problem and not a Maven problem?

> Failed to copy full contents from
> ---------------------------------
>
>                 Key: MRESOURCES-48
>                 URL: http://jira.codehaus.org/browse/MRESOURCES-48
>             Project: Maven 2.x Resources Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2
>            Reporter: Thomas Hart
>            Priority: Blocker
>         Attachments: error.log
>
>
> Every time i execute a maven i get the message: 'Failed to copy full contents'. I check the code from the class FileUtils and there is a simle File#length() compare.
> {code}
> if( source.length() != destination.length() )
> {
>     final String message = "Failed to copy full contents from " + source +
>         " to " + destination;
>     throw new IOException( message );
> }
> {code}
> mvn -version
> Maven version: 2.0.7
> Java version: 1.5.0_04
> OS name: "windows xp" version: "5.1" arch: "x86"

-- 
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