unable to resolve dependency for akamai edgegrid API

扶醉桌前 提交于 2019-12-12 05:36:03

问题


I am trying to use akamai edgegrid API for invalidating akamai chache. I have added below dependency in my pom.xml, but my bundle keeps in installed state. Below are more details-

pom.xml dependency-

<dependency>
<groupId>com.akamai.edgegrid</groupId>
<artifactId>edgegrid-signer-apache-http-client</artifactId>
<version>2.1.0</version>
<scope>provided</scope>
</dependency>

Bundle is in installed state, on felix console it says-

Imported Packages   com.akamai.edgegrid.signer -- Cannot be resolved

error.log says -

Unable to resolve 497.82: missing requirement [497.82] osgi.wiring.package; (osgi.wiring.package=com.akamai.edgegrid.signer)

回答1:


You have used <scope>provided</scope> , it means this jar will be used during compile time and during run time it will use the jar available on the run time environment. Unfortunately edgegrid-signer-apache-http-client-2.1.0.jar is not available on the AEM instance. To resolve the issue, Do not use <scope>provided</scope> . Updated POM -

<dependency>
<groupId>com.akamai.edgegrid</groupId>
<artifactId>edgegrid-signer-apache-http-client</artifactId>
<version>2.1.0</version>
</dependency>

Before deploying the bundle on AEM, extract the jar and check edgegrid-signer-apache-http-client.jar , edgegrid-signer-core.jar, httpclient.jar, httpcore.jar should be part of the bundle.

Hopefully it will solve your issue. All the best. Please let me know if you still face any issue. -Mrutyunjaya



来源:https://stackoverflow.com/questions/46117251/unable-to-resolve-dependency-for-akamai-edgegrid-api

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!