A target platform is necessary to build a iDempiere plugin. This is a smart target platform. Current iDempiere Version 9.
- Java 11, commands
javaandjavac. - Maven 3.6.0
- Set
IDEMPIERE_REPOSITORYenv variable.
- Compile target platform:
./plugin-builderYou could create a file plugins.txt with all plugin's paths on newlines, example:
/plugin-path-1
/plugin-path-2
- Compiling target platform and plugins:
./plugin-builder /plugin-path-1 /plugin-path-2- Using parameter
debugfor debug mode example:
./plugin-builder debug /plugin-path-1 /plugin-path-2Use .\plugin-builder.bat for windows.
- Set the current hash commit as qualifier (just for linux)
commitparameter (it'll need a $GIT_COMMIT env variable):
./plugin-builder commit- Set build number as qualifier (just for linux, usually on jenkins)
buildparameter (it'll need a $BUILD_NUMBER env variable)::
./plugin-builder buildThis script will generate automatically the files to compile any plugin:
./pom.xmlcom.ingeint.template.p2.targetplatform/com.ingeint.template.p2.targetplatform.targetcom.ingeint.template.p2.targetplatform/pom.xml
For more information about the plugin structure go here.