This problem is at archiva side where it returns the file list with one entry that contains a single space. and crashes the staging plugin.
the work around for my case is to have httpd to host the staging. -D On Fri, Apr 11, 2008 at 7:48 AM, Dennis Lundberg <[EMAIL PROTECTED]> wrote: > Please don't email project members directly. Use the [email protected] > mailing list instead. See > > http://maven.apache.org/users/getting-help.html > > This plugin currently only supports the scp protocol for the target > repository. I had a look at the docs, and it seems that this bit is missing. > I'll make sure to something about this to the documentation. > > AFIF Mohamed wrote: >> >> Hi Dennis, >> >> >> I'm trying to use the stage plugin in order to copy artifacts from >> repository called "internal" to another called "public", those two >> repositorys are configured in my settings.xml, and i use this command: mvn >> stage:copy -Dsource="http://server:9090/archiva/repository/internal >> <http://server:9090/archiva/repository/internal> " >> -Dtarget="http://server:9090/archiva/repository/public >> <http://server:9090/archiva/repository/public> " >> -DsourceRepositoryId=internal -DtargetRepositoryId=public >> -Dversion=1.2.8 >> but i get this error: >> >> >> I've tried to create manually the diretory "staging-plugin-2.0.3" but I >> get always the same error, it looks like maven can't write in the Temp >> directory but it sn't true because this directory is writable and >> readable by everyone. >> >> >> Embedded error: GET request of: from internal failed >> >> C:\DOCUME~1\MOHAME~1\LOCALS~1\Temp\staging-plugin-2.0.3 (Access Denied) >> >> [INFO] >> ------------------------------------------------------------------------ >> >> [DEBUG] Trace >> >> org.apache.maven.lifecycle.LifecycleExecutionException: Error copying >> repository from http://atoum:9090/archiva/repository/internal/ to >> http://atoum:9 >> >> 090/archiva/repository/public/ >> >> at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default >> LifecycleExecutor.java:564) >> >> at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa >> l(DefaultLifecycleExecutor.java:493) >> >> at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL >> ifecycleExecutor.java:463) >> >> at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle >> Failures(DefaultLifecycleExecutor.java:311) >> >> at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( >> DefaultLifecycleExecutor.java:224) >> >> at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec >> ycleExecutor.java:143) >> >> at >> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) >> >> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) >> >> at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) >> >> 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:585) >> >> 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 copying >> repository from http://atoum:9090/archiva/repository/internal/ to >> http://atou >> >> m:9090/archiva/repository/public/ >> >> at >> org.apache.maven.plugins.stage.CopyRepositoryMojo.execute(CopyRepository >> Mojo.java:102) >> >> at >> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa >> nager.java:443) >> >> at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default >> LifecycleExecutor.java:539) >> >> ... 16 more >> >> Caused by: org.apache.maven.wagon.TransferFailedException: GET request >> of: from internal failed >> >> at >> org.apache.maven.wagon.AbstractWagon.getTransfer(AbstractWagon.java:217) >> >> at >> org.apache.maven.wagon.AbstractWagon.getTransfer(AbstractWagon.java:182) >> >> at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:80) >> >> at >> org.apache.maven.plugins.stage.DefaultRepositoryCopier.copy(DefaultRepos >> itoryCopier.java:137) >> >> at >> org.apache.maven.plugins.stage.CopyRepositoryMojo.execute(CopyRepository >> Mojo.java:93) >> >> ... 18 more >> >> Caused by: java.io.FileNotFoundException: >> C:\DOCUME~1\MOHAME~1\LOCALS~1\Temp\staging-plugin-2.0.3 (Access Denied) >> >> at java.io.FileOutputStream.open(Native Method) >> >> at java.io.FileOutputStream.<init>(FileOutputStream.java:179) >> >> at java.io.FileOutputStream.<init>(FileOutputStream.java:131) >> >> at >> org.apache.maven.wagon.LazyFileOutputStream.initialize(LazyFileOutputStr >> eam.java:148) >> >> at >> org.apache.maven.wagon.LazyFileOutputStream.write(LazyFileOutputStream.j >> ava:120) >> >> at >> org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:338) >> >> at >> org.apache.maven.wagon.AbstractWagon.getTransfer(AbstractWagon.java:199) >> >> ... 22 more >> >> >> Thinks a lot >> >> >> Mohamed. >> >> >> >> > > > -- > Dennis Lundberg > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
