This content has been marked as final.
Show 2 replies
-
1. Re: osgi:install and mvn url
gertv Oct 12, 2010 7:10 AM (in response to darkcloudbird)L.S.,
It's possible to just use the http: url for your artifact directly in the osgi:install and osgi:update commands:
osgi:install -s http://artifactory.server/path/to/artifact.jar
However, in the long run, it's better to configure the mvn: URL handler to access your internal Artifactory server. In order to do that, you have to add the http: url for your Artifactory server to org.ops4j.pax.url.mvn.repositories property in the etc/org.ops4j.pax.url.mvn.cfg configuration file.
After that, you can install your bundle by using the mvn: url and the underlying handler will go and download it from your Artifactory server:
osgi:install -s mvn:<group id>:<artifact id>:<version>
Regards,
Gert
-
2. Re: osgi:install and mvn url
darkcloudbird Oct 12, 2010 8:36 AM (in response to gertv)Hi Thank you so much for the reply. The last part you mentioned is what I needed.
I would also like to see some examples in action. Thanks