com.adobe.cq.gson vs com.google.gson | Community
Skip to main content
Level 3
Jul 7, 2016 7:41 AM UTC

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

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

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

3 replies

Lokesh_Shivalingaiah
Level 10
Jul 7, 2016 6:33 PM UTC

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/

Translate
Level 3
Jul 8, 2016 4:59 AM UTC

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

Translate
Lokesh_Shivalingaiah
Level 10
Jul 10, 2016 5:16 AM UTC

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.

Translate