Using PDE and Maven2 to create OSGi bundle [message #13832] |
Fri, 25 July 2008 03:45  |
Eclipse User |
|
|
|
Originally posted by: no-spam.martin.ahrer.mailinator.com
I'm trying to use PDE and Maven2 to create an OSGi bundle. The project
layout is following the recommendations as defined by Maven2.
As such sources are located in src/main/resources and resources are in
src/main/resources.
As PDE expects the MANIFEST.MF in <project-dir>/META-INF it is generated
by maven-bundle-plugin at this location.
When running the bundle inside the IDE (using a custom Target Platform,
namely Spring-DM) for debugging no resources from src/main/resources
(e.g. log4j.properties or spring context files) are picked up (i.e. loaded).
As these resources are moved to the plugin project's root folder things
work fine!
Is there any chance to configure the project such that PDE is aware of
this non eclipse like directory layout?
Thanks
Martin
|
|
|
|
Re: Best approach to build Eclipse RCP with Maven 2 [message #20108 is a reply to message #19338] |
Mon, 08 September 2008 02:48  |
Eclipse User |
|
|
|
Originally posted by: yeronimuz.aol.com
You probably need to follow the blog of Immo Huneke, see
http://aspsp.blogspot.com/2008_01_01_archive.html
With his excellent notes and help, I managed to get most of the work done.
Regards,
Jeroen.
Marcelo Alcantara wrote:
> Hi,
>
> What is the current best approach to build eclipse rcp plugins/product in
> Maven 2?
>
> Thanks to all.
>
> Marcelo
>
> "Martin Ahrer" <no-spam.martin.ahrer@mailinator.com> escreveu na mensagem
> news:g6c0bi$3l4$1@build.eclipse.org...
>> I'm trying to use PDE and Maven2 to create an OSGi bundle. The project
>> layout is following the recommendations as defined by Maven2.
>> As such sources are located in src/main/resources and resources are in
>> src/main/resources.
>>
>> As PDE expects the MANIFEST.MF in <project-dir>/META-INF it is generated
>> by maven-bundle-plugin at this location.
>>
>> When running the bundle inside the IDE (using a custom Target Platform,
>> namely Spring-DM) for debugging no resources from src/main/resources (e.g.
>> log4j.properties or spring context files) are picked up (i.e. loaded).
>>
>> As these resources are moved to the plugin project's root folder things
>> work fine!
>> Is there any chance to configure the project such that PDE is aware of
>> this non eclipse like directory layout?
>>
>> Thanks
>> Martin
>
>
|
|
|
Best approach to build Eclipse RCP with Maven 2 [message #578491 is a reply to message #13832] |
Thu, 04 September 2008 13:19  |
Eclipse User |
|
|
|
Hi,
What is the current best approach to build eclipse rcp plugins/product in
Maven 2?
Thanks to all.
Marcelo
"Martin Ahrer" <no-spam.martin.ahrer@mailinator.com> escreveu na mensagem
news:g6c0bi$3l4$1@build.eclipse.org...
> I'm trying to use PDE and Maven2 to create an OSGi bundle. The project
> layout is following the recommendations as defined by Maven2.
> As such sources are located in src/main/resources and resources are in
> src/main/resources.
>
> As PDE expects the MANIFEST.MF in <project-dir>/META-INF it is generated
> by maven-bundle-plugin at this location.
>
> When running the bundle inside the IDE (using a custom Target Platform,
> namely Spring-DM) for debugging no resources from src/main/resources (e.g.
> log4j.properties or spring context files) are picked up (i.e. loaded).
>
> As these resources are moved to the plugin project's root folder things
> work fine!
> Is there any chance to configure the project such that PDE is aware of
> this non eclipse like directory layout?
>
> Thanks
> Martin
|
|
|
Re: Best approach to build Eclipse RCP with Maven 2 [message #579069 is a reply to message #19338] |
Mon, 08 September 2008 02:48  |
Eclipse User |
|
|
|
You probably need to follow the blog of Immo Huneke, see
http://aspsp.blogspot.com/2008_01_01_archive.html
With his excellent notes and help, I managed to get most of the work done.
Regards,
Jeroen.
Marcelo Alcantara wrote:
> Hi,
>
> What is the current best approach to build eclipse rcp plugins/product in
> Maven 2?
>
> Thanks to all.
>
> Marcelo
>
> "Martin Ahrer" <no-spam.martin.ahrer@mailinator.com> escreveu na mensagem
> news:g6c0bi$3l4$1@build.eclipse.org...
>> I'm trying to use PDE and Maven2 to create an OSGi bundle. The project
>> layout is following the recommendations as defined by Maven2.
>> As such sources are located in src/main/resources and resources are in
>> src/main/resources.
>>
>> As PDE expects the MANIFEST.MF in <project-dir>/META-INF it is generated
>> by maven-bundle-plugin at this location.
>>
>> When running the bundle inside the IDE (using a custom Target Platform,
>> namely Spring-DM) for debugging no resources from src/main/resources (e.g.
>> log4j.properties or spring context files) are picked up (i.e. loaded).
>>
>> As these resources are moved to the plugin project's root folder things
>> work fine!
>> Is there any chance to configure the project such that PDE is aware of
>> this non eclipse like directory layout?
>>
>> Thanks
>> Martin
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03098 seconds