Skip to main content

Posts

Showing posts from March, 2017

Create ofbiz Component / Plugin

Plugins are standard OFBiz components that reside in the specialpurpose directory. Plugins can be added manually or fetched from a maven repository. The standard tasks for create new plugin is giving below. To Create a new plugin. The following project parameters are passed: - pluginId : mandatory - pluginResourceName : optional, default is the Capitalized value of pluginId - webappName : optional, default is the value of pluginId - basePermission : optional, default is the UPPERCASE value of pluginId Enter following command below to create component/plugin, ./gradlew createPlugin -PpluginId= myplugin or ./gradlew createPlugin -PpluginId= myplugin -PpluginResourceName= MyPlugin -PwebappName= mypluginweb -PbasePermission= MYPLUGIN` The above commands achieve the following: - create a new plugin in /specialpurpose/myplugin - add the plugin to /specialpurpose/component-load.xml Once the component is created, you should load its data (required to grant access rights to t