Finally I was able to get an offline karaf4 build working. BIG Thanks to the blog entry http://www.javajirawat.com/2015/09/how-to-build-offline-karaf-server.html
The github repository there contains karaf pom.xml which are very good ref to build an offline Karaf3 and Karaf4 server. It was recognized that the behavior of "ignoreDependencyFlag" was different in Karaf3 and Karaf4, also the "prepare-package" section did the trick to supplement any missing dependencies. -- View this message in context: http://karaf.922171.n3.nabble.com/Karaf-4-0-1-Standard-feature-as-boot-feature-for-custom-distribution-tp4042884p4042976.html Sent from the Karaf - User mailing list archive at Nabble.com.
