Expand my Community achievements bar.

SOLVED

How to import this component "com.adobe.cq.forms.core.components.models.aemform"

Avatar

Level 4

For my case i need to extend the AEMForm core component which is under "com.adobe.cq.forms.core.components.models.aemform" this package. I added the following dependency. Still not able to resolve the import. And i tried the package for "com.adobe.cq.forms.core" this but didn't find any. Any advice or solution. Thanks in advance.

aravindS_0-1687660865321.png

 

1 Accepted Solution

Avatar

Correct answer by
Level 4

We need to add the following dependency in repo pom. 

<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>aem-forms-sdk-api</artifactId>
<version>2023.06.19.00-230400</version>
</dependency>

and check the includeFormsenrollment=y in archetype.properties file.

Thanks

View solution in original post

3 Replies

Avatar

Community Advisor

@aravindS 

 

Can try to add below 

<dependency>
 <groupId>com.adobe.cq</groupId>
 <artifactId>core.wcm.components.core</artifactId>
 <scope>provided</scope>
 </dependency>

 

and what is the version you added .

If needed you can have a look on the below.

https://github.com/adobe/aem-core-forms-components/blob/master/bundles/core/pom.xml

 

 

Thanks,
Siva

Avatar

Level 4

Not working as expected, still getting the error

aravindS_0-1687963464403.png

 

Avatar

Correct answer by
Level 4

We need to add the following dependency in repo pom. 

<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>aem-forms-sdk-api</artifactId>
<version>2023.06.19.00-230400</version>
</dependency>

and check the includeFormsenrollment=y in archetype.properties file.

Thanks