Delete Modules from Liferay 7.0 /osgi/modules Folder EmptyDelete Modules from Liferay 7.0 /osgi/modules Folder Emptyhttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=862701812024-03-28T17:22:03Z2024-03-28T17:22:03ZRE: Delete Modules from Liferay 7.0 /osgi/modules Folder EmptyDavid H Nebingerhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=902466822017-06-03T13:58:08Z2017-06-03T13:58:08Z<strike>Overriding is different from removing. To override, you drop your jar (without version number details) in the osgi/marketplace/override folder. It will use your module instead of the original in the lpkg file.</strike><br /><br />Check out the answer I posted in your thread, that is much more in line with what you are trying to do.<br /><br /><br /><br /><br /><br /><br /><br /><a href="https://www.eventbrite.com/e/liferay-symposium-north-america-2017-registration-28398031276">Come meet me at the 2017 LSNA!</a>David H Nebinger2017-06-03T13:58:08ZRE: Delete Modules from Liferay 7.0 /osgi/modules Folder EmptyMuhammad Tahahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=902390882017-06-03T08:30:47Z2017-06-03T08:30:47Z<blockquote>I would remove the lpkg file from osgi/marketplace, expand it and put the bundles you want to keep in osgi/modules.</blockquote><br /><br />Hi David, <br /><br />I deleted google SSO module jar file com.liferay.portal.security.sso.google-2.0.2 from osgi\marketplace\Liferay CE Foundation.lpkg\ .. deleted from osgi\state\org.eclipse.osgi and also deleted tomcat-8.0.32\temp... but every time I restart server it gets created with new name in osgi\state\org.eclipse.osgi folder... <br /><br />I want to remove the existing module and customize it.. can you please suggest here.. Thank you..<br /><br />https://web.liferay.com/community/forums/-/message_boards/message/90096162Muhammad Taha2017-06-03T08:30:47ZRE: Delete Modules from Liferay 7.0 /osgi/modules Folder EmptyDavid H Nebingerhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=863180622017-02-21T17:28:51Z2017-02-21T17:28:51Z<html><head></head><body><div class="quote-title">Paul Allain:</div><blockquote>So if I want to remove a select number of jars from the <pre><code>Liferay CE Collaboration.lpkg</code></pre> how would I go about doing that? Is it a case of removing the jars from the .lpkg file and zipping it again? Or is there any tooling to help with that?</blockquote><br><br>I would remove the lpkg file from osgi/marketplace, expand it and put the bundles you want to keep in osgi/modules.<br><br><blockquote>And what about using <strong>Felix Gogo shell</strong> to manage the packages? Is this considered a recommended approach? And would removing a bundle that way persist over a server restart?</blockquote><br><br>Gogo only offers a temporary solution, the bundles are not actually permanently removed so as soon as you restart they come back.<br><br>However this is a good way to test your environ w/o causing serious long-term problems. Stop the modules and make sure the portal still works. Whittle them down until your happy w/ the result.<br><br><blockquote>There's also the <strong>/osgi/marketplace/override</strong> folder, is it possible to override the entire .lpkg with one that has fewer (removed) jars?</blockquote><br><br>No, this is only for providing an updated version of a module, it will not help you with removals.</body></html>David H Nebinger2017-02-21T17:28:51ZRE: Delete Modules from Liferay 7.0 /osgi/modules Folder EmptyPaul Allainhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=863120862017-02-21T15:15:56Z2017-02-21T15:15:56Z<html><head></head><body><div class="quote-title">David H Nebinger:</div><blockquote>perhaps you could take out the whole lpkg file then, but I'm not sure what your expected outcome is.</blockquote><br>Tried removing the entire <pre><code>Liferay CE Collaboration.lpkg</code></pre> but the portal wouldn't even start, if I remember correctly, something to do with <pre><code>com.liferay.directory.web-1.0.6.jar</code></pre> <br><br>So if I want to remove a select number of jars from the <pre><code>Liferay CE Collaboration.lpkg</code></pre> how would I go about doing that? Is it a case of removing the jars from the .lpkg file and zipping it again? Or is there any tooling to help with that?<br><br>And what about using <strong>Felix Gogo shell</strong> to manage the packages? Is this considered a recommended approach? And would removing a bundle that way persist over a server restart?<br><br>There's also the <strong>/osgi/marketplace/override</strong> folder, is it possible to override the entire .lpkg with one that has fewer (removed) jars?<br><br>Thanks</body></html>Paul Allain2017-02-21T15:15:56ZRE: Delete Modules from Liferay 7.0 /osgi/modules Folder EmptyDavid H Nebingerhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=863099422017-02-21T14:45:58Z2017-02-21T14:45:58Zperhaps you could take out the whole lpkg file then, but I'm not sure what your expected outcome is.<br /><br />The modules themselves get loaded into the OSGi runtime, so it's going to be a reduction of used memory, but only slight.<br /><br />But otherwise these are not going to affect performance or render times or much of anything else if they are not being used in the site.<br /><br />If you're facing some sort of performance issue, there's a slew of other things you want to look at before removing modules...David H Nebinger2017-02-21T14:45:58ZRE: Delete Modules from Liferay 7.0 /osgi/modules Folder EmptyPaul Allainhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=862961142017-02-21T09:46:05Z2017-02-21T09:46:05Z<div class="quote-title">David H Nebinger:</div><blockquote>If you could post what you'd like to eliminate, I can tell you if it is feasible to drop...</blockquote><br />For example I would like to remove the collaboration portlets (Wiki, Blog, Forms, Bookmarks, Message Boards, Calendar, etc...), will that improve performance and make the portal less demanding on the server?Paul Allain2017-02-21T09:46:05ZRE: Delete Modules from Liferay 7.0 /osgi/modules Folder EmptyDavid H Nebingerhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=862799782017-02-21T02:06:19Z2017-02-21T02:06:19ZAll Liferay modules are bundled in the osgi/marketplace .lpkg files. You'd have to bust them open, toss the ones you don't want and keep the ones you do.<br /><br />Note however that this is not an easy task. There tends to be lots of interdependencies between the core features. For example, workflow is used by a lot so you can't toss workflow. Likewise for assets, etc.<br /><br />Sure you can ditch the samples, but that's not going to save you all that much.<br /><br />If you could post what you'd like to eliminate, I can tell you if it is feasible to drop...David H Nebinger2017-02-21T02:06:19ZDelete Modules from Liferay 7.0 /osgi/modules Folder EmptyPaul Allainhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=862701802017-02-20T19:52:06Z2017-02-20T19:52:06ZHello,<br /><br />There is a little bit of information out there regarding making a Liferay install lightweight by deleting unused modules from an installation. This is one of the compelling reasons to modularising Liferay by adopting OSGi.<br />