开发者

Deploy a bundlet and get the dependent bundles from spring EBR

开发者 https://www.devze.com 2023-03-21 08:23 出处:网络
I have a WAR file that was built using grails framework and OSGi plugin. When I try to deploy it in Eclipse Virgo it fails because the related dependencies are not yet deployed.

I have a WAR file that was built using grails framework and OSGi plugin. When I try to deploy it in Eclipse Virgo it fails because the related dependencies are not yet deployed. Is there a way to tell Virgo to fetch the dependency bundles from spr开发者_运维知识库ing EBR repository for example ?


You can configure Virgo to use a remote repository to provide the missing dependencies automatically. However, there is an issue in using the SpringSource EBR as a remote repository because Spring framework, which is deployed during Virgo startup, has a very large number of optional/transitive dependencies. When these are pulled in from the EBR they include normally exclusive alternatives and the net effect is that Virgo startup fails.

So the recommendation is either to put the dependencies you want locally in repository/usr or, if you need a remote repository, to set up your own Virgo instance to act as a repository server and put the dependencies in the repository hosted by the repository server.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号