Hello ALL!!
While Migrating AEM Assets from AEM6.5 to AEM as Cloud, facing the below issue...
Bundle is not getting resolved in /system/console/bundles
com.adobe.acs.commons.ondeploy,version=[1.1,2) -- Cannot be resolved
com.adobe.acs.commons.ondeploy.scripts,version=[1.1,2) -- Cannot be resolved
Current ACS version in main pom.xml:
Updated the ACS dependency to 6.11.0, but still the same...
If anyone faced the same or related issue, please post your suggestions..
Appreciated if any quick responses!
Thanks!
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi @Sandeep-L
Not sure exactly what is happening specifically on your project, but it seams that third party (in your case the ACS Commons) dependency is not getting embedded upon deployment. Maybe this article can help you:
- https://myaemlearnings.blogspot.com/2021/08/embedding-third-party-dependencyosgi.html
But also please be aware of the followings:
- OnDeploy scripts are not compatible with AEMaaCS: https://adobe-consulting-services.github.io/acs-aem-commons/features/on-deploy-scripts/index.html . Because I see that is not resolving the com.adobe.acs.commons.ondeploy package.
- Check the compatibility matrix if it helps: https://adobe-consulting-services.github.io/acs-aem-commons/pages/compatibility.html
Views
Replies
Total Likes
Hey @Tethich,
Yes, It is not compatible with AEM as CS.
Will need to look for alternative approach to proceed further.
Thanks for the Response!!
Views
Replies
Total Likes
Hi @Sandeep-L ,
1. Check ACS Commons Version
You mentioned updating to ACS Commons 6.11.0, which is correct for AEMaaCS. However, confirm that your entire project is aligned with supported versions.
Check the compatibility matrix here:
ACS Commons Compatibility
2. Verify On-Deploy Scripts Compatibility
On-Deploy scripts are not supported in AEM as a Cloud Service. You should remove any dependencies related to com.adobe.acs.commons.ondeploy from your project.
Refer to this official ACS Commons page:
3. Ensure Proper Dependency Inclusion
Modify your pom.xml to include ACS Commons properly:
<dependency>
<groupId>com.adobe.acs</groupId>
<artifactId>acs-aem-commons-bundle</artifactId>
<version>6.11.0</version>
<scope>provided</scope>
</dependency>
Ensure there are no old versions of ACS Commons still referenced in other modules.
4. Check Embedding in the Core Bundle
If the ACS Commons package is still not resolving, explicitly embed it in your core bundle:
Modify core/pom.xml:
<Embed-Dependency>
com.adobe.acs:acs-aem-commons-bundle;scope=compile|runtime
</Embed-Dependency>
Run:mvn clean install -PautoInstallSinglePackage
5. Verify Installation on AEM
Go to AEM Web Console (/system/console/bundles) and check if ACS Commons is installed and active.
If it appears as Installed but not Active, restart the bundle manually.
6. Rebuild and Deploy
Try a full rebuild: mvn clean install -DskipTests
If deploying via Cloud Manager, ensure no package conflicts.
Regards,
Amit
Views
Replies
Total Likes
Hey @AmitVishwakarma,
On-Deploy scripts are used in my project, So need to look for best alternative approach.
If any suggestions or ideas related to - Accepted!
Thanks for the info!
Views
Replies
Total Likes
For AEM as a Cloud Service, alternatives to ACS AEM Commons On-Deploy Scripts include:
Repoinit Scripts: These scripts can be used to establish nodes under /var or other necessary paths. They are executed during the repository initialization phase and can be tailored to specific run modes. This approach is recommended for setting up initial content structures that do not require replication.
Sling Pipes: Sling Pipes can be utilized for content processing and transformation tasks. They provide a flexible way to handle content updates and migrations, making them a suitable alternative.
Managed Control Process (MCP): The ACS Commons MCP can be extended to run bulk updates and other content management tasks.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies