문제

I'm looking at a project's POM and its dependency management section lists the same artifact 3 times - each time with different classifiers/types. What does this help you achieve?

Specifically, the dependency in question is the test module of the project. Its 3 occurrences in the POM have the following form:

  1. default scope, default type, default classifier
  2. default scope, test-jar type, default classifier
  3. default scope, test-jar type, test-sources classifier
도움이 되었습니까?

해결책

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:

  1. Plain dependency
  2. Share the test code with the module that depends on it (test dependency) - Same for 3
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top