You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by Stuart McCulloch <mc...@gmail.com> on 2012/02/13 17:17:00 UTC

m2e integration (was: [VOTE] Release Felix maven-bundle-plugin version 2.3.7)

On 13 Feb 2012, at 15:34, Andrei Pozolotin wrote:
>    Stuart:
> 
>    you mentioned before that maven-bundle-plugin
>    how has some default bindings for m2e
>    for incremental manifest build in eclipse;
> 
>    can you please elaborate a little on
>    how to setup pom to use this feature properly?
> 
>    in 2.3.7?
> 
>    (my current concert is incremental build speed)

There are no m2e bindings in the plugin and no special pom settings - instead m2e has been improved to detect bundle projects and adjust the instructions (in-memory) to work with JDT and PDE

You can find this support in the development drop of the m2eclipse-tycho configurator https://repository.sonatype.org/content/repositories/forge-sites/m2eclipse-tycho/0.6.0/N/0.6.0.201112050222/

If you already have the m2eclipse-tycho configurator installed then adding the above update site and checking for software updates should install the above update.

If you don't have the m2eclipse-tycho configurator you can install it via Eclipse->Preferences->Maven->Discovery->Open Catalog... then follow the above instructions.

>    Thank you,
> 
>    Andrei
> 
> 
> -------- Original Message  --------
> Subject: [VOTE] Release Felix maven-bundle-plugin version 2.3.7
> From: Stuart McCulloch <mc...@gmail.com>
> To: dev@felix.apache.org
> Date: Sat 11 Feb 2012 01:42:52 PM CST
>> Hi folks,
>> 
>> We solved 5 issues in this release:
>> 
>>  https://issues.apache.org/jira/sr/jira.issueviews:searchrequest-printable/temp/SearchRequest.html?jqlQuery=project+%3D+FELIX+AND+fixVersion+%3D+%22maven-bundle-plugin-2.3.7%22
>> 
>> There are still some outstanding issues:
>> 
>>  https://issues.apache.org/jira/browse/FELIX/component/12311143
>> 
>> Staging repository:
>> 
>>  https://repository.apache.org/content/repositories/orgapachefelix-221/
>> 
>> Maven site docs:
>> 
>>  http://svn.apache.org/repos/asf/felix/releases/maven-bundle-plugin-2.3.7/doc/site/index.html
>> 
>> You can use this UNIX script to download the release and verify the signatures:
>> 
>>  http://svn.apache.org/repos/asf/felix/trunk/check_staged_release.sh
>> 
>> Usage:
>> 
>>  sh check_staged_release.sh 221 /tmp/felix-staging
>> 
>> Please vote to approve this release:
>> 
>> [ ] +1 Approve this release
>> [ ] -1 Veto this release (please provide specific comments)
>> 
>> This vote will be open for 72 hours.
>> 
>> --
>> Cheers, Stuart
> 


Re: m2e integration

Posted by Andrei Pozolotin <an...@gmail.com>.
Stuart:

these are the pointers I was looking for; thank you!

Andrei.

-------- Original Message  --------
Subject: Re: m2e integration
From: Stuart McCulloch <mc...@gmail.com>
To: dev@felix.apache.org
Date: Tue 14 Feb 2012 06:37:57 AM CST
> On 13 Feb 2012, at 17:43, Andrei Pozolotin wrote:
>
>>    Stuart:feature
>>
>>    is this m2e feature expandable for scr plugin?
>>    (generate incremental osgi component xml descriptors)
>>
>>    if not, is current "m2e bundle awareness" a separate project
>>    I could reuse to copy/paste this approach for src?
>>
>>    which one / where please?
> m2e 1.x relies on custom configurators to map between Eclipse and Maven lifecycles:
>
>    http://wiki.eclipse.org/M2E_plugin_execution_not_covered
>
>    http://wiki.eclipse.org/M2E_Extension_Development
>
> The Tycho specific configurators for OSGi can be found at:
>
>    https://github.com/sonatype/m2eclipse-tycho/tree/master/org.sonatype.tycho.m2e/src/org/sonatype/tycho/m2e/internal
>
> Which could be extended to also cover SCR generation - you'd need to detect when to regenerate the descriptors, rather than on every workspace change.
>
> Detailed questions about m2e internals are best asked on https://dev.eclipse.org/mailman/listinfo/m2e-dev
>
>>    Thank you,
>>
>>    Andrei
>>
>> -------- Original Message  --------
>> Subject: m2e integration (was: [VOTE] Release Felix maven-bundle-plugin
>> version 2.3.7)
>> From: Stuart McCulloch <mc...@gmail.com>
>> To: dev@felix.apache.org
>> Date: Mon 13 Feb 2012 10:17:00 AM CST
>>> On 13 Feb 2012, at 15:34, Andrei Pozolotin wrote:
>>>>   Stuart:
>>>>
>>>>   you mentioned before that maven-bundle-plugin
>>>>   how has some default bindings for m2e
>>>>   for incremental manifest build in eclipse;
>>>>
>>>>   can you please elaborate a little on
>>>>   how to setup pom to use this feature properly?
>>>>
>>>>   in 2.3.7?
>>>>
>>>>   (my current concert is incremental build speed)
>>> There are no m2e bindings in the plugin and no special pom settings - instead m2e has been improved to detect bundle projects and adjust the instructions (in-memory) to work with JDT and PDE
>>>
>>> You can find this support in the development drop of the m2eclipse-tycho configurator https://repository.sonatype.org/content/repositories/forge-sites/m2eclipse-tycho/0.6.0/N/0.6.0.201112050222/
>>>
>>> If you already have the m2eclipse-tycho configurator installed then adding the above update site and checking for software updates should install the above update.
>>>
>>> If you don't have the m2eclipse-tycho configurator you can install it via Eclipse->Preferences->Maven->Discovery->Open Catalog... then follow the above instructions.
>>>
>>>>   Thank you,
>>>>
>>>>   Andrei
>>>>
>>>>
>>>> -------- Original Message  --------
>>>> Subject: [VOTE] Release Felix maven-bundle-plugin version 2.3.7
>>>> From: Stuart McCulloch <mc...@gmail.com>
>>>> To: dev@felix.apache.org
>>>> Date: Sat 11 Feb 2012 01:42:52 PM CST
>>>>> Hi folks,
>>>>>
>>>>> We solved 5 issues in this release:
>>>>>
>>>>> https://issues.apache.org/jira/sr/jira.issueviews:searchrequest-printable/temp/SearchRequest.html?jqlQuery=project+%3D+FELIX+AND+fixVersion+%3D+%22maven-bundle-plugin-2.3.7%22
>>>>>
>>>>> There are still some outstanding issues:
>>>>>
>>>>> https://issues.apache.org/jira/browse/FELIX/component/12311143
>>>>>
>>>>> Staging repository:
>>>>>
>>>>> https://repository.apache.org/content/repositories/orgapachefelix-221/
>>>>>
>>>>> Maven site docs:
>>>>>
>>>>> http://svn.apache.org/repos/asf/felix/releases/maven-bundle-plugin-2.3.7/doc/site/index.html
>>>>>
>>>>> You can use this UNIX script to download the release and verify the signatures:
>>>>>
>>>>> http://svn.apache.org/repos/asf/felix/trunk/check_staged_release.sh
>>>>>
>>>>> Usage:
>>>>>
>>>>> sh check_staged_release.sh 221 /tmp/felix-staging
>>>>>
>>>>> Please vote to approve this release:
>>>>>
>>>>> [ ] +1 Approve this release
>>>>> [ ] -1 Veto this release (please provide specific comments)
>>>>>
>>>>> This vote will be open for 72 hours.
>>>>>
>>>>> --
>>>>> Cheers, Stuart
>


Re: m2e integration

Posted by Stuart McCulloch <mc...@gmail.com>.
On 13 Feb 2012, at 17:43, Andrei Pozolotin wrote:

>    Stuart:feature
> 
>    is this m2e feature expandable for scr plugin?
>    (generate incremental osgi component xml descriptors)
> 
>    if not, is current "m2e bundle awareness" a separate project
>    I could reuse to copy/paste this approach for src?
> 
>    which one / where please?

m2e 1.x relies on custom configurators to map between Eclipse and Maven lifecycles:

   http://wiki.eclipse.org/M2E_plugin_execution_not_covered

   http://wiki.eclipse.org/M2E_Extension_Development

The Tycho specific configurators for OSGi can be found at:

   https://github.com/sonatype/m2eclipse-tycho/tree/master/org.sonatype.tycho.m2e/src/org/sonatype/tycho/m2e/internal

Which could be extended to also cover SCR generation - you'd need to detect when to regenerate the descriptors, rather than on every workspace change.

Detailed questions about m2e internals are best asked on https://dev.eclipse.org/mailman/listinfo/m2e-dev

>    Thank you,
> 
>    Andrei
> 
> -------- Original Message  --------
> Subject: m2e integration (was: [VOTE] Release Felix maven-bundle-plugin
> version 2.3.7)
> From: Stuart McCulloch <mc...@gmail.com>
> To: dev@felix.apache.org
> Date: Mon 13 Feb 2012 10:17:00 AM CST
>> On 13 Feb 2012, at 15:34, Andrei Pozolotin wrote:
>>>   Stuart:
>>> 
>>>   you mentioned before that maven-bundle-plugin
>>>   how has some default bindings for m2e
>>>   for incremental manifest build in eclipse;
>>> 
>>>   can you please elaborate a little on
>>>   how to setup pom to use this feature properly?
>>> 
>>>   in 2.3.7?
>>> 
>>>   (my current concert is incremental build speed)
>> There are no m2e bindings in the plugin and no special pom settings - instead m2e has been improved to detect bundle projects and adjust the instructions (in-memory) to work with JDT and PDE
>> 
>> You can find this support in the development drop of the m2eclipse-tycho configurator https://repository.sonatype.org/content/repositories/forge-sites/m2eclipse-tycho/0.6.0/N/0.6.0.201112050222/
>> 
>> If you already have the m2eclipse-tycho configurator installed then adding the above update site and checking for software updates should install the above update.
>> 
>> If you don't have the m2eclipse-tycho configurator you can install it via Eclipse->Preferences->Maven->Discovery->Open Catalog... then follow the above instructions.
>> 
>>>   Thank you,
>>> 
>>>   Andrei
>>> 
>>> 
>>> -------- Original Message  --------
>>> Subject: [VOTE] Release Felix maven-bundle-plugin version 2.3.7
>>> From: Stuart McCulloch <mc...@gmail.com>
>>> To: dev@felix.apache.org
>>> Date: Sat 11 Feb 2012 01:42:52 PM CST
>>>> Hi folks,
>>>> 
>>>> We solved 5 issues in this release:
>>>> 
>>>> https://issues.apache.org/jira/sr/jira.issueviews:searchrequest-printable/temp/SearchRequest.html?jqlQuery=project+%3D+FELIX+AND+fixVersion+%3D+%22maven-bundle-plugin-2.3.7%22
>>>> 
>>>> There are still some outstanding issues:
>>>> 
>>>> https://issues.apache.org/jira/browse/FELIX/component/12311143
>>>> 
>>>> Staging repository:
>>>> 
>>>> https://repository.apache.org/content/repositories/orgapachefelix-221/
>>>> 
>>>> Maven site docs:
>>>> 
>>>> http://svn.apache.org/repos/asf/felix/releases/maven-bundle-plugin-2.3.7/doc/site/index.html
>>>> 
>>>> You can use this UNIX script to download the release and verify the signatures:
>>>> 
>>>> http://svn.apache.org/repos/asf/felix/trunk/check_staged_release.sh
>>>> 
>>>> Usage:
>>>> 
>>>> sh check_staged_release.sh 221 /tmp/felix-staging
>>>> 
>>>> Please vote to approve this release:
>>>> 
>>>> [ ] +1 Approve this release
>>>> [ ] -1 Veto this release (please provide specific comments)
>>>> 
>>>> This vote will be open for 72 hours.
>>>> 
>>>> --
>>>> Cheers, Stuart
>> 
> 


Re: m2e integration

Posted by Andrei Pozolotin <an...@gmail.com>.
    Stuart:feature

    is this m2e feature expandable for scr plugin?
    (generate incremental osgi component xml descriptors)

    if not, is current "m2e bundle awareness" a separate project
    I could reuse to copy/paste this approach for src?

    which one / where please?

    Thank you,

    Andrei



-------- Original Message  --------
Subject: m2e integration (was: [VOTE] Release Felix maven-bundle-plugin
version 2.3.7)
From: Stuart McCulloch <mc...@gmail.com>
To: dev@felix.apache.org
Date: Mon 13 Feb 2012 10:17:00 AM CST
> On 13 Feb 2012, at 15:34, Andrei Pozolotin wrote:
>>    Stuart:
>>
>>    you mentioned before that maven-bundle-plugin
>>    how has some default bindings for m2e
>>    for incremental manifest build in eclipse;
>>
>>    can you please elaborate a little on
>>    how to setup pom to use this feature properly?
>>
>>    in 2.3.7?
>>
>>    (my current concert is incremental build speed)
> There are no m2e bindings in the plugin and no special pom settings - instead m2e has been improved to detect bundle projects and adjust the instructions (in-memory) to work with JDT and PDE
>
> You can find this support in the development drop of the m2eclipse-tycho configurator https://repository.sonatype.org/content/repositories/forge-sites/m2eclipse-tycho/0.6.0/N/0.6.0.201112050222/
>
> If you already have the m2eclipse-tycho configurator installed then adding the above update site and checking for software updates should install the above update.
>
> If you don't have the m2eclipse-tycho configurator you can install it via Eclipse->Preferences->Maven->Discovery->Open Catalog... then follow the above instructions.
>
>>    Thank you,
>>
>>    Andrei
>>
>>
>> -------- Original Message  --------
>> Subject: [VOTE] Release Felix maven-bundle-plugin version 2.3.7
>> From: Stuart McCulloch <mc...@gmail.com>
>> To: dev@felix.apache.org
>> Date: Sat 11 Feb 2012 01:42:52 PM CST
>>> Hi folks,
>>>
>>> We solved 5 issues in this release:
>>>
>>>  https://issues.apache.org/jira/sr/jira.issueviews:searchrequest-printable/temp/SearchRequest.html?jqlQuery=project+%3D+FELIX+AND+fixVersion+%3D+%22maven-bundle-plugin-2.3.7%22
>>>
>>> There are still some outstanding issues:
>>>
>>>  https://issues.apache.org/jira/browse/FELIX/component/12311143
>>>
>>> Staging repository:
>>>
>>>  https://repository.apache.org/content/repositories/orgapachefelix-221/
>>>
>>> Maven site docs:
>>>
>>>  http://svn.apache.org/repos/asf/felix/releases/maven-bundle-plugin-2.3.7/doc/site/index.html
>>>
>>> You can use this UNIX script to download the release and verify the signatures:
>>>
>>>  http://svn.apache.org/repos/asf/felix/trunk/check_staged_release.sh
>>>
>>> Usage:
>>>
>>>  sh check_staged_release.sh 221 /tmp/felix-staging
>>>
>>> Please vote to approve this release:
>>>
>>> [ ] +1 Approve this release
>>> [ ] -1 Veto this release (please provide specific comments)
>>>
>>> This vote will be open for 72 hours.
>>>
>>> --
>>> Cheers, Stuart
>


Re: m2e integration

Posted by Andrei Pozolotin <an...@gmail.com>.
    Stuart:

    1) this is great news, thank you;

    2) is this m2e feature customizable?

    in my case I need to create fake bundle for felix embedder host;
    I am providing auto-generate an entry for
    org./osgi/.framework./system/./packages/./extra/

    as follows:

    1) use maven-bundle-plugin 2.3.5 with manual <Export-Package> entries
    2) generate custom manifest from these entries
    3) load this custom manifest from jar at run time,
    4) dynamically generate
    org./osgi/.framework./system/./packages/./extra/ from custom
    manifest before felix start

    can I reproduce this functionality in m2e?

    Thank you,

    Andrei


-------- Original Message  --------
Subject: m2e integration (was: [VOTE] Release Felix maven-bundle-plugin
version 2.3.7)
From: Stuart McCulloch <mc...@gmail.com>
To: dev@felix.apache.org
Date: Mon 13 Feb 2012 10:17:00 AM CST
> On 13 Feb 2012, at 15:34, Andrei Pozolotin wrote:
>>    Stuart:
>>
>>    you mentioned before that maven-bundle-plugin
>>    how has some default bindings for m2e
>>    for incremental manifest build in eclipse;
>>
>>    can you please elaborate a little on
>>    how to setup pom to use this feature properly?
>>
>>    in 2.3.7?
>>
>>    (my current concert is incremental build speed)
> There are no m2e bindings in the plugin and no special pom settings - instead m2e has been improved to detect bundle projects and adjust the instructions (in-memory) to work with JDT and PDE
>
> You can find this support in the development drop of the m2eclipse-tycho configurator https://repository.sonatype.org/content/repositories/forge-sites/m2eclipse-tycho/0.6.0/N/0.6.0.201112050222/
>
> If you already have the m2eclipse-tycho configurator installed then adding the above update site and checking for software updates should install the above update.
>
> If you don't have the m2eclipse-tycho configurator you can install it via Eclipse->Preferences->Maven->Discovery->Open Catalog... then follow the above instructions.
>
>>    Thank you,
>>
>>    Andrei
>>
>>
>> -------- Original Message  --------
>> Subject: [VOTE] Release Felix maven-bundle-plugin version 2.3.7
>> From: Stuart McCulloch <mc...@gmail.com>
>> To: dev@felix.apache.org
>> Date: Sat 11 Feb 2012 01:42:52 PM CST
>>> Hi folks,
>>>
>>> We solved 5 issues in this release:
>>>
>>>  https://issues.apache.org/jira/sr/jira.issueviews:searchrequest-printable/temp/SearchRequest.html?jqlQuery=project+%3D+FELIX+AND+fixVersion+%3D+%22maven-bundle-plugin-2.3.7%22
>>>
>>> There are still some outstanding issues:
>>>
>>>  https://issues.apache.org/jira/browse/FELIX/component/12311143
>>>
>>> Staging repository:
>>>
>>>  https://repository.apache.org/content/repositories/orgapachefelix-221/
>>>
>>> Maven site docs:
>>>
>>>  http://svn.apache.org/repos/asf/felix/releases/maven-bundle-plugin-2.3.7/doc/site/index.html
>>>
>>> You can use this UNIX script to download the release and verify the signatures:
>>>
>>>  http://svn.apache.org/repos/asf/felix/trunk/check_staged_release.sh
>>>
>>> Usage:
>>>
>>>  sh check_staged_release.sh 221 /tmp/felix-staging
>>>
>>> Please vote to approve this release:
>>>
>>> [ ] +1 Approve this release
>>> [ ] -1 Veto this release (please provide specific comments)
>>>
>>> This vote will be open for 72 hours.
>>>
>>> --
>>> Cheers, Stuart
>