[AS7-6727] Modular build for Karaf broken

https://issues.jboss.org/browse/AS7-6727