Hi All
when i am executing maven build (./mvnw package
) getting below error
RestTemplateConfig.java:[5,35] package org.apache.http.impl.client does not exist
but the same project is working fine on my friend’s machine so when i compared the dependency tree found below (left side is mine , right side is my friend’s)
In my pom.xml i have defined rest-assured with test scope but why it’s transitive dependency scope is compile at my friend’s machine whereas in my machine it’s test because of that it’s not working i know if i manually add the dependency it will work but want to understand how maven is evaluating this
below is corresponding pom.xml snippet
<dependency>
<groupId>io.rest-assured</groupId>
<artifactId>rest-assured</artifactId>
<scope>test</scope>
</dependency>
Thanks