无法解决对akamai edgegrid API的依赖性 [英] unable to resolve dependency for akamai edgegrid API

查看:248
本文介绍了无法解决对akamai edgegrid API的依赖性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用akamai edgegrid API来使akamai chache无效。我在pom.xml中添加了以下依赖项,但是我的捆绑包保持安装状态。以下是更多详细信息-

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依赖性-

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>

捆绑包处于安装状态,在felix控制台上说-

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

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

error.log说-

error.log says -

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


推荐答案

您已使用< scope> provided< / scope> ,这意味着此jar将在编译时使用,而在运行时将使用可用的jar在运行时环境中。不幸的是,edgegrid-signer-apache-http-client-2.1.0.jar在AEM实例上不可用。
要解决此问题,请不要使用< scope> provided< / scope>
更新了POM-

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>

在将软件包打包到AEM之前,请提取jar并检查edgegrid-signer-apache-http-client .jar,edgegrid-signer-core.jar,httpclient.jar,httpcore.jar应该是捆绑软件的一部分。

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.

希望它能解决您的问题。祝一切顺利。
如果您仍然遇到任何问题,请告诉我。
-Mrutyunjaya

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

这篇关于无法解决对akamai edgegrid API的依赖性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆