Archetype used to build new KIE KJAR which can be imported into the Workbench.
This Archetype is capable of generating both a "base" and a "case" kjar project. This is similar to when creating a new project inside the KIE Workbench where you can specify one of these two options when creating a new project.
- Build the kie-kjar-archetype module (mvn clean install)
- Change to directory of your choice where you want to build the base kjar from this archetype.
- Create your new base kjar project from the archetype with:
mvn archetype:generate
-DarchetypeGroupId=org.kie
-DarchetypeArtifactId=kie-kjar-archetype
-DarchetypeVersion=8.13.0-SNAPSHOT
or use this one-liner
mvn archetype:generate -DarchetypeGroupId=org.kie -DarchetypeArtifactId=kie-kjar-archetype -DarchetypeVersion=8.13.0-SNAPSHOT
- Change the prompted values during the generation as needed (or leave the defaults)
- Compile and test your generated base kjar project with
mvn clean install
- build the kie-kjar-archetype module (mvn clean install)
- Change to directory of your choice where you want to build the case kjar from this archetype.
- Create your new case kjar project from the archetype with:
mvn archetype:generate
-DarchetypeGroupId=org.kie
-DarchetypeArtifactId=kie-kjar-archetype
-DarchetypeVersion=8.13.0-SNAPSHOT
-DcaseProject=true
or use this one-liner
mvn archetype:generate -DarchetypeGroupId=org.kie -DarchetypeArtifactId=kie-kjar-archetype -DarchetypeVersion=8.13.0-SNAPSHOT -DcaseProject=true
- Change the prompted values during the generation as needed (or leave the defaults)
- Compile and test your generated case kjar project with
mvn clean install
You can define a specific KIE Runtime version to be used with the following property:
-DkieVersion=YOUR_KIE_VERSION
After generating your project you can import it into the KIE Workbench In your project directory:
- Initialize git for your project
git init
- Add all your project files to git
git add .
- Commit all your project files to git
git commit -m "YOUR COMMIT MESSAGE HERE"
In your KIE Workbech Instance
- In the Space View select "Import Project"
- Type the path to your git kjar project, for example
file://myuser/mypath/to/my/new/project/projectname
Workbench should now import your created kjar project and you can start working on adding new assets to it etc.
This archetype requires maven-archetype-plugin version 3.0.1 or above. In case you run into issues with the post generation scripts not being executed during archetype generation run it once with force update maven option
-U
This will make sure you up the 3.0.1 version of maven-archetype-plugin and get it installed in your local maven repo.