Hi,

I just wanted to clarify how to set-up repositories in org.ops4j.pax.url.mvn.cfg

I have 3 machines. Machine A runs an instance of Karaf. Machine B contains my Apache Archiva instance from which I pull bundles. I develop the bundles on machine C.

I develop snapshot bundles on machine C and I push them to Archiva on machine B. I then install them in my Karaf instance (machine A) using the 'install mvn' command and have configured org.ops4j.pax.url.mvn.cfg to include the URL of the Apache Archiva of machine B. If it is the first time I have installed a snapshot bundle in the Karaf instance it retrieves it as expected from Archiva on machine B. However if I update the snapshot and push to archive, when I update the Karaf instance it does not refer to Archiva but uses the snapshot held in the local .m2 repository.

If I set org.ops4j.pax.url.mvn.defaultLocalRepoAsRemote=true then it appears to work as I require i.e. the latest snapshot is retrieved from Archiva on machine B. Is this the correct way to achieve what I want, i.e. always force Karaf to look at my remote repositories especially for snapshots and where does the local repository appear in the order of remotes if the above config. is set?

Thanks

jt


Reply via email to