Uploaded image for project: 'JBoss Modules'
  1. JBoss Modules
  2. MODULES-208

jboss-modules does not respect path excludes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.4.3.Final, 1.5.0.Beta1
    • None
    • Core
    • None

      We have a module definition like this

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

      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.

      CrossRef: https://github.com/wildfly-extras/wildfly-camel/issues/540

              dlloyd@redhat.com David Lloyd
              tdiesler@redhat.com Thomas Diesler
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: