[英]Create a Web Application Bundle (WAB) for a OSGI container that does NOT contain jar of all dependencies with maven-bundle-plugin
I want to deploy a java webapp (with web.xml and everything), packaged in any way (war, jar, I do not care) on an OSGI container (like Karaf). 我想在OSGI容器(如Karaf)上部署一个java webapp(带有web.xml和所有东西),以任何方式打包(war,jar,我不在乎)。 There are two important constraints:
有两个重要的限制:
I succed in making the bundles and deploying them automatically with that plugin and the maven-sling-plugin. 我成功地制作了捆绑包并使用该插件和maven-sling-plugin自动部署它们。 What I miss is the correct configuration to package my bundle as a WAB , that I've been told being the right kind of packaging for this, and without dependencies.
我想念的是将我的软件包打包为WAB的正确配置,我被告知这是一种正确的包装,没有依赖性。
Do you absolutely need a web.xml? 你绝对需要一个web.xml吗? I've recently gone through and updated a lot of webapps packaged as wars to convert them into pure bundles.
我最近经历过并更新了许多打包为战争的webapp,将它们转换为纯粹的捆绑包。 Most of the information that you normally specify in a web.XML can also be specified in your manifest to be picked up by pax web (karaf's frontend to jetty).
您通常在web.XML中指定的大多数信息也可以在您的清单中指定,以便由pax web(karaf的前端到码头)获取。 Thus far I haven't run into a single war that couldn't be converted into a pure bundle (which would satisfy your constraints).
到目前为止,我还没有碰到一场无法转换成纯粹的战争(这将满足你的约束)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.