I am using Maven pax plugin to start equinox container within which my osgi bundles should be deployed.As pax runner by default starts a felix container I have explicitly given instructions to start an equinox container. This is my pax plugin configuration in POM file
<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>
I have explicitly given the platform definition too. This is my platform.xml file
<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>
Now, when I try to install the my bundle through the command "mvn install pax:provision", I am getting the following error
-> 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
Could someone help me out.? Thanks in advance
If you use proxy you have to define proxy system properties for pax-runner: http.proxyHost and http.proxyPort. Pax-Runner uses the proxy properties to resolve/download artifacts that described with http(s) urls.