Experience League Showcase
Read real-world use cases of Experience Cloud products written by your peers
Adobe Feedback Program
Influence Adobe product development
COMMUNITIES BY PRODUCT
Advertising
Analytics
Audience Manager
Campaign Classic v7 & Campaign v8
Campaign Standard
Developer
Experience Cloud
Experience Manager Sites & More
Experience Platform
Journey Optimizer
Target
Real-Time Customer Data Platform
Workfront
Marketo Engage
Hi,
I have included google gson dependency in the pom.xml of my project as shown below:
<dependency><groupId>com.google.code.gson</groupId><artifactId>gson</artifactId><version>2.2.2</version></dependency>
I am able to build the project without any issues but when I am hitting the URL, the page does not load. I can see that in the system/console the project bundle is not getting started. Further, upon looking in the details of the bundle, it shows an error "com.google.gson,version=[2.2,3) -- Cannot be resolved"
Any idea what could possible go wrong.
Thanks,
Read this Sling Article that uses a JSON API:
http://helpx.adobe.com/experience-manager/using/custom-sling-servlets.html
It uses org.json.simple.JSONObject API similar to GSON. As shown in the article - you have to wrap the JAR file (in your case -- com.google.code.gson) in a bundle fragment and deploy to CQ. You can follow the same steps as talked in the article. Replace JSONObject API with GSON API.
Hope this helps.
Read this Sling Article that uses a JSON API:
http://helpx.adobe.com/experience-manager/using/custom-sling-servlets.html
It uses org.json.simple.JSONObject API similar to GSON. As shown in the article - you have to wrap the JAR file (in your case -- com.google.code.gson) in a bundle fragment and deploy to CQ. You can follow the same steps as talked in the article. Replace JSONObject API with GSON API.
Hope this helps.