Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-194

Add support in KIE to register custom Wagons

    XMLWordPrintable

Details

    • Feature Request
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Done
    • None
    • 6.0.0.CR5
    • 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 ) { }
      }

      Attachments

        Issue Links

          Activity

            People

              mfusco@redhat.com Mario Fusco
              kstam@redhat.com Kurt Stam
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: