Re: How to 'let the dust settle' with DS?

2015-09-07 Thread Benson Margulies
Apparently, I can't read, either. Please ignore the last question I stuck on the end, which you had just answered. - To unsubscribe, e-mail: users-unsubscr...@felix.apache.org For additional commands, e-mail: users-h...@felix.apac

Re: How to 'let the dust settle' with DS?

2015-09-07 Thread Benson Margulies
o1)(type=foo2)(type=foo3)(type=foo4)(type=foo5))” Do I really have to enumerate the types if I happen to have provisioned only the ones I want. > > Wiring up DS services is really powerful. I haven’t figured out the exact > computational strength available but to me it has the feel of

Re: How to 'let the dust settle' with DS?

2015-09-07 Thread Benson Margulies
I think I now understand what I have failed to explain here (and I probably know why my service is acting like tantalus). My plan is to create a series of docker containers. Call them 'workers'. Each worker publishes the same restful service; each one of them handles one or more 'tasks'. The worke

Re: How to 'let the dust settle' with DS?

2015-09-07 Thread Benson Margulies
: static Service Reference : No Services bound Reference : Bus State : satisfied Multiple : single Optional : mandatory Policy: static Service Reference : No Services bound On Mon, Sep 7, 2015 at 1:17 PM, Benson Margu

Re: How to 'let the dust settle' with DS?

2015-09-07 Thread Benson Margulies
t a surprise. More spelunking to do. > > thanks > david jencks > >> On Sep 7, 2015, at 12:46 PM, Benson Margulies wrote: >> >> On Mon, Sep 7, 2015 at 12:45 PM, David Jencks >> mailto:david_jen...@yahoo.com.invalid>> >> wrote: >>> I t

Re: How to 'let the dust settle' with DS?

2015-09-07 Thread Benson Margulies
t;> there is a current coordination, then those changes should only be actioned >> when the coordination ends. This has the advantage that you don’t waste time >> waiting for an arbitrary-length timer to expire. >> >> Hope that helps. Regards, >> Neil >> >> >

Re: How to 'let the dust settle' with DS?

2015-09-07 Thread Benson Margulies
tatic collection of services present in the Karaf container via the Karaf assembly mechanism. I just need to start up in an orderly way with them. I may never need or want to add or subtract on the fly. > > > >> On 7 Sep 2015, at 16:16, Benson Margulies wrote: >> >> Tha

Re: How to 'let the dust settle' with DS?

2015-09-07 Thread Benson Margulies
ervices > it provides. They might have all sorts of unsatisfied dependencies….. such > as missing configurations. > > Let me know if this guess is a total miss :-) > > thanks > david jencks > > > > > On Sep 7, 2015, at 10:52 AM, Benson Margulies > wrote: &g

How to 'let the dust settle' with DS?

2015-09-07 Thread Benson Margulies
I am hoping that David Jencks will continue his charity to strangers here. David, if you have any gogo jiras you'd like help with in return, just ask. Three bundles: B1 registers service S1. B2 consumes S1 and uses it in the implementation of S2. That is to say, it picks up a reference to S1 wi

Another trip down the uses= rabbit hole

2015-09-02 Thread Benson Margulies
The latter part of this email is the result of a karaf tree dump from a bundle of mine. It is notable for having two versions of various Jackson bundles. All of the Import-Package directives involved either say '[2.4.4,3)' or [2.5.4,3)'. So, on the one hand, why didn't the wiring process resolve

Unexpected uses= leads to apparent loop in the resolver

2015-09-02 Thread Benson Margulies
Bundle plugin 2.5.3. Step 1: embed a jar file with and inline=true. Step 2: export a package from that jar; Step 3: uses clauses appear that are (a) never exported anywhere, and (b) not in the dependency tree. Step 4: resolver runs indefinitely. I don't know whether to look for this in the

Apparent loop in the resolver

2015-09-01 Thread Benson Margulies
Using Karaf 4.0.1, with either felix 5.0.1 or 5.2.0, I have a situation in which the Felix resolver seems to be capable of consuming CPU time indefinitely. I tried to isolate a test case, but I apparently missed some critical bit of complexity, and failed. There's no telling what it will take to g

Re: Managing gogo command order

2015-08-30 Thread Benson Margulies
mit again, could you close > the pull request? > > thanks > david jencks > > >> On Aug 22, 2015, at 12:38 PM, Benson Margulies wrote: >> >> Oh, and I submitted two more JIRAs with PR's for gogo. >> >> >> On Sat, Aug 22, 2015 at 12:36 PM, Be

Re: When good version constraints go bad

2015-08-28 Thread Benson Margulies
On Fri, Aug 28, 2015 at 2:59 PM, Richard S. Hall wrote: > On 8/28/15 14:36 , Benson Margulies wrote: >> >> Consider three bundles, A, B, and C. A has imports from B and C. All >> three import Guava. >> >> A and B import with a constraint of [18, 19), C ta

When good version constraints go bad

2015-08-28 Thread Benson Margulies
Consider three bundles, A, B, and C. A has imports from B and C. All three import Guava. A and B import with a constraint of [18, 19), C takes [15, 16). The container obediently wires A and B to one bundle, and C to the other. Now, no Guava objects flow _directly_ from C to A. However, A calls C

Re: After poking a blueprint service with configuration admin, how do I wait for it to restart?

2015-08-28 Thread Benson Margulies
On Fri, Aug 28, 2015 at 8:33 AM, Robert Munteanu wrote: > On Fri, 2015-08-28 at 08:29 -0400, Benson Margulies wrote: >> I hope that this is a Felix question and not an Aries question ... >> >> I have a managed service. I want to write a test that tries it out >

After poking a blueprint service with configuration admin, how do I wait for it to restart?

2015-08-28 Thread Benson Margulies
I hope that this is a Felix question and not an Aries question ... I have a managed service. I want to write a test that tries it out with several different configurations. So, my pax-exam test @Injects the service, and @Injects configuration admin. However, once I've poked the new config, how do

Re: Something really wrong with felix github trunk branch

2015-08-26 Thread Benson Margulies
The git mirror is under reconstruction to get tags. It will be strange until it finishes. On Wed, Aug 26, 2015 at 7:57 AM, Cristiano Gavião wrote: > Hello guys, > > I did right now a pull from github's apache git repository and got a lot of > conflicts. > > When I was look into them I got scared.

Re: Managing gogo command order

2015-08-22 Thread Benson Margulies
Oh, and I submitted two more JIRAs with PR's for gogo. On Sat, Aug 22, 2015 at 12:36 PM, Benson Margulies wrote: > I would add a remote in my repo to the repo of the person submitting > the request, and then fetch from it, and then you can do it all in > your repo and not keep

Re: Managing gogo command order

2015-08-22 Thread Benson Margulies
one and then cherry-pick from there? I’d expect > that would reduce a combinatorial explosion of remote branches as more people > supplied patches on github. > > I didn’t see 4970 yet… > > thanks > david jencks > >> On Aug 22, 2015, at 7:36 AM, Benson Margulies wrote:

Gogo: the requirement for absolute bundle URIs

2015-08-22 Thread Benson Margulies
I wish that I could just type: install SomePathname and have gogo infer the file: protocol prefix. Would you all take such a patch, or is there some principle that stands against it? - To unsubscribe, e-mail: users-unsubscr...@f

Re: Managing gogo command order

2015-08-22 Thread Benson Margulies
: >>> set SCOPE = “myscope:gogo:*” >>> >>> then when you enter: mycmd, it will try: myscope:mycmd, gogo:mycmd, and >>> then all other scopes in undefined order. >>> >>> The ‘type’ command can be used to find which command will be executed:

Re: Managing gogo command order

2015-08-21 Thread Benson Margulies
nd can be used to find which command will be executed: > > % type -a mycmd > mycmd is void myscope:mycmd(Object[]) > mycmd is void otherscope:mycmd(String, Integer) > > — > Derek > >> On 21 Aug 2015, at 16:00, Benson Margulies wrote: >> >> If two bundles both pr

Annotating a gogo command

2015-08-21 Thread Benson Margulies
It seems a bit confusion that the CommandSession appears in the help: help ls ls - get specified path contents scope: felix parameters: CommandSession automatically supplied shell session String path with optionally wildcarded file name ls - get current directory contents

Managing gogo command order

2015-08-21 Thread Benson Margulies
If two bundles both provide an 'exit' command, how do I configure to control which one is found by default?

Re: Using felix:log and pax logging

2015-08-15 Thread Benson Margulies
as an existing page somewhere with a list of three ways to configure the output, and I'm struggling to relocate it. Oh! Thanks. I don't suppose that you cast a quick glance over it just in case. > > regards, Achim > > > 2015-08-15 18:35 GMT+02:00 Benson Margulies : > >

Re: Using felix:log and pax logging

2015-08-15 Thread Benson Margulies
08-15 18:32 GMT+02:00 Benson Margulies : > >> Achim, >> >> Harold did pull my trivial addition to the exam plugin, but no one has >> shown any sign of noticing my JIRA/PR for the change to allow adding >> event handlers to the framework. >> >> --benson &

Re: Using felix:log and pax logging

2015-08-15 Thread Benson Margulies
access to confluence. > Regarding Pax - Exam pull request, if it's good we'll give you access to > the repo :-) > > regards, Achim > > > 2015-08-15 18:14 GMT+02:00 Benson Margulies : > >> Can you give me access to edit >> https://ops4j1.jira.com/w

Re: Using felix:log and pax logging

2015-08-15 Thread Benson Margulies
Can you give me access to edit https://ops4j1.jira.com/wiki/display/paxlogging/How+to+use+Pax+Logging? My profile on the wiki is attached to ben...@basistech.com. On Sat, Aug 15, 2015 at 12:11 PM, Benson Margulies wrote: > OK, away I go. I misunderstood the requirement to have the API bun

Re: Using felix:log and pax logging

2015-08-15 Thread Benson Margulies
e is the pax-logging-api > bundle. > > Btw. talking of elderly documentation, if you see improvements for the > documentation feel free to improve it. > OPS4j is a very open community. Like you find an issue you fix it ;-) > > regards, Achim > > > 2015-08-12 18:41 GMT+02:

Using felix:log and pax logging

2015-08-12 Thread Benson Margulies
The pax logging documentation is a bit elderly. My goal is to set up a shell in which bundles that import org.slf4j or log4j API's are happy, and in which the resulting log messages are visible (at least) to the felix:log commands. Is there a recipe somewhere? When I try to add the pax logging ser

Re: How the shell starts and stops

2015-07-22 Thread Benson Margulies
I should just ask what I want to know ... If I want to start a shell on the console 'right now', can I make a call to a service, or do I start and stop a bundle? On Wed, Jul 22, 2015 at 9:24 AM, Benson Margulies wrote: > Am I correct that starting the shell bundle has the effect of

How the shell starts and stops

2015-07-22 Thread Benson Margulies
Am I correct that starting the shell bundle has the effect of causing it to grab the console and get to work? - To unsubscribe, e-mail: users-unsubscr...@felix.apache.org For additional commands, e-mail: users-h...@felix.apache.or

gogo not showing me all the bundles in OBR

2015-07-20 Thread Benson Margulies
The XML below is two elements from the OBR data returned by my repository. Using the current gogo components, I see the second one (the 'rc1' version) but not the first. (current = shell 0.10.0, command = 0.14.0, runtime = 0.16.2) I did 'repos add (URL_OF_THE_OBR.XML FILE)' Common A

Re: Talking to an OBR repo

2015-07-08 Thread Benson Margulies
On Wed, Jul 8, 2015 at 10:54 AM, Guillaume Nodet wrote: > 2015-07-08 16:48 GMT+02:00 Benson Margulies : > >> On Wed, Jul 8, 2015 at 10:32 AM, Jean-Baptiste Onofré >> wrote: >> > Hi Benson, >> >> Hi Jean-Baptiste, thanks for giving my situation some thought

Re: Talking to an OBR repo

2015-07-08 Thread Benson Margulies
And, of course, 10 seconds of google answers the question about Karaf and Equinox, so it's off to do some reading on containers. - To unsubscribe, e-mail: users-unsubscr...@felix.apache.org For additional commands, e-mail: users-h

Re: Talking to an OBR repo

2015-07-08 Thread Benson Margulies
potholes, and some of my co-workers took one look at a typical configuration setup in a test class and needed a beer. An example pothole: the 'Parameterized test' feature appears / appeared to be completely broken. However, we're still using it. > > Regards > JB >

Re: Talking to an OBR repo

2015-07-08 Thread Benson Margulies
To expand on what I'm doing, in case of useful advice: Here I am, part of a team that builds and maintains a large body of Java code. Until recently, no OSGi at all. Maven is our build tool. IntelliJ is our predominant IDE. Recently, we decided to introduce OSGi into the picture. However, we can'

Re: Talking to an OBR repo

2015-07-08 Thread Benson Margulies
ure to follow you, but Cave expose the repository XML and Karaf > features resolver can use it as remote resources repository (or OBR can do > that as well). > > Regards > JB > > > On 07/08/2015 03:38 PM, Benson Margulies wrote: >> >> I am beginning to become less

Re: Talking to an OBR repo

2015-07-08 Thread Benson Margulies
5, chapter 132. >> >> Regards, >> Neil >> >>> On 7 Jul 2015, at 21:25, Benson Margulies wrote: >>> >>> Reading org.apache.felix.gogo.command.OBR, I see that it uses a >>> felix-specific service which in turn talks to >>> org.os

Talking to an OBR repo

2015-07-07 Thread Benson Margulies
Reading org.apache.felix.gogo.command.OBR, I see that it uses a felix-specific service which in turn talks to org.osgi.service.repository.Repository. I'm hoping to write some container-independent code to look for things in an OBR repo; can anyone advise? Should I just learn from org.apache.felix.b

Broken link on download page

2015-07-07 Thread Benson Margulies
http://download.nextag.com/apache//felix/org.apache.felix.shell-1.4.3-project.tar.gz

OSGi-incompatible versions in dependencies

2015-06-26 Thread Benson Margulies
Is there any solution to the following? I've got some dependencies that have versions that are not mappable to OSGi versions without extra effort. E.h. 7.12.102.c56.6-SNAPSHOT. I can fix what goes into the manifest, but when the bundle plugin builds dependencies, it just believes what it sees --

Re: Missing source files

2015-05-14 Thread Benson Margulies
Looks to me as if these are commonly used jar files that Felix republished; servlet API 1.0 and OSGi 1.2. On Thu, May 14, 2015 at 1:47 PM, Tony Stevenson wrote: > Casey, > > I am afraid you will need to contact the project that produces them. We, > Infra, do not control the contents of the repo

Re: Read-only cache

2015-05-08 Thread Benson Margulies
you would be better off finding a different solution. > > Regards, > Neil > > > > > On 8 May 2015, at 12:44, Benson Margulies wrote: > > > > Let me expand on my own question. > > > > My goal is to provision some bundles, including some fragments that > un

Re: Read-only cache

2015-05-08 Thread Benson Margulies
the specified root directory. On Fri, May 8, 2015 at 7:09 AM, Benson Margulies wrote: > Once I have provisioned some bundles into the container, can I treat it as > read-only and share it between processes? > >

Read-only cache

2015-05-08 Thread Benson Margulies
Once I have provisioned some bundles into the container, can I treat it as read-only and share it between processes?

Re: Same code in bundle and system bundle results in verify error

2015-01-12 Thread Benson Margulies
On Mon, Jan 12, 2015 at 11:52 AM, Richard S. Hall wrote: > On 1/12/15 11:42 , Benson Margulies wrote: > >> My idea that this has to do with system bundle versus not is wrong. I'm >> still debugging. >> >> > Is it a single package you are talking about or i

Re: Same code in bundle and system bundle results in verify error

2015-01-12 Thread Benson Margulies
My idea that this has to do with system bundle versus not is wrong. I'm still debugging.

Same code in bundle and system bundle results in verify error

2015-01-12 Thread Benson Margulies
Due to a bug, I've got a bundle installed in my container that exports a package that is also exported from the system bundle. Here's the effect. Questions: is this supposed to be wrong? is this supposed to be the diagnosis? 381 [main] INFO com.basistech.rlije.osgi.impl.RliServiceFactory - Pr

Getting a dependency.properties into my bundle

2015-01-11 Thread Benson Margulies
I've got an execution of the depends-maven-plugin, and, as a result, I have target/classes/META-INF/maven/dependencies.properties file. But that file does not end up in the bundle's JAR file. I do not supply my own Include-Resource, I'm just using the defaults. org.apache.ser

Why would a bundle not start?

2015-01-09 Thread Benson Margulies
I have a container that I've installed some bundles into. One of them has an activator. If I enumerate the bundles, I see this bundle, I see that it has a persistent start level of 1. I start up Felix, with the framework start level set to 1. My bundle's activator is not called. Do I in fact have

Re: An 'internal' package versus a system bundle

2014-12-23 Thread Benson Margulies
; But again, if exported package p imports classes from q, q needs to be made > available ( exported ) from somewhere, so it has no business being > "private" > > > > On 23 December 2014 at 16:02, Benson Margulies > > wrote: > > > On Tue, Dec 23, 2014 at 9:54

Re: An 'internal' package versus a system bundle

2014-12-23 Thread Benson Margulies
them to be? > > > > Please also report the actual error message from Felix. Merely stating > > that “Felix complains” is not informative. > > > > Regards, > > Neil > > > > > > > On 23 Dec 2014, at 13:58, Benson Margulies > wrote: > >

Making an extra fragment

2014-12-23 Thread Benson Margulies
I'd like to manufacture a data-only fragment as an additional artifact in a bundle project. I'd just do this with the assembly plugin, save for one sticky point: I don't know how to get my hands on a copy of the ${project.version} that has -SNAPSHOT mapped to .SNAPSHOT so as to produce a valid OSG

An 'internal' package versus a system bundle

2014-12-23 Thread Benson Margulies
I have a bundle that contains a set of classes that are used to communicate information across the boundary of the OSGi container. All these classes are in one package ('p'). That package is both imported and exported from the bundle. The bundle also contains some support classes in the package th

Suppressing unwanted system packages

2014-12-22 Thread Benson Margulies
So, buried in some code of mine is a dev tool. I could move it to another jar. For now, I'd like to find some way to prevent it from producing these Import-Package elements javax.swing.text,javax.xml.stream Can I put some ! items into Import-Package without disturbing the plugin's automatic gene

memory mapping, bundle resources

2014-12-12 Thread Benson Margulies
I've got code that makes extensive of memory mapping. I'm wishing that I could make a bundle that contained a large data resource that could be memory mapped. One path I see involves a copying process: expect to get a URL to it by getEntry() on a bundle, and then copy it into a file path from getD

Re: Bundle dependency management

2014-12-12 Thread Benson Margulies
On Fri, Dec 12, 2014 at 4:58 AM, Robert Munteanu wrote: > https://ops4j1.jira.com/wiki/display/paxrunner/Pax+Runner One idea I think I'm learning from all this is that a typical process is to preload an OSGi container and deliver it. I've been thinking in terms of delivering a pile of bundles and

Re: Bundle dependency management

2014-12-11 Thread Benson Margulies
I am already building bundles with Maven and the maven-bundle-plugin, which uses bnd. The point of this query is that OSGi dependency management is clearly not quite the same thing as Maven. In the maven dependency graph, once resolved, there can only be one version for a given Group/Artifact. In

Bundle dependency management

2014-12-11 Thread Benson Margulies
So, here I am, setting up an application that embeds Felix. I need it to contain a certain collection of bundles -- and then some dependencies of those bundles. Plain-old-maven can't help very much with managing those dependencies, since it can only deal with one version per Group/Artifact, and I

Re: Framework#start versus FrameworkStartLevel#setStartLevel

2014-12-09 Thread Benson Margulies
On Tue, Dec 9, 2014 at 8:16 AM, Richard S. Hall wrote: > On 12/9/14 01:55 , Felix Meschberger wrote: >> >> Hi >> >>> Am 09.12.2014 um 03:02 schrieb Richard Hall : >>> >>> On 12/8/14 20:47 , Benson Margulies wrote: >>>> >

Re: Framework#start versus FrameworkStartLevel#setStartLevel

2014-12-08 Thread Benson Margulies
On Mon, Dec 8, 2014 at 9:02 PM, Richard S. Hall wrote: > On 12/8/14 20:47 , Benson Margulies wrote: >> >> On Mon, Dec 8, 2014 at 8:34 PM, Richard S. Hall >> wrote: >>> >>> On 12/8/14 18:07 , Benson Margulies wrote: >>>> >>>> Framew

Re: Framework#start versus FrameworkStartLevel#setStartLevel

2014-12-08 Thread Benson Margulies
On Mon, Dec 8, 2014 at 8:34 PM, Richard S. Hall wrote: > > On 12/8/14 18:07 , Benson Margulies wrote: >> >> FrameworkStartLevel#setStartLevel takes listeners, which looks really >> useful. Can I call it instead of Framework#start? > > > They don't do the

Framework#start versus FrameworkStartLevel#setStartLevel

2014-12-08 Thread Benson Margulies
FrameworkStartLevel#setStartLevel takes listeners, which looks really useful. Can I call it instead of Framework#start?

Re: Bundle activator error event

2014-12-08 Thread Benson Margulies
wrote: > Hi > > I am sorry, I have no clue, what you are asking for :-) > > >> Am 08.12.2014 um 15:35 schrieb Benson Margulies : >> >> So, I've got a problem here with queued events. > > Are you talking about EventAdmin ? > >> >> If I call

Re: Bundle activator error event

2014-12-08 Thread Benson Margulies
So, I've got a problem here with queued events. If I call bundleContext.getServiceReferences() and then dereference the reference, the activator gets called. If that results in a throw, the resulting event gets queued, and is delivered, eventually. So, I bet that there is some call I can make to '

Bundle activator error event

2014-12-08 Thread Benson Margulies
If an ServiceFactory getService method throws a RuntimeException, how is the event routed? Or, what's a reasonable way for such a method to complain, and how should an application be sensitive to such complaints? - To unsubscribe

Slightly confused by the AutoProcessor

2014-11-26 Thread Benson Margulies
I would like to offer a patch consisting of some class-level javadoc for AutoProcessor -- to explain what has me confused. Running the auto-processor has no effect until after I start the framework. In generic OSGi terms, what is the AutoProcessor doing to the bundles that causes them to get start

Re: maven-bundle-plugin: Imports without versions, why?

2014-11-26 Thread Benson Margulies
uces the > behaviour, so that someone on this list can try it? That might help in > pinpointing the issue... > > Cheers, > > David > > On 26 November 2014 at 21:29, Benson Margulies wrote: >> On Wed, Nov 26, 2014 at 12:29 PM, Felix Meschberger >> wrote: >>

Re: maven-bundle-plugin: Imports without versions, why?

2014-11-26 Thread Benson Margulies
, just in c.b.rosette.dm. Time to bug the bnd people, I guess. > > Regards > Felix > >> Am 26.11.2014 um 17:52 schrieb Benson Margulies : >> >> This is pretty odd. As you can see below, there's just one dependency >> being included. That 'common-api'

Re: maven-bundle-plugin: Imports without versions, why?

2014-11-26 Thread Benson Margulies
.google.guava:guava:jar:16.0.1:compile [INFO] +- junit:junit:jar:4.11:test [INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:test [INFO] \- com.googlecode.jmockit:jmockit:jar:1.7:test On Wed, Nov 26, 2014 at 10:13 AM, Benson Margulies wrote: > On Wed, Nov 26, 2014 at 9:49 AM, Felix Meschberger wro

Avoiding 'Built-By' in the MANIFEST.MF

2014-11-26 Thread Benson Margulies
In spite of the configuration below, the maven-bundle-plugin stubbornly insists on adding Built-By to the manifest. Is there any way to discourage it? false false

Re: maven-bundle-plugin: Imports without versions, why?

2014-11-26 Thread Benson Margulies
of the same package? > > Regards > Felix > >> Am 26.11.2014 um 15:33 schrieb Benson Margulies : >> >> On Wed, Nov 26, 2014 at 9:25 AM, Felix Meschberger >> wrote: >>> Hi Benson >>> >>> Do you have two dependencies in the class path whic

Re: maven-bundle-plugin: Imports without versions, why?

2014-11-26 Thread Benson Margulies
that up. I'll go hunting. > > Regards > Felix > > Am 26.11.2014 um 14:56 schrieb Benson Margulies : >> >> >> I don't know if this is, in fact, a bnd question. Here's an import >> generated by the plugin. Note that there's a version on the

maven-bundle-plugin: Imports without versions, why?

2014-11-26 Thread Benson Margulies
I don't know if this is, in fact, a bnd question. Here's an import generated by the plugin. Note that there's a version on the first, and not on the second. Import-Package: com.basistech.rosette,com.basistech.rosette.dm;version=" [1.10,2)" Here is the Export-Package in the manifest of the bundle

Re: org.osgi.framework version range chosen by plugin

2014-11-18 Thread Benson Margulies
use a higher version (e.g. 1.5) if your > bundle *cannot* work with version 1.4 of the package. You do this by > explicitly compiling against the lowest version of the library your bundle > can work with. > > Neil > >> On 18 Nov 2014, at 02:04, Benson Margulies wrote:

Re: Embedding Felix and not finding org.osgi.framework

2014-11-17 Thread Benson Margulies
Please ignore the below. On Mon, Nov 17, 2014 at 9:22 PM, Benson Margulies wrote: > I am following the general line of breadcrumbs from: > > http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html > > and using felix 4.0.3. One of my bundles has an ac

Embedding Felix and not finding org.osgi.framework

2014-11-17 Thread Benson Margulies
I am following the general line of breadcrumbs from: http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html and using felix 4.0.3. One of my bundles has an activator, so the bundle plugin set up an Import-Package for org.osgi.framework. I tried adding that to FRAMEWORK_S

org.osgi.framework version range chosen by plugin

2014-11-17 Thread Benson Margulies
the maven-bundle-plugin decided to put the following into the manifest, even though I'm using a much newer version of OSGi. Should I just add an instruction to set a version I like better, or is there something more subtle I've missed that would clue it in? org.osgi.framework;version="[1.4,2)" --

org.osgi.framework.system.packages.extra

2014-11-17 Thread Benson Margulies
In several places, http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html says: This is achieved using the org.osgi.framework.system.packages.extra configuration property previously presented. It does not seem to me to be previously presented. Is it on some o

Embedded item not found in test

2014-11-16 Thread Benson Margulies
Felix framework 4.0.3. pax-exam 4.3.0, their 'native' container. Many things work. A jar of Jackson YAML is embedded. It's on the Bundle-Classpath in the MANIFEST, but when I run a test, it's not found. The package isn't declared in the instructions anywhere. onceOver(com.basistech.rosette.o

Re: dependencies

2014-11-15 Thread Benson Margulies
On Sat, Nov 15, 2014 at 10:12 AM, Stuart McCulloch wrote: > > On Saturday, 15 November 2014 at 14:30, Benson Margulies wrote: > > I'm new. I bet that this is all written up somewhere; if not, I will be > > happy to write up a wiki page. > > > > > > Mo

dependencies

2014-11-15 Thread Benson Margulies
I'm new. I bet that this is all written up somewhere; if not, I will be happy to write up a wiki page. I'm packaging up a few items as OSGi bundles, and I'm perplexed by how the maven-bundle-plugin related Maven dependencies to OSGi dependencies. Here are some very simple instructions: *;sco

Re: qualifier versus SNAPSHOT in the bundle plugin

2011-08-30 Thread Benson Margulies
which will use "v$(tstamp)" as the qualifier for snapshot versions, and "GA" >>> for the final release >>> >>> but we could definitely make this easier by providing a simple switch in the >>> plugin - so if anyone has time to whip up a path, feel free

Re: qualifier versus SNAPSHOT in the bundle plugin

2011-08-30 Thread Benson Margulies
On Tue, Aug 30, 2011 at 6:32 AM, Stuart McCulloch wrote: > On 29 August 2011 17:43, Benson Margulies wrote: > >> I got the following by attempting to map this into the maven plugin. >> >> 1.0.0.orgapachemavenmodelBuild43ce663c >> >> Is this right? It'

Re: qualifier versus SNAPSHOT in the bundle plugin

2011-08-29 Thread Benson Margulies
One more question: I tried using <_snapshot> from the bnd doc, as an alternative to automate release versus snapshot, but it didn't work. Is that version of bnd not in the plugin yet? On Mon, Aug 29, 2011 at 12:43 PM, Benson Margulies wrote: > I got the following by attempti

Re: qualifier versus SNAPSHOT in the bundle plugin

2011-08-29 Thread Benson Margulies
I got the following by attempting to map this into the maven plugin. 1.0.0.orgapachemavenmodelBuild43ce663c Is this right? It's not quite what I expected. I used: \${tstamp} 1.0.0.\${build} On Mon, Aug 29, 2011 at 8:50 AM, Marcel Offermans wrote: > On 29 Aug 2011, at 14:43

Importing the output of the maven-bundle-plugin into eclipse

2011-08-29 Thread Benson Margulies
Due to an interlocking collection of missing features of Tycho and M2E, I find myself wanting to import the output of the maven-bundle-plugin into Eclipse Indigo as a binary project. Unfortunately, doing the obvious (importing it as a binary project) isn't working for me: eclipse is ignoring the a

qualifier versus SNAPSHOT in the bundle plugin

2011-08-29 Thread Benson Margulies
The eclipse ecosystem seems to like to use 'qualifier' as a qualifier to spit out a unique number. Can I do that in the plugin by explicitly specifying 'qualifier' in the instructions? - To unsubscribe, e-mail: users-unsubscr...@f

shade versus bundle

2011-08-28 Thread Benson Margulies
bnd does something much like the maven-shade-plugin if you don't use _exportcontent and Embed-Dependencies to put jars inside the bundle. Any advice in choosing between the shade plugin + the manifest goal versus just letting bnd do it's thing?

Re: surprised by auto-generated Import-Package

2011-08-28 Thread Benson Margulies
On Sat, Aug 27, 2011 at 10:22 PM, Stuart McCulloch wrote: > On 27 August 2011 17:52, Benson Margulies wrote: > >> Using the POM at: >> >> >> http://svn.apache.org/viewvc/maven/sandbox/branches/doxia-ide-eclipse-with-tycho/org.apache.maven.doxia.eclipse.dependencies

generated manifest loses things on the way into the jar

2011-08-27 Thread Benson Margulies
In my project, (using 2.3.5 and the bundle packaging) a perfectly reasonable manifest appears in target/classes/META-INF/MANIFEST.MF. However, the manifest that is actually delivered to the jar is DIFFERENT, and lacks a critical Export-Package. I don't know how to attack this. --

surprised by auto-generated Import-Package

2011-08-27 Thread Benson Margulies
Using the POM at: http://svn.apache.org/viewvc/maven/sandbox/branches/doxia-ide-eclipse-with-tycho/org.apache.maven.doxia.eclipse.dependencies/pom.xml?revision=1162392&view=markup I am perplexed to get a very long Import-Package, including many things that are embedded, plus things like com.apple

Re: Mysterious missing constraints

2009-02-12 Thread Benson Margulies
df.dom.util,org.openoffice.odf.pkg,org .openoffice.odf.pkg.manifest,resources Bundle-ManifestVersion: 2 Bundle-SymbolicName: com.basistech.rex2009.common Tool: Bnd-0.0.255 Embed-Dependency: common;inline=false,trove;inline=false,odfdom;inline =false On Thu, Feb 12, 2009 at 10:46 AM, Benson Margul

Re: Mysterious missing constraints

2009-02-12 Thread Benson Margulies
I really need coffee today. Please ignore this until I get my head straightened out. On Thu, Feb 12, 2009 at 10:43 AM, Benson Margulies wrote: > I had reached a point of terminal frustration with trying to build a bundle > that just incorporated Spring. > > So, I decided to stop hi

Mysterious missing constraints

2009-02-12 Thread Benson Margulies
I had reached a point of terminal frustration with trying to build a bundle that just incorporated Spring. So, I decided to stop hitting myself in the head with a rock, and just go find the necessary artifacts to get bundles for the spring components. My POM is below. When I try to run it, I get

Re: Simple use of bundle plugin generates long list of bad Import-Package

2009-02-12 Thread Benson Margulies
Thanks, I think this covers it. On Thu, Feb 12, 2009 at 9:56 AM, Stuart McCulloch wrote: > 2009/2/12 Benson Margulies > > > My seemingly simply goal was to take a library of mine with a (seemingly) > > short list of dependencies, and turn it into a self-contained OSGi bundle

Re: Simple use of bundle plugin generates long list of bad Import-Package

2009-02-12 Thread Benson Margulies
and pieces, but this might be enough to clarify. On Thu, Feb 12, 2009 at 12:43 AM, Stuart McCulloch wrote: > 2009/2/12 Benson Margulies > > > I am trying to wrap a maven artifact that depends on spring in a bundle, > > and > > just make it self-contained. > &g

Simple use of bundle plugin generates long list of bad Import-Package

2009-02-11 Thread Benson Margulies
I am trying to wrap a maven artifact that depends on spring in a bundle, and just make it self-contained. I used pax to make a simple pom for the bundle plugin. Eclipse throws up all over the results, because it has a giant Import-Package list. It includes internal packages from the JVM, things t

<    1   2   3   >