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

did you try to write a unit test?

Regards,

Hervé

Le lundi 27 juin 2011, Stadelmann Josef a écrit :
> I reported what I see some time agoe.
> 
> What ever I do with maven-2.2.1 and co
> It fails when it has no reason to fail.
> 
> The greate thing is to say; when ever this copy full content error or
> any similarcopy full content errors occur, the copy took place perfect
> and diff doesn't show any diffs.
> 
> So why is plexus in error at that point and as a consequence lets maven
> look old and BUILD fail?
> 
> -Dfile.encoding= ISO-8859-1 has no impact and fails as well at the same
> position (just for info)
> 
> Otherwhise when I see how much of maven-2.2.1 works with OpenVMS, it
> would be very promising if not this little tiny bits would play such a
> fatal bad role.
> 
> Why does this guy do so badly
> hidden.org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:1018)
> 
> 
> 
> Josef
> 
> 
> 
> IA64>mvn "-e install"
> 0: DKB3:[JAVA$150.BIN]JAVA$JAVA.EXE;1
> 1: -Dclassworlds.conf=/dkb3/apache-maven-2_2_1/bin/m2.conf
> 2: -Duser.home=/dkb3/stadelma
> 3: -Dmaven.home=/dkb3/apache-maven-2_2_1
> 4: -Dhttp.auth.preference=Basic
> 5: -Dfile.encoding=UTF-8
> 6: org.codehaus.classworlds.Launcher
> 7: -e
> 8: install
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building SVNKit
> [INFO]    task-segment: [install]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [resources:resources {execution: default-resources}]
> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
> resources, i.e. build is platform dependent!
> [INFO] skip non existing resourceDirectory
> /dkb3/sw-projekte/asf/svnkit/tags/1_3_3/src/main/resources
> [INFO] [compiler:compile {execution: default-compile}]
> [INFO] No sources to compile
> [INFO] [resources:testResources {execution: default-testResources}]
> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
> resources, i.e. build is platform dependent!
> [INFO] skip non existing resourceDirectory
> /dkb3/sw-projekte/asf/svnkit/tags/1_3_3/src/test/resources
> [INFO] [compiler:testCompile {execution: default-testCompile}]
> [INFO] No sources to compile
> [INFO] [surefire:test {execution: default-test}]
> [INFO] No tests to run.
> [INFO] [jar:jar {execution: default-jar}]
> [WARNING] JAR will be empty - no content was marked for inclusion!
> [INFO] [install:install {execution: default-install}]
> [INFO] Installing
> /dkb3/sw-projekte/asf/svnkit/tags/1_3_3/target/svnkit-1.3.3.jar to
> /dkb3/stadelma/.m2/repository/org/tmatesoft/svn
> kit/svnkit/1.3.3/svnkit-1.3.3.jar
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error installing artifact's metadata: Error installing metadata:
> Error copying POM to the local repository.
> 
> Failed to copy full contents from
> /dkb3/sw-projekte/asf/svnkit/tags/1_3_3/pom.xml to
> /dkb3/stadelma/.m2/repository/org/tmatesoft/svn
> kit/svnkit/1.3.3/svnkit-1.3.3.pom
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error installing
> artifact's metadata: Error installing metadata: Error copyi
> ng POM to the local repository.
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
> LifecycleExecutor.java:719)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
> ycle(DefaultLifecycleExecutor.java:556)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
> ifecycleExecutor.java:535)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
> Failures(DefaultLifecycleExecutor.java:387)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
> DefaultLifecycleExecutor.java:348)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
> ycleExecutor.java:180)
>         at
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>         at
> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:592)
>         at
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error
> installing artifact's metadata: Error installing metadata: Error co
> pying POM to the local repository.
>         at
> org.apache.maven.plugin.install.InstallMojo.execute(InstallMojo.java:143
> )
>         at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
> nager.java:490)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
> LifecycleExecutor.java:694)
>         ... 17 more
> Caused by:
> org.apache.maven.artifact.installer.ArtifactInstallationException: Error
> installing artifact's metadata: Error installing
>  metadata: Error copying POM to the local repository.
>         at
> org.apache.maven.artifact.installer.DefaultArtifactInstaller.install(Def
> aultArtifactInstaller.java:123)
>         at
> org.apache.maven.plugin.install.InstallMojo.execute(InstallMojo.java:105
> )
>         ... 19 more
> Caused by:
> org.apache.maven.artifact.repository.metadata.RepositoryMetadataInstalla
> tionException: Error installing metadata: Error c
> opying POM to the local repository.
>         at
> org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataM
> anager.install(DefaultRepositoryMetadataManager.j
> ava:462)
>         at
> org.apache.maven.artifact.installer.DefaultArtifactInstaller.install(Def
> aultArtifactInstaller.java:111)
>         ... 20 more
> Caused by:
> org.apache.maven.artifact.repository.metadata.RepositoryMetadataStoreExc
> eption: Error copying POM to the local repository
> .
>         at
> org.apache.maven.project.artifact.ProjectArtifactMetadata.storeInLocalRe
> pository(ProjectArtifactMetadata.java:100)
>         at
> org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataM
> anager.install(DefaultRepositoryMetadataManager.j
> ava:458)
>         ... 21 more
> Caused by: java.io.IOException: Failed to copy full contents from
> /dkb3/sw-projekte/asf/svnkit/tags/1_3_3/pom.xml to /dkb3/stadelma/
> .m2/repository/org/tmatesoft/svnkit/svnkit/1.3.3/svnkit-1.3.3.pom
>         at
> hidden.org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:1018)
>         at
> org.apache.maven.project.artifact.ProjectArtifactMetadata.storeInLocalRe
> pository(ProjectArtifactMetadata.java:96)
>         ... 22 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 8 seconds
> [INFO] Finished at: Mon Jun 27 16:39:23 CEST 2011
> [INFO] Final Memory: 12M/176M
> [INFO]
> ------------------------------------------------------------------------
> IA64>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to