[jboss-dev-forums] [JBoss AS 7 Development] - Re: as7 modules and cdi problem

Tomaz Cerar do-not-reply at jboss.com
Wed Mar 21 18:13:43 EDT 2012


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&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120321/e43e7451/attachment.html 


More information about the jboss-dev-forums mailing list