Search code examples
sap-commerce-cloudcockpit

How to remove an extension from Hybris?


We have discontinued Print module from Hybris and we have stopped paying maintenance for Print module. Hence, we need to remove the Print references.

I believe just removing/commenting below entries from localextensions.xml will suffice. Is there anything else I need to look at?

<!-- ext-print -->
<extension name="print" />
<extension name="printcockpit" />
<extension name="printhmc" /> 

Solution

  • First of all you have to distinguish between 'modules' and 'extensions'.

    A 'module' is a set of extensions to provide some functionality to the hybris platform, for example the 'print module'.

    An 'extension' is one technical hybris project that provides some functionality for a module, so here the focus is on the technical architecture.

    If you want to remove (for example) the 'print module', I think you have to do the following steps:

    • Look for all dependencies between the extensions for the module
    • Remove them from the 'localextensions.xml'
    • Do an 'ant clean all' to remove the old generated files and create only the needed ones
    • Do an Update on the hybris system in the /hac to update the database to the current stand
    • Look in the /hac for the 'remove orphaned types', that will delete all models that are not used anymore

    So this I think are the default steps.