felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Seifert (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FELIX-4009) maven bundle plugin should be integrated directly with eclipse
Date Fri, 11 Mar 2016 22:41:02 GMT

    [ https://issues.apache.org/jira/browse/FELIX-4009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15191624#comment-15191624
] 

Stefan Seifert commented on FELIX-4009:
---------------------------------------

i've contributed a patch for this https://github.com/apache/felix/pull/57

* define m2e lifecycle mapping metadata, enable incremental build for manifest (and SCR metadata)
generation - important for unit tests e.g. with sling/osgi-mock
* make sure all files that are written use file output streams created via BuildContext to
make sure eclipse get notice of it

it would be nice to get this integrated into the next maven-bundle-plugin version. m2e support
was missing for a long time. this feature is especially important when using sling osgi-mock
for unit testing and generate SCR metadata not via the SCR plugin, but via maven-bundle-plugin
and bnd.

> maven bundle plugin should be integrated directly with eclipse
> --------------------------------------------------------------
>
>                 Key: FELIX-4009
>                 URL: https://issues.apache.org/jira/browse/FELIX-4009
>             Project: Felix
>          Issue Type: New Feature
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-2.3.7
>            Reporter: Andrei Pozolotin
>              Labels: m2e
>             Fix For: maven-bundle-plugin-future
>
>
> Stuart:
> 1) currently, to integrate maven-bundle-plugin into m2e, one must  use tycho configurator
> https://github.com/sonatype/m2eclipse-tycho
> which adds needles complexity, and makes few strange assumptions
> https://github.com/sonatype/m2eclipse-tycho/blob/master/org.sonatype.tycho.m2e/src/org/sonatype/tycho/m2e/internal/OsgiBundleProjectConfigurator.java#L74
> which no one it seems is there to care to correct
> https://github.com/sonatype/m2eclipse-tycho/pull/8
> 2) instead, I suggest maven-bundle-plugin to provide direct integration with eclipse
via
> http://wiki.eclipse.org/M2E_compatible_maven_plugins#BuildContext
> which I would expect to be more customizable / flexible for the end user.
> I recently made similar switch with my DS plugin, and life got easier :-)
> https://github.com/carrot-garden/carrot-maven/tree/master/carrot-maven-scr-plugin
> thanks.
> Andrei.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message