P2 Director Install of New Plugin

This is a continuation from How to migrate your module to iDempiere. The method used here is the Headless P2 Director installation which should automatically handle install, uninstall of the new features.
The plugin project is put into a feature project and then exported. (Screens below).
Above at the Plugins tab, the plugin module is added.
The dependencies are listed by clicking on the Compute button.
Back to the Main Overview tab, you click on the Export Wizard link on the bottom right. This carries you to the screens below.
A local directory is used for testing this.
Ensure that Generate Metadata Respository is checked. It produced this in my repository (Applications/POSIntegration):
Then at the local adempiere-client instance a new InstallPOS.sh is used:
This gives a positive result:
And a List Installed Roots check produced:
However the plugin or feature does not appear in the adempiere-client instance. Investigations ongoing..
For uninstalling, here is the UnInstall.sh
The plugin project is put into a feature project and then exported. (Screens below).
Above at the Plugins tab, the plugin module is added.
The dependencies are listed by clicking on the Compute button.
Back to the Main Overview tab, you click on the Export Wizard link on the bottom right. This carries you to the screens below.
A local directory is used for testing this.
Ensure that Generate Metadata Respository is checked. It produced this in my repository (Applications/POSIntegration):
Then at the local adempiere-client instance a new InstallPOS.sh is used:
- Code: Select all
#!/bin/sh
#
cd $(dirname "${0}")
DESTINATION=$(pwd)
java -Dosgi.noShutdown=false -Dosgi.compatibility.bootdelegation=true -Dosgi.install.area=director -jar plugins/org.eclipse.osgi_3.7.*.jar -application org.eclipse.equinox.p2.director -consoleLog -profile DefaultProfile -profileProperties org.eclipse.update.install.features=true -repository $1 -i POSIntegration
This gives a positive result:
- Code: Select all
sh-3.2# ./installPOS.sh file:/Applications/POSIntegration/
!SESSION 2012-12-11 19:15:24.229 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_09
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments: -application org.eclipse.equinox.p2.director -profile DefaultProfile -profileProperties org.eclipse.update.install.features=true -repository file:/Applications/POSIntegration/ -i POSIntegration
Command-line arguments: -application org.eclipse.equinox.p2.director -consoleLog -profile DefaultProfile -profileProperties org.eclipse.update.install.features=true -repository file:/Applications/POSIntegration/ -i POSIntegration
!ENTRY org.eclipse.core.net 1 0 2012-12-11 19:15:24.903
!MESSAGE System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences
Installing POSIntegration 1.0.0.201212111854.
Operation completed in 1904 ms.
And a List Installed Roots check produced:
- Code: Select all
<i_3.7.*.jar -application org.eclipse.equinox.p2.director -consoleLog -lir !SESSION 2012-12-12 04:34:36.723 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_09
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments: -application org.eclipse.equinox.p2.director -lir
Command-line arguments: -application org.eclipse.equinox.p2.director -consoleLog -lir
!ENTRY org.eclipse.core.net 1 0 2012-12-12 04:34:40.766
!MESSAGE System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences
POSIntegration/1.0.0.201212111854
org.adempiere.ui.swing.product/1.0.0
org.idempiere.eclipse.platform.feature.group/1.0.0.v20121203-2305
Operation completed in 3846 ms.
However the plugin or feature does not appear in the adempiere-client instance. Investigations ongoing..
For uninstalling, here is the UnInstall.sh
- Code: Select all
#!/bin/sh
#
cd $(dirname "${0}")
DESTINATION=$(pwd)
java -Dosgi.noShutdown=false -Dosgi.compatibility.bootdelegation=true -Dosgi.install.area=director -jar plugins/org.eclipse.osgi_3.7.*.jar -application org.eclipse.equinox.p2.director -consoleLog -profile DefaultProfile -profileProperties org.eclipse.update.install.features=true -destination $DESTINATION -repository $1 -u POSIntegration