I'm not sure that using an M2E Configurator can help, because configurators
are here to hook some maven plugin execution when the IDE perform a rebuild
or compile incrementaly.
bnd-ipojo-plugin is always executed (as you said) in the 'package' phase,
so trying to execute that plugin will necessarily execute goals up to the
package phase... Not sure this is the wanted behavior.

The eclipse ipojo builder is probably more aligned with what you wanna do,
but it's absolutely unrelated to maven.

Maybe you could provide a special M2E Configurator that could enable the
ipojo nature (and this the builder) when any ipojo marker is found.
In a way that's abusing the M2EConfigurator, because you do not execute any
maven goals here, but that could work...

--G

iPOJO builder: http://gitorious.ow2.org/ow2-chameleon/eclipse-ipojo-builder



2012/11/9 Simon Chemouil <[email protected]>

> Hi again :-)
>
> I'm trying to get iPojo working better with M2E, notably getting the
> classes manipulated by the Maven Builder as I modify them.
>
> There was a thread[1] a few months ago with a proposed approach
> updating maven-ipojo-plugin and that ended suggesting the use of the
> bnd-ipojo-plugin instead. The "ipojo" manifest problem was solved (the
> manifest is always up-to-date with iPojo components metadata) but
> there is still the problem of the manipulated classes.
>
> Guillaume Sauthier proposed[2] to use the unpackBundle option.
> Unfortunately it only works when calling mvn package (e.g, the bundle
> has to be packaged first) and I couldn't get it to work on-the-fly
> code changes.
>
> I'm using M2E with the Tycho Project Configurator that has support for
> the maven-eclipse-bundle's lifecycle. Noably, it nicely refreshes the
> manifest when it is updated and provides decent integration with PDE
> (that remains useful for Eclipse RCP development...!).
>
> I'd like to have the same kind of smooth integration for on-the-fly
> manipulation. I know of the Eclipse iPojo Builder[3] but I'd prefer
> something that works with M2E transparently (ideally, detecting the
> IPojo BND plugin in the BND configuration, and acting accordingly). Is
> there a solution somewhere, or should I have a go at it?
>
> Thanks!
>
> --
> Simon
>
>
>
> [1]
> http://markmail.org/message/eub2l3edkveauws6#query:+page:1+mid:b3lau7ntwrgdyna2+state:results
> [2]
> http://markmail.org/message/eub2l3edkveauws6#query:+page:1+mid:7jdohtbllrm3w5zk+state:results
> [3] http://gitorious.ow2.org/ow2-chameleon/eclipse-ipojo-builder
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to