繁体   English   中英

将OSGI捆绑包导入eclipse

[英]Importing an OSGI bundle into eclipse

我尝试将这个OSGI软件包[2] enj-library导入到eclipse中(用Maven编译后),我使用了:“文件>导入...>插件开发>插件和片段”

我导入了二进制文件

但是我有以下未解决的依赖项: 在此处输入图片说明

在pom.xml中提到了这些依赖关系:

<plugin>
            <groupId>org.apache.felix</groupId>
            <artifactId>maven-bundle-plugin</artifactId>
            <version>1.2.1</version>
            <extensions>true</extensions>
            <configuration>
                <manifestLocation>META-INF</manifestLocation>
                <instructions>
                    <Import-Package>!org.junit.*,
                        !org.reflections.*,!it.polito.elite.enocean.*,*,com.google.common.base;version="14.0", com.google.common.collect;version="14.0"</Import-Package>
                    <Export-Package>it.polito.elite.enocean.enj.*,
                        it.polito.elite.enocean.protocol.*</Export-Package>
                    <Private-Package>it.polito.elite.enocean.test</Private-Package>
                    <Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName>
                    <Bundle-RequiredExecutionEnvironment>JavaSE-1.7</Bundle-RequiredExecutionEnvironment>
                    <Embed-Dependency>org.reflections.*;scope=compile|runtime;inline=false</Embed-Dependency>
                    <Embed-Directory>target/dependency</Embed-Directory>
                    <Embed-StripGroup>true</Embed-StripGroup>
                </instructions>
            </configuration>
        </plugin>

如何解决这个未解决的依赖关系问题? 非常感谢你的帮助!

[2] https://github.com/dog-gateway/enj-library

您还需要安装将这些软件包导出到目标平台的捆绑软件。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM