Skip to main content
Adobe Employee
Mar 27, 2025 3:44 PM UTC
Solved

com.adobe.acs.commons.ondeploy,version=[1.1,2) -- Cannot be resolved - AEM as Cloud

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:

<dependency>
        <groupId>com.adobe.acs</groupId>
        <artifactId>acs-aem-commons-bundle</artifactId>
        <version>4.5.0</version>
        <scope>provided</scope>
</dependency>

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!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Sandeep-LAccepted solution
Adobe Employee
Apr 4, 2025 4:05 PM UTC

@kautuk_sahni- After multiple discussions, the requirements were updated to exclude the 'on-deploy' scripts.
Consequently, these scripts were removed, leading to the bundle operating as expected!!

Thanks!

7 replies

Tethich
Community Advisor
Community Advisor
Mar 27, 2025 5:50 PM UTC

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

Translate
Sandeep-LAdobe EmployeeAuthor
Adobe Employee
Mar 28, 2025 9:27 AM UTC

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!!

 

Translate
AmitVishwakarma
Community Advisor
Community Advisor
Mar 27, 2025 5:58 PM UTC

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

Translate
Amit Vishwakarma - Adobe Commerce Champion 2025 | 17x Adobe certified | 6x Adobe SME
Sandeep-LAdobe EmployeeAuthor
Adobe Employee
Mar 28, 2025 9:30 AM UTC

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!

Translate
giuseppebaglio
Level 10
Mar 28, 2025 10:13 AM UTC

For AEM as a Cloud Service, alternatives to ACS AEM Commons On-Deploy Scripts include:

  1. 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.

  2. 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.

  3. Managed Control Process (MCP): The ACS Commons MCP can be extended to run bulk updates and other content management tasks.

 
Translate
kautuk_sahni
Level 9
Apr 1, 2025 11:59 AM UTC

@sandeep-l Did you find the suggestions helpful? Please let us know if you need more information. If a response worked, kindly mark it as correct for posterity; alternatively, if you found a solution yourself, we’d appreciate it if you could share it with the community. Thank you!

Translate
Kautuk Sahni
Sandeep-LAdobe EmployeeAuthorAccepted solution
Adobe Employee
Apr 4, 2025 4:05 PM UTC

@kautuk_sahni- After multiple discussions, the requirements were updated to exclude the 'on-deploy' scripts.
Consequently, these scripts were removed, leading to the bundle operating as expected!!

Thanks!

Translate