[BZ-1063255] store generated classes in kproject jar when building it with the kie-maven-plugin
(cherry picked from commit c572148c16d1000f8948c7183e1d5daf29d349e3)