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

Inconsistent way of overriding core components from extensions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Core
    • None

    Description

      Problem: "let's have a (core) extension that is overriding some component X in Maven Core".

      Doing this is very inconsistent, and depends HOW core component is defined in the first place.

      IF core component is JSR330, then is simple: just define an own JSR330 component (w/ some higher than zero Priority) and done. This can be loaded from .mvn/extensions.xml just fine.

      IF core component is Plexus, then is not simple:

      • using JSR330 – could not do it
      • using Plexus annotation + XML – does not works when JAR is in .mvn/extensions.xml !
      • using Plexus annotation + XML – works only when using -Dmaven.ext.class.path w/ JAR enlisted here.

      Attachments

        Activity

          People

            Unassigned Unassigned
            cstamas Tamas Cservenak
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: