Make web jar collection not transitive, improve the code of the dependency handling

Signed-off-by: Clement Escoffier <clement.escoffier@gmail.com>