OSGI打安装包步骤(底包制作)

Posted dyh004

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了OSGI打安装包步骤(底包制作)相关的知识,希望对你有一定的参考价值。

 相关资源下载

equinox-SDK-LunaSR2  : https://pan.baidu.com/s/1xOzZZ3_VAuQJ3Zfp4W8Yyw 提取码: gjip 

gemini-web-3.0.4.RELEASE  :链接: https://pan.baidu.com/s/1A1RPOqCHbW-CcgFtR2dxCw 提取码: x1ab 

config.ini :https://pan.baidu.com/s/15JxHOHf0AyZaLKPJUkpeXA 提取码: bujz 

最终产品底包:链接: https://pan.baidu.com/s/15JxHOHf0AyZaLKPJUkpeXA 提取码: bujz 

1.1. 目录结构创建

1、新建KSZSAServer目录,作为产品包低包根目录;

2、在根目录下,新建configuration文件夹,作为osgi配置目录;

3、新建plugins目录,存放osgi相关依赖包;

4、把org.eclipse.osgi_3.10.2.v20150203-1939.jar放入根目录,osgi的启动入口;

技术图片

5、把the Equinox Console包,包内容见下图,放入plugins目录

技术图片

技术图片

技术图片

6、把gem-web相关的依赖包加入plugins目录

技术图片

技术图片

7、打war包,放入plugins目录下

如何打war包,参照https://www.cnblogs.com/dyh004/p/10642922.html相关章节

技术图片

 

8、把config.ini加入到configration目录下

config.ini下载地址:链接: https://pan.baidu.com/s/1Orlej7dXr6c_R5b_pWF8LA 提取码: z6eq 复制这段内容后打开百度网盘手机App,操作更方便哦

osgi.bundles=dep/com.springsource.javax.activation-1.1.1.jar, dep/javax.annotation-1.2.0.v201401042248.jar, dep/javax.ejb-3.1.1.v201204261316.jar, dep/javax.el-3.0.0.20170128.jar, dep/javax.mail-1.4.0.v201005080615.jar, dep/javax.persistence-2.1.0.v201304241213.jar, dep/javax.security.auth.message-1.1.0.20170128.jar, dep/javax.servlet-3.1.0.20170128.jar, dep/javax.servlet.jsp-2.3.0.20170128.jar, dep/javax.transaction-1.1.0.v201205091237.jar, dep/javax.websocket-1.1.0.20170128.jar, dep/javax.xml.rpc-1.1.0.v201005080400.jar, dep/javax.xml.soap-1.3.0.v201105210645.jar, dep/org.apache.catalina-8.5.11.jar, dep/org.apache.catalina.ha-8.5.11.jar, dep/org.apache.catalina.tribes-8.5.11.jar, dep/org.apache.coyote-8.5.11.jar, dep/org.apache.el-8.5.11.jar, dep/org.apache.jasper-8.5.11.jar, dep/org.apache.juli-8.5.11.jar, dep/org.apache.tomcat.api-8.5.11.jar, dep/org.apache.tomcat.jni-8.5.11.jar, dep/org.apache.tomcat.util-8.5.11.jar, dep/org.apache.tomcat.util.scan-8.5.11.jar, dep/org.apache.tomcat.websocket-8.5.11.jar, dep/org.eclipse.jdt.core.compiler.batch-3.11.0.v20150602-1242, dep/org.eclipse.virgo.util.common-3.6.3.RELEASE.jar, dep/org.eclipse.virgo.util.io-3.6.3.RELEASE.jar, dep/org.eclipse.virgo.util.math-3.6.3.RELEASE.jar, dep/org.eclipse.virgo.util.osgi-3.6.3.RELEASE.jar, dep/org.eclipse.virgo.util.osgi.manifest-3.6.3.RELEASE.jar, dep/org.eclipse.virgo.util.parser.manifest-3.6.3.RELEASE.jar, dep/org.slf4j.api-1.7.2.v20121108-1250.jar, dep/org.slf4j.nop-1.7.2.v201212060727.jar, [email protected], [email protected]rt, org.eclipse.gemini.web.jaspic.fragment-3.0.0.BUILD-20170129123428.jar, [email protected]tart, [email protected], [email protected], [email protected], [email protected]
eclipse.ignoreApp=true

修改config.ini内容,改路径、改依赖包的版本号,把war包添加到里面。修改后的内容如下

osgi.bundles=plugins/com.springsource.javax.activation-1.1.1.jar, plugins/javax.annotation-1.2.0.v201401042248.jar, plugins/javax.ejb-3.1.1.v201204261316.jar, plugins/javax.el-3.0.0.20180730.jar, plugins/javax.mail-1.4.0.v201005080615.jar, plugins/javax.persistence-2.1.0.v201304241213.jar, plugins/javax.security.auth.message-1.1.0.20180730.jar, plugins/javax.servlet-3.1.0.20180730.jar, plugins/javax.servlet.jsp-2.3.0.20180730.jar, plugins/javax.transaction-1.1.0.v201205091237.jar, plugins/javax.websocket-1.1.0.20180730.jar, plugins/javax.xml.rpc-1.1.0.v201005080400.jar, plugins/javax.xml.soap-1.3.0.v201105210645.jar, plugins/org.apache.catalina-8.5.35.jar, plugins/org.apache.catalina.ha-8.5.35.jar, plugins/org.apache.catalina.tribes-8.5.35.jar, plugins/org.apache.coyote-8.5.35.jar, plugins/org.apache.el-8.5.35.jar, plugins/org.apache.jasper-8.5.35.jar, plugins/org.apache.juli-8.5.35.jar, plugins/org.apache.tomcat.api-8.5.35.jar, plugins/org.apache.tomcat.jni-8.5.35.jar, plugins/org.apache.tomcat.util-8.5.35.jar, plugins/org.apache.tomcat.util.scan-8.5.35.jar, plugins/org.apache.tomcat.websocket-8.5.35.jar, plugins/org.eclipse.jdt.core.compiler.batch-3.12.3.v20170228-1205, plugins/org.eclipse.virgo.util.common-3.6.3.RELEASE.jar, plugins/org.eclipse.virgo.util.io-3.6.3.RELEASE.jar, plugins/org.eclipse.virgo.util.math-3.6.3.RELEASE.jar, plugins/org.eclipse.virgo.util.osgi-3.6.3.RELEASE.jar, plugins/org.eclipse.virgo.util.osgi.manifest-3.6.3.RELEASE.jar, plugins/org.eclipse.virgo.util.parser.manifest-3.6.3.RELEASE.jar, plugins/org.slf4j.api-1.7.2.v20121108-1250.jar, plugins/org.slf4j.nop-1.7.2.v201212060727.jar, plugins/org.ec[email protected], plugins/[email protected], plugins/org.eclipse.gemini.web.jaspic.fragment-3.0.4.RELEASE.jar, plugins/[email protected], plugins/[email protected], plugins/[email protected], plugins/[email protected], plugins/[email protected], plugins/[email protected]:start
eclipse.ignoreApp=true

 

8、新建启动脚本,用于启动产品包:

“java -jar org.eclipse.osgi_3.10.2.v20150203-1939.jar -console”

控制台运行结果,如下图

技术图片

 

9、访问http://127.0.0.1:8080/web-console/index.html,查看运行结果,如下图所示

 

 技术图片

 

以上是关于OSGI打安装包步骤(底包制作)的主要内容,如果未能解决你的问题,请参考以下文章

打rpm包步骤

Eclipse OSGi 包需要另一个包的片段

QtInstallFramework制作的安装包打开时会弹出cmd窗口

华为荣耀手机刷系统问题。

rpm包制作

New Moto X 2014 全版本RSD&Fastboot刷官方底包教程