The follwoing command creates a zipfile of the source repository and copies it to the target repository.
solaris_x86> mvn -e stage:copy -Dsource="file:/wwl/bip/.m2/repository" -Dtarget="http://wbuscczs01:8443/nexus/content/repositories/stage" -DtargetRepositoryId=nexus-deploy -Dversion=2.0.3 But then it dies with the following Error: . . . [INFO] Downloading file from the source repository: /jdom/jdom/1.0/jdom-1.0.pom.sha1 [INFO] Downloading file from the source repository: /jdom/jdom/1.0/jdom-1.0.pom [INFO] Downloading file from the source repository: /jdom/jdom/1.0/jdom-1.0.jar.sha1 [INFO] Downloading file from the source repository: /jdom/jdom/1.0/jdom-1.0.jar [INFO] Downloading file from the source repository: /doxia/doxia-sink-api/1.0-alpha-4/doxia-sink-api-1.0-alpha-4.pom.sha1 [INFO] Downloading file from the source repository: /doxia/doxia-sink-api/1.0-alpha-4/doxia-sink-api-1.0-alpha-4.pom [INFO] Downloading metadata from the target repository. [INFO] Creating zip file. [INFO] Creating rename script. [INFO] Uploading zip file to the target repository. [INFO] Unpacking zip file on the target machine. [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] org.apache.maven.wagon.providers.http.LightweightHttpWagon cannot be cast to org.apache.maven.wagon.providers.ssh.jsch.ScpWagon [INFO] ------------------------------------------------------------------------ [INFO] Trace java.lang.ClassCastException: org.apache.maven.wagon.providers.http.LightweightHttpWagon cannot be cast to org.apache.maven.wagon.providers.ssh.jsch.ScpWagon at org.apache.maven.plugins.stage.DefaultRepositoryCopier.copy(DefaultRepositoryCopier.java:252) at org.apache.maven.plugins.stage.CopyRepositoryMojo.execute(CopyRepositoryMojo.java:93) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:224) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.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.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) 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) [INFO] ------------------------------------------------------------------------ [INFO] Total time: 7 seconds [INFO] Finished at: Sun Oct 26 17:49:07 MET 2008 [INFO] Final Memory: 20M/134M [INFO] ------------------------------------------------------------------------ PS: The security on the nexus server is off. Do you know this problem? Regards Pietro -- View this message in context: http://www.nabble.com/-VOTE--Release-Maven-Stage-Plugin-1.0-alpha-1-tp15559909p20175724.html Sent from the Maven Developers mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]