0

我正在 AEM 中实现 recaptchaenterprise 实现,并按照谷歌文档在 pom.xml 中添加依赖项。

  <dependency>
    <groupId>com.google.cloud</groupId>
    <artifactId>google-cloud-recaptchaenterprise</artifactId>
    <version>1.2.2</version>
  </dependency>

参考链接: https ://github.com/googleapis/java-recaptchaenterprise

但是,我的包处于已安装状态,因为存在一些未解决的依赖项。请在下面找到错误描述。

**com.google.cloud.recaptchaenterprise.v1 -- Cannot be resolved**
com.google.common.collect,version=[15.0,16) from com.adobe.granite.osgi.wrapper.guava 
(98)
com.google.gson,version=[2.8,3) from com.adobe.cq.gson (204)
com.google.gson.annotations,version=[2.8,3) from com.adobe.cq.gson (204)
com.google.gson.reflect,version=[2.8,3) from com.adobe.cq.gson (204)
**com.google.protobuf,version=[3.17,4) -- Cannot be resolved
com.google.recaptchaenterprise.v1 -- Cannot be resolved**


ackage; (osgi.wiring.package=com.google.cloud.recaptchaenterprise.v1)]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4368)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2281)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984)
at 


org.apache.sling.installer.core.impl.tasks.BundleStartTask.execute(
BundleStartTask.java:97) 
[org.apache.sling.installer.core:3.9.0.B002]
at 
org.apache.sling.installer.core.impl.OsgiInstallerImpl.doExecuteTasks
(OsgiInstallerImpl.java:914) [org.apache.sling.installer.core:3.9.0.B002]
at org.apache.sling.installer.core.impl.OsgiInstallerImpl.executeTasks
(OsgiInstallerImpl.java:749) [org.apache.sling.installer.core:3.9.0.B002]
at org.apache.sling.installer.core.impl.OsgiInstallerImpl.run
(OsgiInstallerImpl.java:298) [org.apache.sling.installer.core:3.9.0.B002]
at java.base/java.lang.Thread.run(Thread.java:834)
13.08.2021 13:43:31.930 *INFO* [OsgiInstallerImpl] 
org.apache.sling.installer.core.impl.tasks.RestartActiveBundlesTask Unable to start 
bundle com.mycompany.aem.custom-web-custom.core [632] : Unable to resolve 
com.mycompany.aem.custom-web-custom.core [632](R 632.89): missing requirement 
[com.mycompany.aem.custom-web-custom.core [632](R 632.89)] osgi.wiring.package; 
(osgi.wiring.package=com.google.cloud.recaptchaenterprise.v1) Unresolved 
 requirements: 
[[com.mycompany.aem.custom-web-custom.core [632](R 632.89)] osgi.wiring.package; 
**(osgi.wiring.package=com.google.cloud.recaptchaenterprise.v1)]**
13.08.2021 13:43:31.961 *INFO* [OsgiInstallerImpl] 
org.apache.sling.installer.core.impl.tasks.BundleStartTask Could not start bundle 
com.mycompany.aem.custom-web-custom.core [632]. Reason: {}. Will retry.
org.osgi.framework.BundleException: Unable to resolve com.mycompany.aem.custom-web- 
custom.core [632](R 632.89): missing requirement [com.mycompany.aem.custom-web- 
custom.core [632](R 632.89)] osgi.wiring.package; 
(osgi.wiring.package=com.google.cloud.recaptchaenterprise.v1) Unresolved 
requirements: 
 [[com.mycompany.aem.custom-web-custom.core [632](R 632.89)] osgi.wiring.package; 
**(osgi.wiring.package=com.google.cloud.recaptchaenterprise.v1)]**
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4368)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2281)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984)
at 
4

0 回答 0