On 6/25/2015 11:56 PM, Christian Schneider wrote:
<stufff deleted>
All of the http urls are publicly available...these aren't typically
reachable?
I should have explained this a bit better. The problem is that
production systems and sometimes even the development teams often do
not have access to download jars from the internet. So they need some
way to mirror the needed resources in house. Most such companies now
already have a company maven repo which either acts as a proxy to the
outside world or can be populated manually.
If you construct your feature using maven urls then it works out of
the box in such environments as you can simply configure karaf or
maven for the build to use the company maven repo.
Currently the ecf feature contains absolute http urls which would be
different if the user stores the p2 repo somewhere locally. So each of
these urls would have to be changed in this case.
While maven is one solution to this problem we might also be able to
provide a quicker solution. Maybe we can work out a way to use
relative urls in the feature and resolve them using the place of the
feature.xml as kind of anchor.
This could then also allow people to mirror the p2 repo locally.
I would be happy to do this (relative urls) if we can work it out.
I should also say: It is/was/continues to be our intention to create
multiple karaf-features to meet different use cases (e.g. development
and testing vs. production and deployment, karaf4 vs. karaf 3, etc.).
We just have not yet done so since we have been preparing for the 3.10
release.
I think ecf could be a really big thing for karaf if you could
deploy the ecf bundles and feature file to a maven repo (ideally
maven central).
Sigh. Short story: I would like to do this (consistently for all
versions/releases), but it's somewhat problematic.
Longer: First, ECF does produce a maven repo for all of our bundles
(see [1] toward bottom of page).
Two problems though:
1) A few dependencies are not in maven central (e.g. Orbit bundles),
and we can't tell those projects what to do wrt maven.
A lot of the projects orbit provides are already present as maven
bundles in central now. We can provide missing bundles through
servicemix bundles. This is how we get the missing bundles for karaf.
We can help you if you need some project wrapped as a bundle. I am not
sure how well this would match the tycho based builds at eclipse.
The short story is that most (if not all) of our dependencies are on
either a) orbit bundles; b) equinox (not the framework impl itself, but
rather a few other bundles). I'm not sure what/how much of equinox is
in maven central, although I've heard at least the framework impl is.
In any event, I'm happy to work through this with you, the Equinox team,
and others.
2) We/ECF don't currently have any access to publish to maven
central. I would have no objection to doing so though, so if
someone can make this available or explain how to do so, I'm willing.
Then there is this bug [2]. As you can see, more projects (like
ECF) are moving toward maven distribution, but some of the
org-and-project-level issues are a little tricky.
That looks good. So maybe it would even be solved over time. I will
try to help with this. I hope I find some time soon to get more
familiar with ecf.
In any case I really appreciate your efforts to bring ecf to karaf.
Thanks. I'm actually aware of a couple of cases where people are
already creating products on Karaf + ECF Remote Services, which was/is
part of the driver for this work.
I suppose you (Christian) and I should communicate directly off this
list. I'll send a direct email to you.
Scott