ops4j / org.ops4j.pax.runner

Multi Framework OSGi Runner
http://team.ops4j.org/wiki/display/paxrunner/
47 stars 39 forks source link

Resolve OSGi Framework Links offline for HTTP protocol [PAXRUNNER-433] #188

Open ops4j-issues opened 11 years ago

ops4j-issues commented 11 years ago

Stefan Fromm created PAXRUNNER-433

I want to build an OSGi-based application using maven-pax-plugin 1.4 in an offline environment. Formerly I used Equinox 3.7.0, which worked because the Pax Runner link mvn:org.eclipse.tycho/org.eclipse.osgi/3.7.0.v20110613 is resolved
from the local Maven repo. When changing to Equinox 3.8.1 the Pax Runner link changed to http://ftp-stud.fht-esslingen.de/pub/Mirrors/eclipse/equinox/drops/R-3.8.1-201209141800/org.eclipse.osgi_3.8.1.v20120830-144521.jar. The latter link is downloaded during every provisioning.

I would like to have a possibility to tell Pax Runner via maven-pax-plugin configuration to resolve the HTTP link from another offline location.

I already tried to exchange the runner link by adding a plugin dependency with an overridden runner link file. But this does not work. As I later found out, maven-pax-plugin 1.4 and also 1.5 do not add Maven's plugin dependencies to the classpath of started Pax Runner (see http://grepcode.com/file/repo1.maven.org/maven2/org.ops4j/maven-pax-plugin/1.4/org/ops4j/pax/construct/lifecycle/ProvisionMojo.java#ProvisionMojo.loadRunnerClass%28java.lang.String%2Cjava.lang.String%2Cjava.lang.String%2Cboolean%29).


Affects: 1.8.5 Votes: 1, Watches: 0