Is it possible to install a OSGi jar to Felix by keeping the jar as a part of the cq5 component and install it on build?
You cannot restrict an OSGi bundle so that only one CQ component can use it. If an OSGi bundle exports a java package, that will be visible from all java and scripting code.