April 2017
Beginner
504 pages
14h 11m
English
Recall that we have a multi-module project, and the dependency versions are maintained in the parent POM under the dependencyManagement tag.
<dependencyManagement> <dependencies> ... <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> <scope>test</scope> </dependency> </dependencies> </dependencyManagement>
The scope of the dependency is test, which means that this library is needed only to compile the test code and during the execution of the test. The JUnit library will not make its way to the final released product; there is no need for it. If you find the JUnit library in some deployed production Web Archive (WAR) file, suspect that somebody was not properly ...
Read now
Unlock full access