Hi,

Am Dienstag, den 03.06.2008, 11:58 +0200 schrieb Carsten Ziegeler:
> Felix Meschberger wrote:
> > 
> > Actually, it would run ;-) The problem is the maven-scr-plugin which
> > always sets the immediate attribute to true (if not explicitly) set.
> > This is incorrect in connection with using the factory attribute (the
> > same happens for the jcr/jackrabbit-server and jcr/jackrabbit-client
> > bundles).
> > 
> > The real fix is to use the latest maven-scr-plugin which does NOT set
> > the attribute and then it should run.
> > 
> Yes, it might run with scr snapshot, but it doesn't run with scr 1.0.0 
> then :(
> As we definitly don't want to wait until scr and the scr plugin is 
> released, what about not using the scr plugin for the logger but hand 
> writing the xml file?

It _will_ run with the scr 1.0.0 snapshot, unless the immediate flag is
set, which is the real bug behind this. If the immediate flag is not
explicitly set to any value, both versions of SCR -- 1.0.0 and
1.0.1-SNAPSHOT -- assume their own default value valid in their context.
And hence the bundle works.

The real "culprit", if you wish, is the maven-scr-plugin, which always
sets this flag to an explict "true" value, thus prevent the bundle to
work.

We might need a maven-scr-plugin release ??

Regards
Felix


Reply via email to