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

Petr Široký (JIRA) issues at jboss.org
Mon Sep 18 15:16:00 EDT 2017


     [ https://issues.jboss.org/browse/DROOLS-1732?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Petr Široký updated DROOLS-1732:
--------------------------------
    Fix Version/s:     (was: 7.4.0.Beta1)


> 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