...
To use this simplified approach, you just need to run some commands in a terminal (Mac/Linux) or PowerShell (Windows).
Info |
---|
NOTE: "$PWD" ${PWD} is for Mac, Linux and Windows PowerShell. For Windows Command Prompt, replace "$PWD" ${PWD} with "%cd%". |
Warning |
---|
English |
---|
This approach is suitable to quickly get started. For long-term development, you should set up a proper Java development environment as described in Build Source Code on Windows | o |
Generate a Plugin
1. Run the following command to generate a plugin project (adjust the groupId and artifactId values as required)
Code Block |
---|
|
docker run -it --rm -v "$PWD"${PWD}:/usr/src/mymaven -w /usr/src/mymaven jogetworkflow/docker-maven-joget:7.0-SNAPSHOT mvn archetype:generate -DarchetypeGroupId="org.joget" -DarchetypeArtifactId="wflow-plugin-archetype" -DarchetypeVersion="7.0-SNAPSHOT" -DgroupId="org.joget.plugin" -DartifactId="custom-plugin" |
Build a Plugin
1. Navigate to the plugin source code directory/folder containing the pom.xml file
...
Code Block |
---|
|
docker run -it --rm -v "$PWD"${PWD}:/root/.m2 -v "$PWD"${PWD}:/usr/src/mymaven -w /usr/src/mymaven jogetworkflow/docker-maven-joget:7.0-SNAPSHOT mvn clean install |