0

是否有任何可用的插件可以集成 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.----------------------------------------------------
4

2 回答 2

1

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-18T13:10:55.923 回答
0

您可能想要使用 m2e 插件来执行您刚才提到的所有操作。您可以在 eclipse 市场中找到它。

于 2013-03-18T13:30:42.127 回答