Install a package in package manger programatically | Community
Skip to main content
pavanb46130733
November 14, 2017
Solved

Install a package in package manger programatically

  • November 14, 2017
  • 5 replies
  • 3730 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by joerghoh

The packagemanager java API offers exactly the same feature set as the HTTP API. On top it allows proper error/exception handling :-)

Jörg

5 replies

November 14, 2017
smacdonald2008
November 14, 2017

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 JcrPackageManager.API .

manoj_devapath
November 14, 2017

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:

vault-core/src/main/java/org/apache/jackrabbit/vault/packaging/impl/JcrPackageImpl.java - jackrabbit-filevault - Git at …

Thanks

~Manoj

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
November 14, 2017

The packagemanager java API offers exactly the same feature set as the HTTP API. On top it allows proper error/exception handling :-)

Jörg

kautuk_sahni
Community Manager
Community Manager
November 15, 2017