I have a problem with a maven dependency on a J2ee project (EAR + WAR). More in detail:
In the WAR project pom I have a JAR application dependency:
<dependency>
<groupId>JAR_APP_groupid</groupId>
<artifactId>JAR_APP_artifactid</artifactId>
<version>JAR_APP_version</version>
</dependency>
the above JAR (JAR_APP) is made by another Maven project which contains the follow dependency:
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.3</version>
</dependency>
The problem is that when I build the WAR I see the JAR_APP dependency and the httpclient (sub)dependency in the lib folder, but when I run the application on the application server (websphere 9.0) I get the following error:
Caused by: java.lang.ClassNotFoundException: org.apache.http.client.methods.HttpUriRequest
I don't know why. Can you help me ?
Thank you a lot.