AEM Forms Core Components - AF Core bundle issue | Community
Skip to main content
April 24, 2025
Solved

AEM Forms Core Components - AF Core bundle issue

  • April 24, 2025
  • 2 replies
  • 2343 views

 

AEM Forms Core Components - AF Core Bundlecom.adobe.aem.core-forms-components-af-core

 

status is in installed state.

seeing this issue from last week only , before that it was working fine

 

    <core.wcm.components.version>2.23.4</core.wcm.components.version>
    <core.forms.components.version>2.0.76</core.forms.components.version>
  <core.forms.components.af.version>2.0.76</core.forms.components.af.version>
    <aem.forms.sdk.api>2023.09.11.00-230901</aem.forms.sdk.api>
    <bnd.version>5.1.2</bnd.version>
    <aem.sdk.api>2023.10.13804.20231005T183332Z-230901</aem.sdk.api>

 

 

 

archtype details

aemVersion=cloud
sdkVersion=latest
languageCountry=${languageCountry}
includeExamples=n
includeErrorHandler=n
frontendModule=general
singleCountry=y
includeDispatcherConfig=y
includeCommerce=n
includeForms=n
includeFormsenrollment=y
includeFormscommunications=n
sdkFormsVersion=latest
datalayer=y
amp=n
enableDynamicMedia=n
enableSSR=n
precompiledScripts=n
includeFormsheadless=n

 

Best answer by Sakshi5

Hello @nagendraba3 ,

 

In case you are using AEM SDK for AEM v2025.4.20476.20250414T214138Z-250300, then can you just remove the embed of following from all/pom.xml:

<embedded>
    <groupId>com.adobe.aem</groupId>
    <artifactId>core-forms-components-af-apps</artifactId>
    <type>zip</type>
   <target>/apps/${appId}-vendor-packages/application/install</target>
</embedded>

 

and


<embedded>
   <groupId>com.adobe.aem</groupId>
   <artifactId>core-forms-components-af-core</artifactId>
   <target>/apps/${appId}-vendor-packages/application/install</target>
</embedded>

Basically, now these are part of product, you are embedding versions:

  <core.forms.components.version>2.0.76</core.forms.components.version>
  <core.forms.components.af.version>2.0.76</core.forms.components.af.version>
Whereas with this sdk, 3.0.104 is available in product OOTB. Additionally either core pom.xml needs to be updated, one will need to update the range of import (bolded portion is the one that is added) or if its not being consumed in customization, then you can go ahead and remove the dependencies of artifacts core-forms-components-core and core-forms-components-af-core

 

 

<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
<executions>
<execution>
<id>bnd-process</id>
<goals>
<goal>bnd-process</goal>
</goals>
<configuration>
<bnd><![CDATA[
Import-Package: javax.annotation;version=0.0.0,com.adobe.cq.forms.core.components.models.form;version="[5.0.0,6.0.0)",*
]]></bnd>
</configuration>
</execution>
</executions>
</plugin>

Also make sure older bundles of core components are uninstalled and trashed.

 

2 replies

Adobe Employee
April 25, 2025

Hello @nagendraba3 

 

Could you please confirm your SDK release version?

Starting April release, we are shipping the core components included in the AEM forms-addon far file.

You might want to remove the core components installed in /apps/core/fd to avoid any duplicity.

 

Please test this and let us know if you face any further issues.

 

Thanks,

Rahul Pandey

Sakshi5
Adobe Employee
Sakshi5Adobe EmployeeAccepted solution
Adobe Employee
April 25, 2025

Hello @nagendraba3 ,

 

In case you are using AEM SDK for AEM v2025.4.20476.20250414T214138Z-250300, then can you just remove the embed of following from all/pom.xml:

<embedded>
    <groupId>com.adobe.aem</groupId>
    <artifactId>core-forms-components-af-apps</artifactId>
    <type>zip</type>
   <target>/apps/${appId}-vendor-packages/application/install</target>
</embedded>

 

and


<embedded>
   <groupId>com.adobe.aem</groupId>
   <artifactId>core-forms-components-af-core</artifactId>
   <target>/apps/${appId}-vendor-packages/application/install</target>
</embedded>

Basically, now these are part of product, you are embedding versions:

  <core.forms.components.version>2.0.76</core.forms.components.version>
  <core.forms.components.af.version>2.0.76</core.forms.components.af.version>
Whereas with this sdk, 3.0.104 is available in product OOTB. Additionally either core pom.xml needs to be updated, one will need to update the range of import (bolded portion is the one that is added) or if its not being consumed in customization, then you can go ahead and remove the dependencies of artifacts core-forms-components-core and core-forms-components-af-core

 

 

<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
<executions>
<execution>
<id>bnd-process</id>
<goals>
<goal>bnd-process</goal>
</goals>
<configuration>
<bnd><![CDATA[
Import-Package: javax.annotation;version=0.0.0,com.adobe.cq.forms.core.components.models.form;version="[5.0.0,6.0.0)",*
]]></bnd>
</configuration>
</execution>
</executions>
</plugin>

Also make sure older bundles of core components are uninstalled and trashed.

 

New Member
April 25, 2025

@rahulpandey27   , @sakshi5 

after removing suggested code , 

"all" package build is getting failed. 

 

 

do we need to remove it any other place ?

 

please advice 

Sakshi5
Adobe Employee
Adobe Employee
April 26, 2025

Yes you will either need to update core pom.xml with the range, (the bolded part is the addition) or if its not being consumed in customization, then you can go ahead and remove the dependencies of artifacts core-forms-components-core and core-forms-components-af-core:
<Updated the original response>

<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
<executions>
<execution>
<id>bnd-process</id>
<goals>
<goal>bnd-process</goal>
</goals>
<configuration>
<bnd><![CDATA[
Import-Package: javax.annotation;version=0.0.0,com.adobe.cq.forms.core.components.models.form;version="[5.0.0,6.0.0)",*
]]></bnd>
</configuration>
</execution>
</executions>
</plugin>