[jboss-jira] [JBoss JIRA] (WFLY-4524) jboss-modules does not respect path excludes

Thomas Diesler (JIRA) issues at jboss.org
Thu Apr 16 06:10:20 EDT 2015


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

Thomas Diesler reassigned WFLY-4524:
------------------------------------

    Assignee: David Lloyd  (was: Jason Greene)


> jboss-modules does not respect path excludes
> --------------------------------------------
>
>                 Key: WFLY-4524
>                 URL: https://issues.jboss.org/browse/WFLY-4524
>             Project: WildFly
>          Issue Type: Bug
>          Components: Class Loading
>            Reporter: Thomas Diesler
>            Assignee: David Lloyd
>             Fix For: 9.0.0.CR1
>
>
> I have a module definition like this 
> {code:xml}
> <module xmlns="urn:jboss:module:1.1" name="org.apache.camel.spring">
>   <resources>
>     <resource-root path="camel-spring-2.15.1.jar" />
>   </resources>
>   <dependencies>
>     <module name="javax.api" />
>     <module name="javax.xml.bind.api" />
>     <module name="org.apache.camel.core" />
>     <module name="org.springframework.beans" export="true">
>       <exports>
>         <exclude path="org/springframework/beans/annotation**" />
>         <exclude path="org/springframework/beans/propertyeditors**" />
>         <exclude path="org/springframework/beans/support**" />
>         <exclude path="org/springframework/beans/factory/**" />
>       </exports>
>     </module>
>     <module name="org.springframework.context" />
>     <module name="org.springframework.core" />
>     <module name="org.springframework.tx" export="true">
>       <exports>
>         <exclude path="org/springframework/dao**" />
>         <exclude path="org/springframework/jca**" />
>       </exports>
>     </module>
>     <module name="org.slf4j" />
>   </dependencies>
>   <exports>
>     <exclude path="org/apache/camel/component/event**" />
>     <exclude path="org/apache/camel/core**" />
>     <exclude path="org/apache/camel/language/spel**" />
>     <exclude path="org/apache/camel/osgi**" />
>   </exports>
> </module>
> {code}
> The expected behaviour is that a client of this module can load `org.apache.camel.spring.SpringCamelContext` but not `org.apache.camel.osgi.OsgiSpringCamelContext`
> It seems that export excludes are generally ignored.



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the jboss-jira mailing list