Dependency management helps organizing your dependencies in a central place. In your case, that particular artifact is going to be used in different forms in different modules:
- Plain dependency
- Share the test code with the module that depends on it (test dependency) - Same for 3