I commented out org.ops4j.pax.url.mvn.repositories in default profile and added org.ops4j.pax.url.mvn.settings=C:\Program Files\apache-maven-3.3.9\conf\settings.xml there. In setting.xml I have <localRepository>C:\m2</localRepository> - but still no effect - all artifacts are taken from $user_home/.m2/repository.
Please edit io.fabric8.maven.localRepository in default profile:
profile-edit --pid io.fabric8.maven/io.fabric8.maven.localRepository='/new/location' default
Thanks for your reply. I applied settings you adviced:http://storage3.static.itmages.com/i/16/0428/h_1461830213_9067654_b639053fda.png but still no effect - all artifacts are taken from $user_home/.m2/repository..
Do you try 'osgi:install mvn:group/artifact/version' or does it happen during agent provisioning?
Well - I have a custom bundle that exists in the $user_home/.m2/repository but does not in C:\m2. After new property set I just removed and added it again inside my profile. If property works then bundle should not be installed...
I debugged a bit and found out that org.ops4j.pax.url.mvn.localRepository in io.fabric8.agent.properties of default profile rocks - thanks a lot!
Great to hear Andrey!