Tomaz Cerar [
https://community.jboss.org/people/ctomc] created the discussion
"Re: as7 modules and cdi problem"
To view the discussion, visit:
https://community.jboss.org/message/725444#725444
--------------------------------------------------------------
Hi,
by default all modules won't expose annotations.
to asure this, you have to explitly create jandex index of annotations and put it into
your jar or pack it seperatly.
for more on how to do this take a look at jandex
https://github.com/jbossas/jandex
https://github.com/jbossas/jandex (there is also ant target to do that)
after you have created this index and put it into your jar or as extra resource to your
modle.
you have to explisitly import annotations, so in your case you need in manifest entry like
this:
Dependencies: com.mycompany annotations
hope it helps,
--
tomaz
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/725444#725444]
Start a new discussion in JBoss AS 7 Development at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]