Details
-
Feature Request
-
Resolution: Done
-
Major
-
None
-
None
-
None
Description
The ManualWagonProvider subclass of Aether in KIE registers the HTTPWagon. It should be possible to add your own Wagon through config our automated machinery when another Wagon is put on the classpath and references in the build/extensions of a MavenProject. To get the SrampWagon to work we used the following code:
private static class ManualWagonProvider implements WagonProvider {
public Wagon lookup( String roleHint ) throws Exception {
if ( "http".equals( roleHint ) )Unknown macro: { return new AhcWagon(); }if ( "sramp".equals( roleHint ) )
Unknown macro: { return new SrampWagon(); }return null;
}public void release( Wagon wagon ) { }
}