Expand my Community achievements bar.

com.adobe.cq.gson vs com.google.gson

Avatar

Level 3

Hi All,

How can I use com.adobe.cq.gson-2.3.jar bundle in AEM 6.2 project instead of using com.google.code.gson as an external jar file ?

I tried adding com.adobe.cq.gson-2.3.jar as a dependency in pom file but I am getting below error :

Failure to find com.adobe.cq.gson:com.adobe.cq.gson:jar:2.3 in http://repo.adobe.com/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of adobe has elapsed or updates are forced
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:221)
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:127)
    at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:257)

Your immediate help will be appreciated!

Also, it will be helpful if I can get some insights on com.adobe.cq.gson-2.3.jar bundle and how is it different from gson-2.7.jar?

Thanks

3 Replies

Avatar

Level 10

Hi,

How did you get this jar ?? I dont see this package present in the adobe repository under https://repo.adobe.com/nexus/content/groups/public/com/adobe/cq/

I can see this bundle in AEM 6.2 Felix console. See the image screenshot below

I want to know how this bundle works and how can I make use of this bundle instead of using google(com.google.code.gson) external jar?

Thank you

If you see, they are essentially using google GSON  packages.

However, this jar seems to be missing from the Adobe's Public maven repository. Please raise a support ticket for the same.