-
1. Re: Bootstrap Weld SE for Nested JARs
mkouba Apr 17, 2015 2:52 AM (in response to thilo.tanner)Hi Thilo,
what exactly does "nested JARs" mean? From the log message it seems that you're basically building a WAR. This is not supported in Weld SE at the moment.
FileSystemBeanArchiveHandler
is not able to handle "nested" archives. You could try to use a shaded jar and exclude problematic classes by means of Exclude filters OR turn the archive into an implicit bean archive by settingbean-discovery-mode
toannotated
so that only classes with bean defining annotations are considered. -
2. Re: Bootstrap Weld SE for Nested JARs
jharting Apr 17, 2015 4:32 AM (in response to mkouba)Can you be more specific about failures that occur when you use a shaded jar? We actually did some changes to allow this quite recently. Try Weld 2.2.10.Final or better. Alternatively, you can find an exclusion filter setup for the shaded usecase in the workaround description of this issue: https://issues.jboss.org/browse/WELD-1129
FYI I opened an issue to track nested archive support: https://issues.jboss.org/browse/WELD-1930