Создать Java проект на основе Maven архетипа 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).

Консольная команда для создания Java-проекта на основе архетипа kie-drools-archetype:

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.64.0.Final"   -DinteractiveMode=false 

Обязательные параметры для создания java проекта:

droolsVersion
validationRegex: нет
slf4jVersion
validationRegex: нет
junitVersion
validationRegex: нет
pomEclipseCompatible
validationRegex: нет
exampleWithCEP
validationRegex: нет

Подробная информация об архетипе kie-drools-archetype

Группа

Группа

org.kie
Идентификатор

Идентификатор

kie-drools-archetype
Версия

Версия

7.64.0.Final
Тип

Тип

maven-archetype

Как подключить последнюю версию

mvn archetype:generate -DgroupId=<com.mycompany.app> -DartifactId=<my-app>  -DarchetypeGroupId=org.kie -DarchetypeArtifactId=kie-drools-archetype -DarchetypeVersion=7.64.0.Final -DinteractiveMode=false