[hibernate-dev] Fwd: Re: [jboss-as7-dev] Modules and hidden packages

Gunnar Morling gunnar at hibernate.org
Thu Apr 4 17:39:42 EDT 2013


Hi,

2013/4/3 Hardy Ferentschik <hardy at hibernate.org>

> Or probably more something like that:
>
>     <resources>
>      <resource-root path="hibernate-validator-5.0.0.Final.jar" >
>        <filter>
>          <exclude path="org/hibernate/validator/internal/**" />
>        </filter>
>      </resource-root>
>     </resources>
>
> in module.xml that is.
>

Filtering/excluding paths from the resource root effectively makes these
classes unavailable. Doing so gives me NoClassDefFoundErrors on the
internal classes. But excluding "org/hibernate/validator/internal/**" from
the exports works.


>
> --Hardy
>
> On 3 Jan 2013, at 6:12 PM, Hardy Ferentschik <hardy at hibernate.org> wrote:
>
> > Something like this should work:
> >
> >  <exports>
> >      <exclude name="**/internal/**"/>
> >  </exports>
> >
> > On 3 Jan 2013, at 6:03 PM, Gunnar Morling <gunnar at hibernate.org> wrote:
> >
> >> Do you have some details or an example how this is done?
> >>
> >> For HV, we consider everything under org.hibernate.validator.internal as
> >> private (and e.g. handle it like this in the OSGi manifest), so it would
> >> make sense to do the same for the AS module.
> >>
> >> --Gunnar
> >
> > _______________________________________________
> > hibernate-dev mailing list
> > hibernate-dev at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/hibernate-dev
>
>


More information about the hibernate-dev mailing list