Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-2293

maven-plugin-descriptor: Not possible to define a default implementation for a field defined by its interface


    • Type: New Feature
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0.4
    • Fix Version/s: 2.0.5
    • Component/s: Sites & Reporting
    • Labels:


      MOJO-393 is about letting the user define an alternate configuration element, thus changing the way the webstart plugin works.

      For that the idea was to make the mojo field an interface, provide a default implementation in the plugin and let the user use plexus to instanciate a new implemenation.

      so for most users we would have:


      and for some:

        <bla implementation="com....bla">

      Unfortunately, today I am forced to specify the implementation in both cases. There's no way to inform the plugin to use the default implementation.

      The plugin.xml contains:

                <type>...BlaInterface</type> <!-- that will fail -->

      I tried to use

       /**@parameter implementation="...BlaImplementation"*/
       BlaInterface bla;

      but that fails as well.

      Marking critical because it doesn't allow me add new features to the plugin without breaking the config.xml.


        1. dependency-mistery.log
          12 kB
          Jerome Lacoste
        2. it0106.tar.bz2
          2 kB
          Jerome Lacoste
        3. MNG-2293.diff
          20 kB
          Jerome Lacoste
        4. MNG-2293.diff
          27 kB
          Jerome Lacoste
        5. MNG-2293-plugins.diff
          1.0 kB
          Jerome Lacoste
        6. patch-MNG-2293.diff
          6 kB
          Jerome Lacoste
        7. patch-MNG-2293-source2.tar.bz2
          0.7 kB
          Jerome Lacoste



            • Assignee:
              kenneyw kenneyw
              lacostej Jerome Lacoste
            • Votes:
              1 Vote for this issue
              0 Start watching this issue


              • Created: