Maven build error when integrate Google ReCaptcha Enterprise: Unable to get bundle symbolic name
We are trying to integrate Google ReCaptcha Enterprise lib, here is my pom:
in pom.xml:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-recaptchaenterprise</artifactId>
<version>3.25.0</version>
</dependency>
in core/pom.xml:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-recaptchaenterprise</artifactId>
</dependency>
in all/pom.xml:
<embedded>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-recaptchaenterprise</artifactId>
<target>/apps/ilx-apps-packages/application/install</target>
</embedded>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-recaptchaenterprise</artifactId>
<version>3.25.0</version>
</dependency>
When I run:
mvn clean install -PautoInstallSinglePackage
or
mvn clean package install -PautoInstallSinglePackage
I got error:
[ERROR] Failed to execute goal com.adobe.aem:aemanalyser-maven-plugin:1.4.20:project-analyse (aem-analyser) on project myApp.all: A fatal error occurred while analysing the features, see error cause:: Unable to get bundle symbolic name from artifact com.google.cloud:google-cloud-recaptchaenterprise:3.25.0 -> [Help 1]
I have tried these solutions mention in
such as add following in pom.xml:
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<Import-Package>*;resolution:=optional</Import-Package>
<Export-Package>
com.google.recaptchaenterprise.v1.*,
com.google.cloud.recaptchaenterprise.v1.*
</Export-Package>
<Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
<Embed-Transitive>true</Embed-Transitive>
</instructions>
</configuration>
</plugin>
None of them is working.
I am using aem-sdk 2023.4. Any help is appreciated.