[jboss-jira] [JBoss JIRA] (DROOLS-1732) kie-maven-plugin: use correct plugin classloader

Petr Široký (JIRA) issues at jboss.org
Fri Sep 15 08:48:00 EDT 2017


Petr Široký created DROOLS-1732:
-----------------------------------

             Summary: kie-maven-plugin: use correct plugin classloader
                 Key: DROOLS-1732
                 URL: https://issues.jboss.org/browse/DROOLS-1732
             Project: Drools
          Issue Type: Enhancement
          Components: tools
    Affects Versions: 7.3.0.Final
            Reporter: Petr Široký
            Assignee: Petr Široký


{{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.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)



More information about the jboss-jira mailing list