You cannot do this when as this will fail when Jandex is not on classpath.