Build Error while converting project to cloud runnable image for AEMaaCS.
Hi Team,
My current project is in AEM 6.5 and trying to deploy it on AEMaaCS. Our team resolved all the code related issues and code quality scan is passed as well. In the 3rd build step, while converting the project to cloud runnable image, I got below error:
- [ERROR] [api-regions-exportsimports] <my-project-core>:1.0-SNAPSHOT: Bundle <my-project-core>:1.0-SNAPSHOT is importing package(s) [com.adobe.fd.signatures.pki.client.types.prefs, com.adobe.fd.signatures.pki.client.types.common, com.adobe.fd.docassurance.client.api, com.adobe.fd.signatures.pdf.inputs, com.adobe.fd.encryption.client, com.adobe.acs.commons.email, com.adobe.fd.signatures.client.types] in start level 20 but no bundle is exporting these for that start level.
- [ERROR] [api-regions-exportsimports] <my-project-core>:1.0-SNAPSHOT: Bundle <my-project-core>:1.0-SNAPSHOT is importing package(s) Package com.adobe.aemfd.docmanager;version=[1.9,2) in start level 20 but no visible bundle is exporting these for that start level in the required version range.
I got little idea about this error from here.
I referred this doc to include ACS commons classes and resolved that part.
The rest of the classes are coming from AEM Forms addon package.
Issue occurred when I tried the similar approach of embedding aemfd-client-sdk jar in the pom.
I added below part in pom
<build>
<plugins>
<plugin>
<groupId>org.apache.jackrabbit</groupId>
<artifactId>filevault-package-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<embedded>
<groupId>com.adobe.aemfd</groupId>
<artifactId>aemfd-client-sdk</artifactId>
<filter>true</filter>
</embedded>
...
I was hoping that "aemfd-client-sdk" jar might have all the packages provided by Forms package. Also, I shouldn't have done this as after this aemfd-client-sdk showed up in the /system/console/bundles with unresolved dependencies.
Build was successful after embedding aemfd jar but now in the image build, analyser asked to do the same for aemfd-client-sdk:
- [ERROR] [api-regions-exportsimports] com.adobe.aemfd:aemfd:-client-sdk: Bundle aemfd:-client-sdk is importing package(s) [com.adobe.idp.um.api.infomodel, com.rits.cloning, com.adobe.aemds.bedrock, com.adobe.livecycle.content.model.annotation, com.adobe.aemfd.docmanager.internal.passivation.jcr, org.dom4j.io, com.adobe.fd.signatures.pki.impl, org.omg.CORBA, com.adobe.icc.data, com.adobe.ps.cm.config, com.adobe.fd.signatures.hsm, com.adobe.fd.signatures.hsm.api, com.adobe.fd.signatures.impl, net.sf.beanlib.provider.finder, com.adobe.livecycle.content.appcontext, com.adobe.fd.signatures.pki.revocation.crl, com.adobe.exm.expeval.functionutil, com.adobe.internal.pdfm.util, org.dom4j, com.adobe.aemfd.docmanager.internal.persistence, com.adobe.service, com.adobe.fd.signatures.hsm.internal.transaction.util, com.adobe.aemfd.docmanager.internal.passivation, com.adobe.aemfd.docmanager.internal.passivation.url, com.adobe.livecycle.content.activate.exception, com.adobe.fd.signatures.pki.cert, org.dom4j.dom, org.apache.commons.el, net.sf.beanlib.spi, com.adobe.fd.signatures.truststore.businessobject, net.sf.beanlib.provider.replicator, com.adobe.aemds.formset.utils, com.adobe.fd.signatures.pki.client.types, net.sf.beanlib.provider, com.adobe.aemds.guide.progressive, com.adobe.livecycle.content.repository, com.adobe.aemfd.docmanager.internal.source, com.adobe.fd.fp.util, com.adobe.fd.signatures.pki.client] in start level 20 but no bundle is exporting these for that start level.
- [ERROR] [api-regions-exportsimports] com.adobe.aemfd:aemfd:-client-sdk: Bundle aemfd:-client-sdk is importing package(s) [Package com.adobe.forms.option;version=[3.7,4), Package com.adobe.xfa;version=[3.6,4), Package com.adobe.xfa.ut;version=[3.6,4), Package com.adobe.aemds.guide.themes.model;version=[3.10,4), Package com.adobe.aemds.guide.transformer.api;version=[3.10,4), Package com.adobe.xfa.content;version=[3.6,4), Package com.adobe.aemds.guide.submitutils;version=[3.10,4), Package com.adobe.forms.foundation.util;version=[2.0,3), Package com.adobe.aem.dermis.util;version=[1.0,2), Package com.adobe.xfa.protocol;version=[3.6,4), Package com.adobe.aemfd.docmanager.source;version=[1.9,2), Package com.adobe.aemfd.dermis.authentication.util;version=[1.1,2), Package com.adobe.xfa.configuration;version=[3.6,4), Package com.adobe.xfa.template.containers;version=[3.6,4), Package com.adobe.xfa.data;version=[3.6,4), Package com.adobe.xfa.localeset;version=[3.6,4), Package com.adobe.internal.pdftoolkit.services.javascript;version=null, Package com.adobe.aemfd.docmanager.io;version=[1.9,2), Package com.adobe.internal.pdftoolkit.pdf.document;version=null, Package com.adobe.xfa.template;version=[3.6,4), Package com.adobe.forms.foundation.transfer;version=[2.0,3), Package org.apache.commons.beanutils;version=[1.8,2), Package com.adobe.forms.foundation.service;version=[1.6,2), Package com.adobe.forms.foundation.oauth.model;version=[1.0,2), Package com.adobe.aemds.guide.service.internal;version=[3.11,4), Package com.adobe.forms.common.utils;version=[5.9,6), Package com.adobe.xfa.connectionset;version=[3.6,4), Package com.adobe.xfa.template.ui;version=[3.6,4), Package com.adobe.forms.service;version=[3.7,4), Package com.adobe.xfa.template.formatting;version=[3.6,4), Package com.adobe.forms.foundation.service.util;version=[1.6,2)] in start level 20 but no visible bundle is exporting these for that start level in the required version range.
I just want to know how can I resolve these similar dependencies on AEM Forms Addon package.
Adding more to the Question, the packages throwing errors in the analyser logs are not resolved in AEM cloud local setup as well:

So, to use these packages in my code in AEMaaCS, what are the packages I should use?
In my local AEM cloud sdk I have already installed forms addon latest tool from Software Distribution that should have resolved this but didn't.