我正在使用 Maven pax 插件来启动 Equinox 容器,我的 osgi 包应该在其中部署。作为 pax runner 默认启动 felix 容器,我已明确给出启动 Equinox 容器的说明。这是我在 POM 文件中的 pax 插件配置
<plugin>
<groupId>org.ops4j</groupId>
<artifactId>maven-pax-plugin</artifactId>
<version>1.4</version>
<configuration>
<runnner>1.4.0</runnner>
<framework>equinox</framework>
<provision>
<param>--log=debug</param>
<param>--definitionURL=file:C:\Users\661447\Desktop\Prime Workspace\OSGiDmHelloWorldProvider\platform.xml</param>
</provision>
</configuration>
</plugin>
我也明确给出了平台定义。这是我的 platform.xml 文件
<platform>
<name>Equinox 3.7.0</name>
<system>
http://mirror.netcologne.de/eclipse/equinox/drops/R-3.7-201106131736/org.eclipse.osgi_3.7.0.v20110613.jar
</system>
<profile name="minimal" default="true">
<bundle>
<name>OSGi Services</name>
<url>
http://mirror.netcologne.de/eclipse/equinox/drops/R-3.7-201106131736/org.eclipse.osgi.services_3.3.0.v20110513.jar
</url>
</bundle>
</profile>
</platform>
现在,当我尝试通过命令"mvn install pax:provision"安装我的包时,我收到以下错误
-> Preparing framework [Equinox 3.8.1]
-> loading definition from url file:C:/Users/661447/Desktop/Prime Workspace/OSG
iDmHelloWorldProvider/platform.xml
-> Using platform definition [org.ops4j.pax.runner.platform.internal.PlatformDe
finitionImpl@a10ea2]
-> Using working directory [runner]
-> Downloading bundles...
-> Download system package
-> Downloading [http://mirror.netcologne.de/eclipse/equinox/drops/R-3.7-2011061
31736/org.eclipse.osgi_3.7.0.v20110613.jar]
-> Creating new file at destination: C:\Users\661447\Desktop\Prime Workspace\OS
GiDmHelloWorldProvider\runner\bundles\-31806645.jar
-> Equinox 3.7.0 : connecting...
___
/ /
/ / Oops, there has been a problem!
/ /
/__/ org.ops4j.pax.runner.platform.PlatformException: [http://mirror.netc
ologne.de/eclipse/equinox/drops/R-3.7-201106131736/org.eclipse.osgi_3.7.0.v20110
613.jar] could not be downloaded
___
/__/
-> Exception caught during execution:
java.lang.RuntimeException: org.ops4j.pax.runner.platform.PlatformException: [ht
tp://mirror.netcologne.de/eclipse/equinox/drops/R-3.7-201106131736/org.eclipse.o
sgi_3.7.0.v20110613.jar] could not be downloaded
有人可以帮帮我吗?提前致谢