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

kie-maven-plugin: use correct plugin classloader

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • None
    • 7.3.0.Final
    • tools
    • None
    • NEW
    • NEW

      kie-maven-plugin uses Thread.currentThread().getContextClassLoader() to get what it seems to be a plugin classloader (so that it has access to all the deps of the plugin). Based on a recent discussion on maven-dev list, this is not correct, and will likely break the plugin when maven 3.5.1 is released. The fix is to use this.getClass().getClassloader() to get to the plugin classloader.

      See http://mail-archives.apache.org/mod_mbox/maven-dev/201709.mbox/browser for the discussion on the maven developer list.

            psiroky_jira Petr Široký (Inactive)
            psiroky_jira Petr Široký (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: