add warning if a dependency is defined multiple time