有没有可以集成maven和equinox运行时的插件?我希望我的osgi包能够在equinox中打包、部署和运行。我正在搜索maven命令来执行整个控制操作(构建包、打包和部署它们)。
编辑#1我设法执行了maven pax插件。当我给出命令mvn install pax:provision时,我得到了以下错误
----------------------------------------------------
-> Using only arguments from command line
-> Scan bundles from [C:\Users\661447\Desktop\Prime Workspace\OSGiDmHelloWorldP
rovider\runner\deploy-pom.xml]
-> Scan bundles from [scan-pom:file:/C:/Users/661447/Desktop/Prime Workspace/OS
GiDmHelloWorldProvider/runner/deploy-pom.xml]
-> Provision bundle [mvn:OSGiDmHelloWorldProvider/OSGiDmHelloWorldProvider/1.0,
at default start level, bundle will be started, bundle will be loaded from the
cache]
-> Provision bundle [mvn:org.apache.felix/org.osgi.core/1.4.0, at default start
level, bundle will be started, bundle will be loaded from the cache]
-> Preparing framework [Equinox 3.8.1]
-> Downloading bundles...
-> Equinox 3.8.1 : connecting...
___
/ /
/ / Oops, there has been a problem!
/ /
/__/ org.ops4j.pax.runner.platform.PlatformException: [link:classpath:run
ner-links/org.eclipse.osgi-3.8.1.link] could not be downloaded
___
/__/ Use --log=debug to see details.----------------------------------------------------发布于 2013-03-18 21:10:56
PaxRunner可以帮助您部署Maven项目的捆绑包并运行Equinox
<plugin>
<groupId>org.ops4j</groupId>
<artifactId>maven-pax-plugin</artifactId>
<version>1.4</version>
<configuration>
<framework>equinox</framework>
</configuration>
</plugin>发布于 2013-03-18 21:30:42
您可能想要使用m2e插件,它将执行您刚才提到的所有操作,above.You可以在eclipse市场中找到它。
https://stackoverflow.com/questions/15476389
复制相似问题