Hi All,
Can anybody tell me how to install a package in crx/packmgr programatically.
Hower i am able to create,build,upload programatically.
I am using org.apache.jackrabbit.vault API(JcrPackageManager (Apache Jackrabbit FileVault 3.1.42 API) ) for creating, building and uploading.
The following is the code for uploading the package,
PackagingService.getPackageManager(session).upload(initialFile, true, true, "afro") ; |
--
Regards,
Pavan Bukka
Solved! Go to Solution.
Views
Replies
Total Likes
The packagemanager java API offers exactly the same feature set as the HTTP API. On top it allows proper error/exception handling :-)
Jörg
Views
Replies
Total Likes
Using curl:
curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/my_packages/samplepackage.zip?cmd=insta...
Original URL:
http://www.aemcq5tutorials.com/tutorials/adobe-cq5-aem-curl-commands/#AEM Package Management cURL commands
Views
Replies
Total Likes
For those reading this thread and wanting to know how to use the Package Manager API -- see Adobe Experience Manager Help | Creating Adobe Experience Manager Packages using the JcrPackageManag... .
To install package programatically you can still use JcrPackageManager JcrPackageManager (Apache Jackrabbit FileVault 3.1.42 API)
extract(Archive archive, ImportOptions options, boolean replace)
but i think you have some limitations using this API. pls look into documentation deeper
this Reference might help you in implementation:
Thanks
~Manoj
Views
Replies
Total Likes
The packagemanager java API offers exactly the same feature set as the HTTP API. On top it allows proper error/exception handling :-)
Jörg
Views
Replies
Total Likes
Example implementation of Package Manager API :- Adobe Experience Manager Help | Creating Adobe Experience Manager Packages using the JcrPackageManag...
Views
Replies
Total Likes