Bug 1263358
Summary: | KieBuilder does not read pom.xml from KieFileSystem if setPomModel() is used before buildAll() | ||
---|---|---|---|
Product: | [Retired] JBoss BPMS Platform 6 | Reporter: | Jeremy Lindop <jlindop> |
Component: | Business Central | Assignee: | manstis |
Status: | CLOSED EOL | QA Contact: | Tomas David <tdavid> |
Severity: | unspecified | Docs Contact: | |
Priority: | medium | ||
Version: | 6.2.0 | CC: | kverlaen, manstis |
Target Milestone: | ER4 | ||
Target Release: | 6.2.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-03-27 19:05:32 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Jeremy Lindop
2015-09-15 15:57:32 UTC
This issue is caused by the introduction of LRUPomModelCache in Builder. Builder's use of LRUPomModelCache makes a call to KieBuilderImpl.setPomModel() before a call to KieBuilderImpl.getPomModel(). The latter sets an instance variable, pomXml, in KieBuilderImpl to the pom.xml written to KieBuilder's "source" KieFileSystem. When a call to KieBuilder.buildAll() is made it checks if pomXml is not null and writes the pom.xml (and pom.properties) to the KieModule's "target" FileSystem (that forms the KieModule/KJAR). In this scenario pomXml remains null. See https://github.com/droolsjbpm/drools/commit/575b48a63e55b5216bf78ecf48621ac8f9f80729 Verified on BRMS 6.2.0.ER4. |