Apache Felix是一项社区工作,旨在根据Apache许可证实施OSGi R4服务平台和其他有趣的OSGi相关技术。
我正在尝试找出如何更改 OSGI 捆绑包缓存算法。 我有一个本地存储库,其中包含 NFS 驱动器上的所有 jar。 当我启动我的应用程序时,OSGI 捆绑了缓存算法
我正在尝试将 Apache POI 导入 Atlassian Jira 插件以读取 excel 文件。 一开始,我开始只是添加 org.apache.poi 我正在尝试将 Apache POI 导入 Atlassian Jira 插件以读取 excel 文件。 一开始,我只是添加了 <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>${poi.version}</version> </dependency> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml-schemas</artifactId> <version>${poi.version}</version> </dependency> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> <version>${poi.version}</version> </dependency> poi.版本是3.14 然后当我启动插件时它给出了 Unresolved constraint in bundle com.tezExtensions [165]: Unable to resolve 165.0: missing requirement [165.0] osgi.wiring.package; (osgi.wiring.package=com.sun.javadoc) 然后我用一些指令编辑了 pom,这些指令是我在另一个 StackOverflow 问题中找到的 Pax Exam 问题与 Apache POI 包装的捆绑包 <instructions> <Atlassian-Plugin-Key>${atlassian.plugin.key}</Atlassian-Plugin-Key> <!-- Add package to export here --> <Export-Package>com.sony.poc.api,</Export-Package> <_exportcontents> org.apache.poi.*;version=${poi.version}, org.openxmlformats.schemas.*;version=${poi.schema.version}, schemasMicrosoftComOfficeExcel.*;version=${poi.schema.version}, schemasMicrosoftComOfficeOffice.*;version=${poi.schema.version}, schemasMicrosoftComOfficePowerpoint.*;version=${poi.schema.version}, schemasMicrosoftComVml.*;version=${poi.schema.version}, org.etsi.uri.*;version=${poi.security.version} </_exportcontents> <!-- Add package import here --> <Import-Package> com.sun.javadoc;resolution:=optional, com.sun.tools.javadoc;resolution:=optional, org.apache.crimson.jaxp;resolution:=optional, org.apache.tools.ant;resolution:=optional, org.apache.tools.ant.taskdefs;resolution:=optional, org.apache.tools.ant.types;resolution:=optional, junit.framework.*;resolution:=optional, junit.textui.*;resolution:=optional, org.junit.*;resolution:=optional, org.apache.xml.security.*;resolution:=optional, org.apache.jcp.xml.dsig.internal.dom.*;resolution:=optional, org.springframework.osgi.*;resolution:="optional", org.eclipse.gemini.blueprint.*;resolution:="optional", *</Import-Package> <DynamicImport-Package> org.apache.xmlbeans.*, schemaorg_apache_xmlbeans.* </DynamicImport-Package> 使用此配置,我收到此错误; Unable to resolve 165.0: missing requirement [165.0] osgi.wiring.package; (osgi.wiring.package=org.apache.xml.resolver) 有人有想法吗? 终于找到解决办法了。 我已将它们添加为依赖项 <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>${poi.version}</version> </dependency> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-scratchpad</artifactId> <version>${poi.version}</version> </dependency> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> <version>${poi.version}</version> <exclusions> <exclusion> <groupId>stax</groupId> <artifactId>stax-api</artifactId> </exclusion> <exclusion> <groupId>xml-apis</groupId> <artifactId>xml-apis</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.codehaus.woodstox</groupId> <artifactId>woodstox-core-asl</artifactId> <version>4.4.1</version> </dependency> 还将这些添加到 Import-Package 标签内部 *;resolution:=optional, com.ctc.wstx.stax.* 仅此而已。 我应该将 Atlassian Jira 的 pom.xml 放在哪里?
带有 Felix 的 OSGi 声明式服务 - @Reference 未调用“更新”方法
我是第一次学习 OSGi 和声明性服务,无法弄清楚为什么我的 @Reference 字段的“更新”方法没有被调用。我使用的是菲利克斯 7.0.5。我有三个
我正在尝试在 debian 10 系统上安装 Nexus 3.38。我使用 aodoptopenjdk-8... 作为 Java 运行时。 当我尝试将其作为 systemd 服务运行时,nexus 不会启动。没有可用的日志。 当我尝试时
我需要阅读清单文件,它提供了我的课程,但是当我使用时: getClass().getClassLoader().getResources(...) 我从加载到 Java 运行时的第一个 .jar 中获取 MANIFEST。 我的应用程序
如何修复 org.osgi.framework.BundleException:导入的包名称长度不能为零
我有包含许多使用OSGI捆绑包的模块的整体代码,我需要从jdk8升级到jdk11,在部署中我收到了很多与以下内容相关的错误和警告 OSGI 和 apache.f...
安装功能时 org.apache.felix.gogo.commands 缺少要求
我使用的是Karaf 4.2.16。我想安装一个功能:karaf@mst-ica()> feature:install my_feature.config 并收到以下错误: 无法解析根: 缺少要求 [root] osgi。
绑定到资源类型OSGi R6注解的Sling servlet无法工作。
我想注册一个servlet到我的主页面资源类型,这样当同一个页面被选择器和扩展器击中时,我的servlet应该被选择而不是正常的页面渲染。我是...
gogo shell不起作用apache felix 6.0.3吗?
我正在学习osgi,并且在执行以下命令时安装了apache felix(6.0.3)。 java -jar felix.jar Felix不显示shell gogo,我也不知道为什么?
使用1.01.0之类的捆绑软件版本合法吗?找不到有关其工作方式的任何信息。我使用OSGI的Apache Felix实现。
我已在捆绑包中实施2个服务A,B。我想通过构建一个新的jar文件并执行更新命令来更改服务A的代码,但保持服务B的运行而无需再次启动它。
我想出于研究目的部署Apache Felix Web Console。根据Apache Felix文档,存在用于控制组件(OSGI服务)的页面。但是,启动网站后...
java.lang.NoClassDefFoundError:javafx / embed / swing / JFXPanel(Apache Felix Maven Bundle插件)
我正在尝试将JFXPanel类与Apache Felix Maven Bundle插件一起使用。我试图将JavaFX类导出到带有标记的包中,但是我总是获得NoClassDefFoundError ...
Felix将OSGI捆绑软件列为有效,但Gogo Shell命令不可访问(与依赖相关)
此基本代码成功地使命令scopeA:test可在外壳程序中访问:包com.A;导入org.apache.felix.ipojo.annotations.Component;导入org.apache.felix.ipojo.annotations ....
我有一个作为OSGi捆绑软件集合运行的应用程序。我使用嵌入Felix框架的非常小的包装程序开始它。这种包装的必要性让我有些不适,事实上...
[在请求调度程序上的页面时,我在Publish实例error.log 18.12.2019 22:13:05.563 * INFO * [xxxx [1576707185560] GET /etc.clientlibs/project/clientlibs/clientlib-all中看到了这个。 ..
如何在Raspbian Buster Lite中使用systemd启动服务,该服务启动felix(OSGi)程序并使捆绑包保持活动状态?
我有以下问题:我有一个带有Raspbian Buster Lite操作系统的Raspberry Pi。我想从Raspberry Pi的启动处自动启动程序。我正在尝试使用...
我有以下使用称为发送方的参考服务的使用者组件,@Component(configurationPolicy = ConfigurationPolicy.REQUIRE,configurationPid = DATA_SYNC_CONFIG)public ...
Eclipse:如何在osgi bundle导出中包括依赖项?
使用Eclipse,我有一个(某种)有效的OSGI包。它使用Maven拉很多依赖。如果我右键单击>以“ Maven Build”运行并选择“ package”作为目标,则最终得到一个...
当我将包装设置为捆绑包时,Maven项目中的PluginVersionResolutionException
在我的Maven项目中,当我将打包类型从'jar'更改为'bundle'时,我的大多数插件(编译器,部署,安装,资源,surefire)都失去了版本。为什么是这样?我的pom.xml如下:...