avoid possible exception when building jube karaf stuff

avoid possible exception when building jube karaf stuff