Hi, We have existing AEM application. We would like to build connectivity to adobe commerce(magento). I prefer solution without create new project using arche type.
Do I need venia project?
I installed commerce add-on & configured graphql URL. Now I need components to retrieve it. adobe core cif components is not building and getting error(attached).
Please let us know the steps if my approach is incorrect. Happy to start from scratch.
Steps followed
1. install commerce add-on
2. configure graphql URL in configMgr
3. synch data in AEM commerce
your help is appreciated.
Thanks
Venkat
Views
Replies
Total Likes
SNAPSHOT versions cannot be used because they are not stored in the Maven remote archive. Available versions for the package can be found here (latest is 2.27.0):
https://mvnrepository.com/artifact/com.adobe.commerce.cif/core-cif-components-core
Update your pom from
<dependency>
<groupId>com.adobe.commerce.cif</groupId>
<artifactId>core-cif-components-core</artifactId>
<version>2.16.3-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
to
<dependency>
<groupId>com.adobe.commerce.cif</groupId>
<artifactId>core-cif-components-core</artifactId>
<version>2.16.2</version>
<scope>provided</scope>
</dependency>
after adding above, I don't see cif components in my crx/de. Do I need to add core-cif-components-core-all?
I want to be able to use components directly on the page.
Views
Replies
Total Likes
Hi @Venkat3062258106jv ,
You need to embed the CIF packages in your all pom.xml files. I recommend generating an AEM with CIF project using the latest archetype. Compare your pom.xml with this new project to identify any missing dependencies.
<embedded>
<groupId>com.adobe.commerce.cif</groupId>
<artifactId>core-cif-components-apps</artifactId>
<type>zip</type>
<target>/apps/vendor-packages/application/install</target>
</embedded>
<embedded>
<groupId>com.adobe.commerce.cif</groupId>
<artifactId>core-cif-components-config</artifactId>
<type>zip</type>
<target>/apps/vendor-packages/application/install</target>
</embedded>
<embedded>
<groupId>com.adobe.commerce.cif</groupId>
<artifactId>core-cif-components-core</artifactId>
<target>/apps/vendor-packages/application/install</target>
</embedded>
<embedded>
<groupId>com.adobe.commerce.cif</groupId>
<artifactId>magento-graphql</artifactId>
<target>/apps/vendor-packages/application/install</target>
</embedded>
Views
Replies
Total Likes
Hi @Venkat3062258106jv ,
The error in your image shows:
Could not find artifact com.adobe.commerce.cif:core-cif-components-parent:pom:2.16.3-SNAPSHOT
This is because SNAPSHOT versions are not available in public Maven repositories.
Try below solution:
1. Update to a Stable CIF Version
Avoid SNAPSHOT versions.
Update your pom.xml dependency:
<dependency>
<groupId>com.adobe.commerce.cif</groupId>
<artifactId>core-cif-components-core</artifactId>
<version>2.27.0</version>
</dependency>
Check here for latest versions:
https://mvnrepository.com/artifact/com.adobe.commerce.cif/core-cif-components-core
2. Embed the Required CIF Packages
In your all/pom.xml, add the following <embedded> artifacts under the content-package-maven-plugin section:
<embeddeds>
<embedded>
<groupId>com.adobe.commerce.cif</groupId>
<artifactId>core-cif-components-apps</artifactId>
<type>zip</type>
<target>/apps/vendor-packages/application/install</target>
</embedded>
<embedded>
<groupId>com.adobe.commerce.cif</groupId>
<artifactId>core-cif-components-config</artifactId>
<type>zip</type>
<target>/apps/vendor-packages/application/install</target>
</embedded>
<embedded>
<groupId>com.adobe.commerce.cif</groupId>
<artifactId>core-cif-components-core</artifactId>
<target>/apps/vendor-packages/application/install</target>
</embedded>
<embedded>
<groupId>com.adobe.commerce.cif</groupId>
<artifactId>magento-graphql</artifactId>
<target>/apps/vendor-packages/application/install</target>
</embedded>
</embeddeds>
This ensures the CIF components, GraphQL layer, and config are installed into AEM at runtime.
3. Install CIF Components into AEM
After updating the pom.xml, do:
mvn clean install -PautoInstallPackage
This installs everything into AEM (/apps/vendor-packages/...), including CIF components.
4. Verify GraphQL Configuration
Go to AEM:
/system/console/configMgr/com.adobe.cq.commerce.graphql.client.impl.GraphqlClientImpl
Ensure:
- Magento GraphQL endpoint is correct (e.g., https://your-magento-site.com/graphql)
- Identifier matches what’s used in CIF components (e.g., default)
5. Use CIF Components in Your Project
Once the CIF packages are installed:
- Go to CRXDE: /apps/core/cif/components/...
- Copy the components you want (e.g., product teaser, category list) into your project's component folder.
- Or directly reference them in your page components/templates.
6. Recommended AEM Configuration
If using AEMaaCS or 6.5+:
- Ensure AEM Commerce Add-on is installed and enabled.
- GraphQL client config is active.
- CIF core components version matches the add-on compatibility matrix.
Regards,
Amit
Views
Replies
Total Likes
Views
Likes
Replies