If I have the following two dependencies in the same pom.xml
file:
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
</dependency>
And I'd like to remove the redundancy. So should I delete the one with scope as runtime
because it's included in the other dependency?
Also I'd be happy to understand why one would specify a dependency with scope of runtime
.