gpt4 book ai didi

java - Maven Equinox 插件

转载 作者:行者123 更新时间:2023-12-01 14:45:22 27 4
gpt4 key购买 nike

是否有任何插件可以集成 Maven 和 Equinox 运行时?我希望我的 osgi 包能够在 Equinox 中打包、部署和运行。我正在寻找 Maven 命令来执行整个控制操作(构建 bundle 、打包和部署它们)。

编辑 #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.----------------------------------------------------

最佳答案

PaxRunner可以帮助您部署 Maven 项目的 bundle 并运行 Equinox

<plugin>
<groupId>org.ops4j</groupId>
<artifactId>maven-pax-plugin</artifactId>
<version>1.4</version>
<configuration>
<framework>equinox</framework>
</configuration>
</plugin>

关于java - Maven Equinox 插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15476389/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com