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:
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:
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.
Solved! Go to Solution.
Views
Replies
Total Likes
Have you followed the instructions how to bootstrap a forms project at
mvn -B archetype:generate -DarchetypeGroupId=com.adobe.aem -DarchetypeArtifactId=aem-project-archetype -DarchetypeVersion=32 -DaemVersion="cloud" -DappTitle="My Site" -DappId="mysite" -DgroupId="com.mysite" -DincludeFormsenrollment="y"
Other than a regular Sites/Assets project you need additional dependencies for forms:
<!-- AEM Forms Dependencies --> <dependency> <groupId>com.adobe.aem</groupId> <artifactId>aem-forms-sdk-api</artifactId> <version>${aem.forms.sdk.api}</version> </dependency> <dependency> <groupId>com.adobe.aem</groupId> <artifactId>core-forms-components-apps</artifactId> <type>zip</type> <version>${core.forms.components.version}</version> </dependency> <dependency> <groupId>com.adobe.aem</groupId> <artifactId>core-forms-components-core</artifactId> <version>${core.forms.components.version}</version> </dependency>
(I copied this from the boostrapped project created by the mvn example on the linked docs page)
Have you followed the instructions how to bootstrap a forms project at
mvn -B archetype:generate -DarchetypeGroupId=com.adobe.aem -DarchetypeArtifactId=aem-project-archetype -DarchetypeVersion=32 -DaemVersion="cloud" -DappTitle="My Site" -DappId="mysite" -DgroupId="com.mysite" -DincludeFormsenrollment="y"
Other than a regular Sites/Assets project you need additional dependencies for forms:
<!-- AEM Forms Dependencies --> <dependency> <groupId>com.adobe.aem</groupId> <artifactId>aem-forms-sdk-api</artifactId> <version>${aem.forms.sdk.api}</version> </dependency> <dependency> <groupId>com.adobe.aem</groupId> <artifactId>core-forms-components-apps</artifactId> <type>zip</type> <version>${core.forms.components.version}</version> </dependency> <dependency> <groupId>com.adobe.aem</groupId> <artifactId>core-forms-components-core</artifactId> <version>${core.forms.components.version}</version> </dependency>
(I copied this from the boostrapped project created by the mvn example on the linked docs page)
Hi Jörg,
Thanks for the reply, I tried adding above dependencies just now and also tried embedding the packages in my project similar to the way it was in the bootstrapped project, but the build failed with exactly same errors.
Also, forgot to mention, I am using sandbox env.
Maybe the dependencies are correct but the version I am trying to import is wrong?
Is there a way to check which which packages are required for below dependencies that I can embed and also what version for these packages would be required for an AEM 6.5.5 project?
I just know that these are coming from Forms addon package.
"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.fd.signatures.client.types,
com.adobe.aemfd.docmanager;version=[1.9,2)"
Thanks,
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.
Hi @Sanidhya-Gaur did you resolve this problem?
I have same problem now. On local instance my project compiles but on Cloud I have same errors than you but I do not use forms addons on my project, so I do not have to import libraries suggested above.
Thanks!
Actually the issue was we were trying to make changes in the existing pom which was created using old archetype.
To fix it, we decided to change the whole pom and built the maven project again using recommended maven archetype for AEMaaCS.
The analyser should already be included in the new project archetype.
Before the build, we added the dependencies in the embed that were appearing in the analyser build errors just like the way mentioned in this article.
And the Forms Add On related bundle resolved after installing the forms add on provided in Software Distribution page and added below entries in the "all" project's pom.xml:
... <embedded> <groupId>com.adobe.aem</groupId> <artifactId>core-forms-components-apps</artifactId> <type>zip</type> <target>/apps/<your-project-path>/install</target> </embedded> <embedded> <groupId>com.adobe.aem</groupId> <artifactId>core-forms-components-core</artifactId> <target>/apps/<your-project-path>/install</target> </embedded>
Thanks,
@Sanidhya-Gaur am facing similar issue . added all the mentioned dependencies
<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>aem-forms-sdk-api</artifactId>
<version>2022.12.20.00-230100</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.adobe.aem/core-forms-components-apps -->
<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>core-forms-components-apps</artifactId>
<type>zip</type>
<version>2.0.8</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.adobe.aem/core-forms-components-core -->
<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>core-forms-components-core</artifactId>
<version>2.0.8</version>
</dependency>
still same error
[ERROR] The analyser found the following errors for author and publish :
[ERROR] [api-regions-exportsimports] project.core:0.0.1-SNAPSHOT: Bundle core:0.0.1-SNAPSHOT is importing package(s) com.adobe.fd.workspace.service.external in start level 20 but no bundle is exporting these for that start level. (project.all:0.0.1-SNAPSHOT)
any suggestions ?
Thanks,
Durga Kavali
When boostrapping the archetype, have you enabled forms?
Views
Likes
Replies
Views
Likes
Replies