Merge pull request #2 from wso2-dev/master

fixing build failure on carbon-registry
fixing the problem which doesn't generate OSGI-INF inside the jar
fixing dependency and moving to root pom
fixing build issue
fixing maven build warnings
fixing build warnings
fixing build warnings
revert some build warning fixes.
fix stub generate issue in a clean repo.
fixing REGISTRY-2155
Applying fix for REGISTRY-2102
Merge branch 'master' of https://github.com/wso2/carbon-registry
Applying fix for REGISTRY-2116
resolving conflict
Merge branch 'wso2-master'