jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2.x Stage Plugin
  • MSTAGE-3

The stage plugin only supports copying from http(s) to scp urls

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0-alpha-2
  • Fix Version/s: 1.0-alpha-2
  • Labels:
    None
  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    MSTAGE-3.patch
    19/May/08 8:02 PM
    3 kB
    Rahul Akolkar

Issue Links

is duplicated by

Bug - A problem which impairs or prevents the functions of the product. MSTAGE-6 stage:copy fails with Maven 2.0.9

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.
relates to

Bug - A problem which impairs or prevents the functions of the product. MSTAGE-5 support non-command execution wagons for deployment

  • Major - Major loss of function.
  • Open - The issue is open and ready for the assignee to start work on it.

Bug - A problem which impairs or prevents the functions of the product. MNG-3581 stage:copy ClassCastException with maven 2.0.9

  • Blocker - Blocks development and/or testing work, production could not run
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

New Feature - A new feature of the product, which has yet to be developed. WAGON-209 Extend Wagon API to support the Stage Plugin

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Rahul Akolkar added a comment - 19/May/08 8:02 PM

I discovered this in trying to move a staged release today.

The attached patch fixes it for me (I used scpexe:// for the target repo, which fails without the patch and succeeds with the patch). The earlier cast to ScpWagon for the lines in question seems overly restrictive and exclusionary.

Show
Rahul Akolkar added a comment - 19/May/08 8:02 PM I discovered this in trying to move a staged release today. The attached patch fixes it for me (I used scpexe:// for the target repo, which fails without the patch and succeeds with the patch). The earlier cast to ScpWagon for the lines in question seems overly restrictive and exclusionary.
Hide
Permalink
azgard added a comment - 23/May/08 1:31 AM

This address also my error i gotwhen i try to move from http-repo to a dav-repo.

[INFO] ------------------------------------------------------------------------
[INFO] org.apache.maven.wagon.providers.webdav.WebDavWagon cannot be cast to org.apache.maven.wagon.providers.ssh.jsch.S
cpWagon
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.ClassCastException: org.apache.maven.wagon.providers.webdav.WebDavWagon cannot be cast to org.apache.maven.wag
on.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:451)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.jav
a:330)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:227)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
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)

Show
azgard added a comment - 23/May/08 1:31 AM This address also my error i gotwhen i try to move from http-repo to a dav-repo. [INFO] ------------------------------------------------------------------------ [INFO] org.apache.maven.wagon.providers.webdav.WebDavWagon cannot be cast to org.apache.maven.wagon.providers.ssh.jsch.S cpWagon [INFO] ------------------------------------------------------------------------ [INFO] Trace java.lang.ClassCastException: org.apache.maven.wagon.providers.webdav.WebDavWagon cannot be cast to org.apache.maven.wag on.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:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.jav a:330) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:227) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) 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)
Hide
Permalink
Brett Porter added a comment - 28/May/08 3:44 AM

applied, thanks. This only genericises to command executors - opened MSTAGE-5 to make it work with others

Show
Brett Porter added a comment - 28/May/08 3:44 AM applied, thanks. This only genericises to command executors - opened MSTAGE-5 to make it work with others
Hide
Permalink
Dennis Lundberg added a comment - 09/Aug/08 5:31 PM

I'm trying to update the docs for this change, but I'm not sure I understand how wagon works. The patch did not add any new dependencies to the plugin. However, isn't the wagon-ssh-external provider need to use scpexe? Or should that be provided by the project using the plugin?

Regarding what protocols the plugin now supports, am I reading the wagon source correctly if I say the this plugin now supports the following protocols for the target repo?

  • scp:
  • scpexe:

and also this one, which also extends CommandExecutor

  • sftp
Show
Dennis Lundberg added a comment - 09/Aug/08 5:31 PM I'm trying to update the docs for this change, but I'm not sure I understand how wagon works. The patch did not add any new dependencies to the plugin. However, isn't the wagon-ssh-external provider need to use scpexe? Or should that be provided by the project using the plugin? Regarding what protocols the plugin now supports, am I reading the wagon source correctly if I say the this plugin now supports the following protocols for the target repo?
  • scp:
  • scpexe:
and also this one, which also extends CommandExecutor
  • sftp

People

  • Assignee:
    Brett Porter
    Reporter:
    Maria Odea Ching
Vote (1)
Watch (2)

Dates

  • Created:
    01/Jan/08 8:22 AM
    Updated:
    26/Oct/08 7:00 PM
    Resolved:
    28/May/08 3:44 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.