Pietro, the stage plugin tries to use scp to upload and unpack the tar,
then copy it over, which means it won't work with Nexus or other repo
managers.

-----Original Message-----
From: Pietro Biondo [mailto:[EMAIL PROTECTED] 
Sent: Sunday, October 26, 2008 1:11 PM
To: [email protected]
Subject: Re: [VOTE] Release Maven Stage Plugin 1.0-alpha-1


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(DefaultRepos
itoryCopier.java:252)
        at
org.apache.maven.plugins.stage.CopyRepositoryMojo.execute(CopyRepository
Mojo.java:93)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:443)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:539)
        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: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-tp15
559909p20175724.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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to