this.dependencies = list;
return this;
}
private void init() {
KieFactory kf = KieFactory.Factory.get();
messages = new Messages();
// if pomXML is null it will generate a default, using default GAV
// if pomXml is invalid, it assign pomModel to null
buildPomModel();
// if kModuleModelXML is null it will generate a default kModule, with a default kbase name
// if kModuleModelXML is invalid, it will kModule to null
buildKieModuleModel();
if ( pomModel != null ) {
// creates GAV from build pom
// If the pom was generated, it will be the same as teh default GAV
gav = kf.newGav( pomModel.getGroupId(),
pomModel.getArtifactId(),
pomModel.getVersion() );
}
}