ReleaseId releaseId = kieServices.newReleaseId( "org.acme", "myartifact", "1.0" );

  •  

    KieContainer kieContainer = kieServices.newKieContainer( releaseId );

  • Maven的KIE插件可确保工件资源经过验证和预编译,建议始终使用它。要使用该插件,只需将其添加到Maven pom.xml的构建部分,然后使用打包将其激活kjar