org.joda.time,version=[1.6,2) and org.joda.time.format,version=[1.6,2) dependency cannot be resolved in AEM 6.4 | Community
Skip to main content
sayalichougale
Level 2
October 3, 2019

org.joda.time,version=[1.6,2) and org.joda.time.format,version=[1.6,2) dependency cannot be resolved in AEM 6.4

  • October 3, 2019
  • 1 reply
  • 3585 views

Hi,

As I am trying to migrate my backend code base from AEM 6.1 to AEM 6.4, I came across the following issue.The dependency for  org.joda.time,version=[1.6,2) and org.joda.time.format,version=[1.6,2) cannot be resolved.According to one of the helpx.adobe.com some of the methods for this dependency are depricated in 6.4. Can anyone suggestion the alternative for this dependency. I have added the below maven dependency in my project pom.xml:

<dependency>
<artifactId>joda-time</artifactId>
<version>2.9.1</version>
<groupId>joda-time</groupId>
<scope>provided</scope>
</dependency>

Please find the following observation:

First on addition of the following maven dependency in the pom.xml the dependency were resolved ,find the screen shot of the same:

<dependency>

<artifactId>joda-time</artifactId>

<version>2.9.1</version>

<groupId>joda-time</groupId>

<scope>provided</scope>

</dependency>

To resolve com.day.cq.commons,version = [5.7,6) dependency,I imported the com.day.cq.commons;version="6.0",* package in my bundle pom.xml only to observe that the  dependency for org.joda.time,version=[1.6,2)  and org.joda.time.format,version=[1.6,2)  were in unresolved state and com.day.cq.commons,version=6.0 in resolved state.Please find the below screen shot of the same.I am not able to get the cause of this and would like to know how is com.day.cq.commons related to org.joda.time.

Thanks and Regards,

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Adobe Employee
October 3, 2019

Can you try to use the uber jar with deprecated API's ?

sayalichougale
Level 2
October 3, 2019

Hi,

I have already added uber jar dependency in the pom.xml  file.Please find the below dependency which is added in the pom.xml file of the project:

       <dependency>

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

       <artifactId>uber-jar</artifactId>

       <version>6.4.0</version>

       <classifier>apis</classifier>

        <scope>provided</scope>

       </dependency>

What does uber jar with deprecated API's means?

All the other bundles in the same instance are working properly with addition of above uber-jar dependency.

Level 3
October 3, 2019

Try using the dependency finder and see if you have these packages part of AEM.