Uber jar library files overriding the original libraries




I have used the Uber Jar 6.4.4 for 6.4 upgrade. The org.json.JSONArray file declared in the package does not implement the Iterable class as the original library, so the following code is failing:

JSONArray summaryArray = new JSONArray(summaryJSONString);

JSONArray jsonArray = new JSONArray(jsonString);

for (Object json : jsonArray) {

if (json instanceof JSONObject) {

//Some code



Even after adding the original library as a dependency, my code is still referencing to the uber jar file instead of the referenced library.














Is there a way to override the Uber Jar libraries or to exclude them in the POM?

Answers (0)