Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Uber jar library files overriding the original libraries

Avatar

Avatar
Validate 1
Level 1
hkhsb
Level 1

Like

1 like

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
hkhsb
Level 1

Like

1 like

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
hkhsb
Level 1

09-07-2019

HI,

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.

Dependencies:

<dependency>

<groupId>com.adobe.aem</groupId>

<artifactId>uber-jar</artifactId>

<version>6.4.4</version>

<classifier>apis</classifier>

<scope>provided</scope>

</dependency>

<dependency>

<groupId>org.json</groupId>

<artifactId>json</artifactId>

<version>20180813</version>

</dependency>

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,345 likes

Total Posts

3,220 posts

Correct Reply

914 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,345 likes

Total Posts

3,220 posts

Correct Reply

914 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

09-07-2019

Can you try to reorder both in core pom.xml

Answers (0)