Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
1.0-beta-2
-
None
-
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.