Error downloading mvn:org.openhab.addons

If you recently got problems trying to install addons on openHAB see below:

Try running openhab-cli showlogs and observe similar errors:

Error downloading mvn:org.openhab.addons....

Use openhab-cli info to locate the userdata folder.
Sudo edit this file:
{userdata}/etc/org.ops4j.pax.url.mvn.cfg
For hestia-pi-ONE-v1.2-dev images:
sudo nano /var/lib/openhab2/etc/org.ops4j.pax.url.mvn.cfg

Change the entry org.ops4j.pax.url.mvn.repositories to

org.ops4j.pax.url.mvn.repositories= \
 https://openhab.jfrog.io/openhab/libs-release@id=openhab,\
 https://jcenter.bintray.com/@id=jcenter

No need to reboot. Just wait 5 minutes. In our case, installation requests were satisfied automatically without having to re-request them from PaperUI.

Reference:

Thank you for this. One thing I didn’t quite understand, however, is why the file gets overwritten by OpenHab (and the values reverted) a few minutes after I edited it. I was able to get my packages updated, so I guess it doesn’t matter, but I couldn’t figure out why it would do that (even when the service had not yet started when I modified my sources).