Named Index
Often Sisu's SpaceModule
doesn't scan the full classpath at run time (for relevant annotations) but relies on a pre-generated index at META-INF/sisu/javax.inject.Named
.
Generate the named index
There are two different ways how to create such an index file:
- By leveraging the Java annotation processor in
org.eclipse.sisu.space.SisuIndexAPT6
to generate the index. One needs to enable viajavac -processor org.eclipse.sisu.space.SisuIndexAPT6
or with the accordingmaven-compiler-plugin
parameterannotationProcessors
. - By leveraging the dedicated Maven plugin