KARAF-2494 Fixing some bugs in artifact resolution

git-svn-id: https://svn.apache.org/repos/asf/karaf/trunk@1528484 13f79535-47bb-0310-9956-ffa450edef68