JBoss Community

Re: as7 modules and cdi problem

created by Tomaz Cerar in JBoss AS 7 Development - View the full discussion

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

Start a new discussion in JBoss AS 7 Development at Community