What is a p2 repository?

拜拜、爱过 提交于 2019-12-04 04:04:10

P2 repositories are very common in the eclipse ecosystem. They combine the artifacts (bundles), the meta data and can also contain eclipse features.

P2 repositories are generally completely independent of maven repositories and nexus. Nexus has some support for p2 features which is probably the connection you have with it.

Another way of providing deployments in OSGi is using Apache Karaf features. These list the bundles to install as urls to each bundle. Such a url can also be a mvn url with maven coordinates. In this case the features as well as the bundles are located in maven.

A third way is to use OSGi bundle repositories. This is an OSGi standard and is used in bndtools. They just host the index of the meta data and a url to the bundle. It can be integrated with maven.

Unfortunately these ways of deployment are mutually exclusive. So you best use the one that is the most prominent for the platform you develop on. So for example if almost all of your dependencies are from eclipse projects then p2 is natural.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!