Create Java project with Maven archetype kie-drools-archetype
A basic kjar template with Drools rule example, JUnit 4 and logging binding.
Use property droolsVersion to specify which version of Drools to use in generated kjar.
Use property exampleWithCEP for a CEP rule example and related JUnit test case.
Use property pomEclipseCompatible for pom-plug-in settings for Eclipse (will setup org.eclipse.m2e lifecycle-mapping plug-in).
Create a Java Project by archetype kie-drools-archetype with Command Line:
mvn archetype:generate -DgroupId="com.mycompany.app" -DartifactId="my-app-id" -DdroolsVersion="My-droolsVersion" -Dslf4jVersion="My-slf4jVersion" -DjunitVersion="My-junitVersion" -DpomEclipseCompatible="My-pomEclipseCompatible" -DexampleWithCEP="My-exampleWithCEP" -DarchetypeGroupId="org.kie" -DarchetypeArtifactId="kie-drools-archetype" -DarchetypeVersion="7.33.0.Final" -DinteractiveMode=false
Required parameters for generate java project:
- droolsVersion
-
validationRegex: none
- slf4jVersion
-
validationRegex: none
- junitVersion
-
validationRegex: none
- pomEclipseCompatible
-
validationRegex: none
- exampleWithCEP
-
validationRegex: none
Details about maven archetype kie-drools-archetype
GroupId |
GroupIdorg.kie |
ArtifactId |
ArtifactIdkie-drools-archetype |
Version |
Version7.33.0.Final |
Type |
Typemaven-archetype |
How to add to project