Manage Plugin
From iDempiere en
Overview
I has customize plugins (about 30 plugins) and need to hot update sometime
So need to use command line (script) to do it
how to deploy customize plugins to idempiere
Use server.product
- Add plugins to a feature and add feature to contents tab or
- Choose a feature already on contents tab and add plugin to that feature or
- Add plugins to a feature and include feature on a feature already on contents tab
Install plugins when "package" product
- For buckminster period (before 7.1)
- For each plugin add a <dependency> inside <dependencies> on org.adempiere.server-feature/buckminster.cspex (see org.idempiere.fitrecorder for reference)
- For each plugin add a <attribute> inside <public name="bundle.jars"> on org.adempiere.server-feature/buckminster.cspex (see org.idempiere.fitrecorder for reference)
- Add <property key="plugins" value="${product.plugins}" /> inside <properties> on org.adempiere.server-feature/buckminster.cspex (same as <property key="features">)
- On org.adempiere.server-feature/buckminster_linux_gtk_x86_64.properties (same for window, mac...) add product.plugins=list of your plugins (reference product.features=)
- On org.adempiere.server-feature/product.ant append ",${plugins}" to value of '<property name="installableIUs"' become 'value="${iu},${features},${plugins}"'
- For maven period (7.1 to now)
- Append list of your plugin to properties <extra.ui.install> on file org.idempiere.parent/pom.xml
Other methods
- Use felix-file-install
- Manual call p2 as update-prd.sh without uninstall step (it's same as 'install plugins when "package" product')
- User web console (felix)
- Osgi console (by ssh, telnet,..)
Note about depenedency
By Use server.product can't use p2 or Osgi console to update customize plugins
How to update plugins on idempiere
How to choose method to manage
Dependency issue when do update (not yet test with felix-file-install but i guess get same issue)
I need to use script to update plugins, so i use p2