Uploaded image for project: 'Maven Wagon'
  1. Maven Wagon
  2. WAGON-209

Extend Wagon API to support the Stage Plugin

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 1.0-beta-2
    • None
    • wagon-provider-api
    • None

    Description

      From the source of the Maven Stage Plugin:

      ( (ScpWagon) targetWagon ).executeCommand( command );
      

      This smells: The plugin is downcasting to an implementation class, happily breaking the interface design and making the target wagon non-interchangeable.

      The atomic Wagon operations required by the plugin should be identified and added to the Wagon API. Wagons that can't support these new operations could simply implement the methods by throwing an UnsupportedOperationException exception.

      Attachments

        Issue Links

          Activity

            People

              brett Brett Porter
              bentmann Benjamin Bentmann
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: