A target platform is necessary to build a iDempiere plugin. This is a smart target platform. Current iDempiere Version 9
.
- Java 11, commands
java
andjavac
. - Maven 3.6.0
- Set
IDEMPIERE_REPOSITORY
env variable.
- Compile target platform:
./plugin-builder
You 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
debug
for debug mode example:
./plugin-builder debug /plugin-path-1 /plugin-path-2
Use .\plugin-builder.bat
for windows.
- Set the current hash commit as qualifier (just for linux)
commit
parameter (it'll need a $GIT_COMMIT env variable):
./plugin-builder commit
- Set build number as qualifier (just for linux, usually on jenkins)
build
parameter (it'll need a $BUILD_NUMBER env variable)::
./plugin-builder build
This script will generate automatically the files to compile any plugin:
./pom.xml
com.ingeint.template.p2.targetplatform/com.ingeint.template.p2.targetplatform.target
com.ingeint.template.p2.targetplatform/pom.xml
For more information about the plugin structure go here.