我正在使用Maven pax插件啓動Equinox容器,在該容器中我的osgi軟件包應該部署。默認情況下,pax runner啓動felix容器,我明確給出了啓動equinox容器的說明。這是我在POM文件中的pax插件配置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安裝PAX:規定」,我收到以下錯誤
-> 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
[email protected]]
-> 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
有人能幫助我嗎?在此先感謝
我建議在ops4j郵件列表中提出這樣的問題,您可能會在那裏獲得更好的反饋。 – 2013-03-22 11:55:48