Expand my Community achievements bar.

SOLVED

AEM Forms Core Components - AF Core bundle issue

Avatar

Level 1

 

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>

 

NagendraBa3_0-1745499679953.png

 

 

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

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Employee

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.

 

View solution in original post

18 Replies

Avatar

Employee

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

Avatar

Correct answer by
Employee

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.

 

Avatar

Level 1

@Rahul_P   , @Sakshi5 

after removing suggested code , 

"all" package build is getting failed. 

 

SwathiSa6_0-1745584939757.png

 

do we need to remove it any other place ?

 

please advice 

Avatar

Employee

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>

Avatar

Level 1

Thanks for the reply we are checking on this.

Avatar

Level 1

@Sakshi5 

 

Hi Sakshi , 

 

removed given embeds from all/pom.xml

 

added below code in core pom.xml, but still some getting error. Attached screenshot  

 
<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)",*
-includeresource: ${settings.localRepository}/com/auth0/java-jwt/4.4.0/java-jwt-4.4.0.jar;lib:=true, ${settings.localRepository}/com/auth0/jwks-rsa/0.22.0/jwks-rsa-0.22.0.jar;lib:=true
-fixupmessages "Classes found in the wrong directory"; restrict:=error; is:=warning
                                ]]></bnd>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
 
NagendraBa3_0-1745826835010.png

 

currently my all/pom.xml 

		<!-- forms core components dependencies -->
        <dependency>
          <groupId>com.adobe.aem</groupId>
          <artifactId>core-forms-components-apps</artifactId>
          <type>zip</type>
        </dependency>
        <dependency>
          <groupId>com.adobe.aem</groupId>
          <artifactId>core-forms-components-core</artifactId>
        </dependency>
        <dependency>
          <groupId>com.adobe.aem</groupId>
          <artifactId>core-forms-components-af-apps</artifactId>
          <type>zip</type>
        </dependency>
        <dependency>
          <groupId>com.adobe.aem</groupId>
          <artifactId>core-forms-components-af-core</artifactId>
        </dependency>

 my core pom.xml

        <!-- AEM Forms Dependencies -->
        <dependency>
            <groupId>com.adobe.aem</groupId>
            <artifactId>aem-forms-sdk-api</artifactId>
        </dependency>
		<dependency>
          <groupId>com.adobe.aem</groupId>
          <artifactId>core-forms-components-core</artifactId>
        </dependency>
        <dependency>
          <groupId>com.adobe.aem</groupId>
          <artifactId>core-forms-components-af-core</artifactId>
        </dependency>

 

in apps pom.xml

            <plugin>
                <groupId>org.apache.jackrabbit</groupId>
                <artifactId>filevault-package-maven-plugin</artifactId>
                <configuration>
                	<allowIndexDefinitions>true</allowIndexDefinitions>
                    <properties>
                        <cloudManagerTarget>none</cloudManagerTarget>
            			<noIntermediateSaves>true</noIntermediateSaves>
                    </properties>
                    <group>com.bot</group>
                    <name>bot.ui.apps</name>
                    <packageType>application</packageType>
                    <repositoryStructurePackages>
                        <repositoryStructurePackage>
                            <groupId>com.bot</groupId>
                            <artifactId>bot.ui.apps.structure</artifactId>
                        </repositoryStructurePackage>
                    </repositoryStructurePackages>
                    <dependencies>
                        <dependency>
                            <groupId>com.adobe.aem</groupId>
                            <artifactId>core-forms-components-af-apps</artifactId>
                            <version>${core.forms.components.af.version}</version>
                        </dependency>
                    </dependencies>
                </configuration>
            </plugin>

 

 

we definitely need 

com.adobe.cq.forms.core.components imports in our code 
 
Please advice

Avatar

Employee

Hi @NagendraBa3 , make sure the older bundles are uninstalled and trashed.

Avatar

Level 1

@Sakshi5  

used new author instance 2025.4.20476.20250414T214138Z-250300

and build whole project, bundle is still having same error 

 

 

Avatar

Employee

@SwathiSa6 / @NagendraBa3 

Is this some other bundle at your end other than core?
Screenshot 2025-04-28 at 4.17.39 PM.png

if so you will need to add the same import 

com.adobe.cq.forms.core.components.models.form;version="[5.0.0,6.0.0)"

 in the that bundle which is not getting active.

Also you have updated the versions in the main pom as well, right?


<
core.forms.components.version>2.0.76</core.forms.components.version>
  <core.forms.components.af.version>2.0.76</core.forms.components.af.version>
 
to
 
<core.forms.components.version>3.0.104</core.forms.components.version>
  <core.forms.components.af.version>3.0.104</core.forms.components.af.version>

Avatar

Level 1

above screen shot is our main project bundle 
below core bundle is no longer installed after removing given embeds in our project
AEM Forms Core Components - AF Core Bundlecom.adobe.aem.core-forms-components-af-core 

Avatar

Employee

Is the issue resolved now?

Avatar

Level 1

Not Yet 

SwathiSa6_0-1745906538114.png

 

getting these errors

 

Avatar

Employee

Did you modify the import-package for this bundle? What is current import-package of bundle? Since this bundle is dependent on <artifactId>core-forms-components-af-core</artifactId>, for 

com.adobe.cq.forms.core.components.models.form

You will need to get the version updated to 3.0.104, as that dictates the dependency of bundle. 

Avatar

Level 1

SwathiSa6_0-1745909694893.png

still getting the same error

SwathiSa6_1-1745909895934.png

 

Avatar

Employee

@SwathiSa6  If we have changed the import-package in configuration for bnd-maven-plugin, how come this bundle is still importing older version? Can you clean the target in the project manually and re-build the bundle, because it should have updated the imports.

Avatar

Level 1

Hi @Sakshi5 

changes made
1.)

SwathiSa6_0-1745919167353.png
2.)

SwathiSa6_1-1745919230374.png

3.)

SwathiSa6_2-1745919277936.png

4.) i  deleted target folder in core then deployed


Final Output

SwathiSa6_3-1745919435478.png

 



Avatar

Employee

And can you check that if only one version, that is, 3.0.104 version is there for both these bundles:
AEM Forms Core Components - AF Core Bundle com.adobe.aem.core-forms-components-af-core
AEM Forms Core Components - Core Bundle com.adobe.aem.core-forms-components-core

and these bundles are also active

Avatar

Level 1

yes, we have only one version that is 3.0.104 installed.